Maven Dependency Helper
Runs locally in your browser. Your input is not uploaded.Free, no sign-up
Dependencies
pom.xml
Goals
Modules, profiles and options
Command
./mvnw clean verify
- clean
- Delete target/.
- verify
- Package and run integration tests and checks. The usual CI goal.
Common commands
- Show the dependency tree
./mvnw dependency:tree - Find why a library is on the classpath
./mvnw dependency:tree -Dverbose -Dincludes=com.fasterxml.jackson.core:jackson-databind - List dependencies with newer versions
./mvnw versions:display-dependency-updates - Find unused and undeclared dependencies
./mvnw dependency:analyze - Show the effective POM
./mvnw help:effective-pom - Run one test method
./mvnw test -Dtest=OrderServiceTest#createsOrder - Build one module and the modules it needs
./mvnw -pl order-service -am package - Set the project version
./mvnw versions:set -DnewVersion=1.2.0 -DgenerateBackupPoms=false - Re-download a dependency
./mvnw dependency:purge-local-repository -DmanualInclude=com.example:my-lib - Run a Spring Boot app with a profile
./mvnw spring-boot:run -Dspring-boot.run.profiles=dev - Build a container image (Spring Boot)
./mvnw spring-boot:build-image
Generate and format Maven dependency XML, parse coordinates and build Maven commands.
How to use the Maven Dependency Helper
- In Dependencies, paste dependencies in any format:
group:artifact:versioncoordinates, Gradle lines (Kotlin or Groovy DSL) or<dependency>blocks from apom.xml. - Pick the output: Maven XML, Gradle Kotlin, Gradle Groovy or plain coordinates. Scopes, BOMs and exclusions carry over.
- In mvn commands, tick the goals and options to build a command for Bash, PowerShell or CMD, or copy one of the common commands.
How scopes map between Maven and Gradle
compile↔implementation(orapi),runtime↔runtimeOnly,test↔testImplementation.provided↔compileOnly. Lombok also needsannotationProcessorin Gradle, which is added for you; annotation processors such as MapStruct's becomeannotationProcessor.- A BOM (
<type>pom</type>with<scope>import</scope>independencyManagement) ↔implementation(platform(…)). - Spring Boot DevTools (
runtime+optional) ↔developmentOnly.
Frequently asked questions
Why does PowerShell need quotes around -D options?
PowerShell splits an unquoted argument such as -Dmaven.test.skip=true at the first dot, so Maven receives -Dmaven and .test.skip=true. Commas also turn into separate arguments. The generated command quotes these for you.
What's the difference between -DskipTests and -Dmaven.test.skip=true?
-DskipTests compiles the tests but doesn't run them. -Dmaven.test.skip=true doesn't compile them either, which is faster but breaks modules that depend on another module's test JAR.
Should I use mvn or mvnw?
Use the wrapper (./mvnw) when the project has one: it downloads the Maven version the project expects, so every machine and CI runner builds the same way.
Related tools
All tools- Gradle Command HelperBuild common Gradle commands and flags.
- Spring Boot Config GeneratorGenerate Spring Boot configuration for PostgreSQL, Redis, Kafka, Actuator, HikariCP and more.
- Java Version ComparatorCompare Java 8, 11, 17, 21 and 25 features and changes.
- XML FormatterFormat, validate and minify XML with syntax highlighting, entirely in your browser.
- Java Stack Trace FormatterClean up Java stack traces, highlight application frames and find the root cause.