Maven Tips


Below are some of the common mvn commands that we have to use on day to day work

if jar files are missing

 mvn install:install-file -DgroupId=com -DartifactId=jcaptcha-all -Dversion=1.0 -Dpackaging=jar -Dfile=/home/shavantha/Desktop/files/jcaptcha-all-1.0.jar

mvn install:install-file -DgroupId=com.vaadin -DartifactId=jcaptchafield -Dversion=1.0.1 -Dpackaging=jar -Dfile=/home/shavantha/Desktop/files/jcaptchafield-1.0.1.jar

To remove all files generated by the previous build
mvn clean

To install the package into the local repository

mvn install
mvn clean install


To compile the source code of the project
mvn compile

To run a test with a specific unit test framework
mvn test

Comments