Created
November 28, 2013 09:12
-
-
Save gangaaloori/7689178 to your computer and use it in GitHub Desktop.
Useful maven commands
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Running a single/multiple Test classes | |
mvn -Dtest=CircleTest | |
mvn -Dtest=Ci*leTest | |
mvn -Dtest=SquareTest,Ci*leTest | |
#Running a set of methods in a Single Test Class | |
mvn -Dtest=CircleTest#testArea | |
mvn -Dtest=CircleTest#test* | |
mvn -Dtest=CircleTest#testArea+testVolume | |
#Running a specific class | |
mvn exec:java -Dexec.mainClass="com.example.Main" | |
mvn exec:java -Dexec.mainClass="com.example.Main" -Dexec.args="arg0 arg1 arg2" | |
#help | |
mvn exec:help -Ddetail=true -Dgoal=java |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment