Spring Boot, the npm way.

Declare Maven dependencies in package.json. Run jpm dev to see your Java edits, then jpm build to package a runnable JAR.

npm i -g java-npm-cli

Node.js 22+ · Windows, macOS or Linux

Familiar commands

Commands you already know.

jpm keeps the npm verbs you use every day. Underneath, Spring Initializr supplies the template, the Maven Wrapper resolves dependencies, and each project selects a JDK major version.

See all commands
With npmWith jpm
npm create vite@latestjpm create hello-jpm
npm installjpm install
npm install lodashjpm add com.google.guava:guava@33.5.0-jre
npm run devjpm dev
npm testjpm test
npm run buildjpm build
nvm use 22jpm jdk use 21

From zero to JAR

An empty folder to a runnable JAR.

jpm uses a JDK you already have or downloads Temurin, keeps the POM in sync, and restarts the app after each successful compile while you edit.

Explore command examples
jpm create hello-jpm --java 21 -y
cd hello-jpm
jpm jdk use 21
jpm install
jpm dev

# In a second terminal
curl http://localhost:8080/
{"message":"Hello from jpm!"}
jpm build
[INFO] BUILD SUCCESS

ls target/*.jar
target/hello-jpm-0.0.1-SNAPSHOT.jar

Dependencies

Java dependencies, in JSON.

Declare a Maven dependency in your project’s package.json. Run jpm install to sync the POM and resolve dependencies with the project’s Maven Wrapper.

Read the configuration guide
package.json excerpt
{
  "java": {
    "dependencies": {
      "org.assertj:assertj-core": { "scope": "test" }
    }
  }
}

jpm install writes pom.xml, then resolves with ./mvnw

Alpha scope

Before you install.

Troubleshooting
Which projects can I use it for?

Start a new, single-module Spring MVC app on Windows, macOS or Linux. The alpha uses Spring Initializr for the template and Maven for the build. Existing POM imports, Gradle and multi-module projects are outside its current scope.

Do I need a JDK or Maven already installed?

Run jpm jdk use 21 in the generated project. It uses an installed Java 21 JDK when available and downloads Temurin otherwise. The project includes its Maven Wrapper. First-time setup needs network access.

Does the finished app need Node.js?

The CLI uses Node.js 22 or newer while you develop. The JAR produced by jpm build runs on a compatible Java runtime.

Start with one command.

Install the CLI, then follow the quick start to a running endpoint, a passing test and a JAR.

npm i -g java-npm-cli
Open the quick start