User Tools

Site Tools


maven

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
maven [2015/05/22 13:22]
mihael [Manifest.merge Error in Eclipse]
maven [2016/05/27 09:39] (current)
mihael [Skip Unit test]
Line 1: Line 1:
 ====== Maven ====== ====== Maven ======
 +
 +===== Update Parent POM Version in Modules =====
 +If the project structure is the following:
 +<​code>​
 + ​Parent POM
 +     +
 +     |
 +     ​+--->​ Module 1
 +     |
 +     ​+--->​ Module 2
 +     |
 +     ​+--->​ Module 3
 +</​code>​
 +
 +and the modules inherit the version from the parent pom then it is a PITA to update all modules with the new parent pom version when the parent pom version is incremented.
 +
 +An easy way for this is the following command which will update the parent pom version in the modules with the version in the parent pom project.
 +
 +  mvn -N versions:​update-child-modules
 +
 +<note tip>By default this command will generate a backup version of each updated pom. To drop the generation of backups add the parameter ''​generateBackupPoms=false''​ to the maven command.</​note>​
 +
 +Found on [[http://​www.mojohaus.org/​versions-maven-plugin/​examples/​update-child-modules.html|Mojohaus.org]].
  
 ===== Manifest.merge Error in Eclipse ===== ===== Manifest.merge Error in Eclipse =====
Line 50: Line 73:
     -Dpackaging=jar     -Dpackaging=jar
 </​code>​ </​code>​
 +
 +===== Skip Unit test =====
 +
 +Use the Java property ''​-Dmaven.test.skip=true''​ to skip unit tests.
  
 ===== Embed Dependencies ===== ===== Embed Dependencies =====
maven.1432300950.txt.gz ยท Last modified: 2015/05/22 13:22 by mihael