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-cliFamiliar 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 commandsnpm create vite@latestjpm create hello-jpmnpm installjpm installnpm install lodashjpm add com.google.guava:guava@33.5.0-jrenpm run devjpm devnpm testjpm testnpm run buildjpm buildnvm use 22jpm jdk use 21From 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.
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.
{
"java": {
"dependencies": {
"org.assertj:assertj-core": { "scope": "test" }
}
}
}jpm install writes pom.xml, then resolves with ./mvnw
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