Some Maven commands I often use recently:
Skip tests (not for deployment to production :))
1 |
mvn clean package -Dmaven.test.skip=true |
Clean and install:
1 |
mvn clean install |
Install third-party Jars:
1 |
mvn install:install-file -Dfile=<path-to-jar> -DgroupId=<group-id> -DartifactId=<artifact-id> -Dversion=<version> -Dpackaging=<packaging> |
Install third-party Jars with pom.xml inside
1 |
mvn install:install-file -Dfile=<path-to-jar-with-pom-inside> |