- Run
mvn -N io.takari:maven:wrapper
in project root
mvn -Dtest=TestClass test
mvn install -DskipTests
- With tests -
./mvnw clean install
- Without tests -
./mvnw clean install -Dmaven.test.skip=true
- spring-boot
- Without args
mvn spring-boot:run
- With JVM args
mvn spring-boot:run -Dspring-boot.run.jvmArguments="-Dspring.profiles.active=dev -Xdebug"
- Without args
mvn dependency:purge-local-repository
spring-boot:build-image
[Package an application into a OCI image using a buildpack.]
spring-boot:build-info
[Generate a build-info.properties file based the content of the current MavenProject.]
spring-boot:help
[Display help information on spring-boot-maven-plugin. Call mvn spring-boot:help -Ddetail=true -Dgoal= to display parameter details.]
spring-boot:repackage
[Repackage existing JAR and WAR archives so that they can be executed from the command line using java -jar. With layout=NONE can also be used simply to package a JAR with nested dependencies (and no main class, so not executable).]
spring-boot:run
[Run an application in place.]
spring-boot:start
[Start a spring application. Contrary to the run goal, this does not block and allows other goals to operate on the application. This goal is typically used in integration test scenario where the application is started before a test suite and stopped after.]
spring-boot:stop
[Stop an application that has been started by the "start" goal. Typically invoked once a test suite has completed.]
- Get dependancy tree -
./mvnw dependency:tree
- Download sources -
./mvnw dependency:source
To debug mvnDebug spring-boot:run -Dspring-boot.run.fork=false
and on Intellij Idea create new run Remote JVM Debug configuration, leaving all values same, except set port as 8000
mvn test