Maven can be called on different goals.
The maven executable is called mvn
if you have maven installed.
If you use the included maven wrapper it is called mvnw
.
See "Build Project" for an example.
Most IDEs support Run Configurations, with wizards for using maven matching to your project.
If you have trouble with the build compilation, check your JAVA_HOME system environment variable. Please set your JDK to version 17 .
Run mvn install
(or wrapper call mvnw install
).
Run java -jar <package-name>.jar
.
The jar can also be executed by most IDEs.
Maven install command includes running unit tests (from test/java package). This creates results under /target/surefire-reports
For pretty and insightful HTML reports, run mvn site
.