cd to your project root folder in command line.mvn compile.mvn exec:java -Dexec.mainClass=com.kub.App.
How do I run an Maven?
- cd to your project root folder in command line.
- mvn compile.
- mvn exec:java -Dexec.mainClass=com.kub.App.
How do I run a Maven package?
2 Answers. Rightclick on your pom. xml and choose “Run as” -> “Maven build..” and put in Goals: package . If you now select “run” (CTRL + F11) it will run automatically if you select these run configuration.