Using a Custom POM or Custom Settings File
-f pom-conf.xml In this -f option is used to select specific pom.xml file if you have many pom file.
If you dont use -f option then defaul value of pom.xml will be used to build .
Running in Offline Mode
In case you dont have internet connection and dont want maven to try connecting to internet.-o --offline
Skipping Test
-Dmaven.test.skip=true to skip the
Deploying the build on production or some artifactory
maven deploy
Other common useful commands:
clean install -- clean the target directory and generate the output files.
install -- simply generate the files in the target directory. Does not clean the target directry only override the file if it part of the output.
Refer maven options
No comments:
Post a Comment