{"id":379,"date":"2010-08-25T14:30:37","date_gmt":"2010-08-25T12:30:37","guid":{"rendered":"http:\/\/touk.pl\/blog\/?p=379"},"modified":"2022-07-27T11:54:53","modified_gmt":"2022-07-27T09:54:53","slug":"playing-with-maven-release-plugin","status":"publish","type":"post","link":"https:\/\/touk.pl\/blog\/2010\/08\/25\/playing-with-maven-release-plugin\/","title":{"rendered":"<!--:en-->Playing with maven release plugin<!--:-->"},"content":{"rendered":"<p><!--:en--><\/p>\n<p><!--        @page { size: 21cm 29.7cm; margin: 2cm }        P { margin-bottom: 0.21cm } -->Using maven release plugin can save you a lot of time, especially if you still manually mange your project versioning. But sometimes it can be pain in the \u201cback\u201d. Simple scenario that occurred at least few times in some of my maven projects:<\/p>\n<ol>\n<li>Project contains at least two separate modules (A &amp; B)<\/li>\n<li>One of this modules (A) is dependant on the other module (B)<\/li>\n<li>While trying to prepare a release (release:prepare) you get missing artefact error which points at second module (B) \u201cBrute force\u201d solution is launching clean install process just after getting missing artefact error and after that resume release prepare process (release:prepare). But since maven release plugin main purpose was cutting down unnecessary manual work like this &#8211; solution should be little bit subtle. For example you can change a little bit plugin configuration: <\/li>\n<\/ol>\n<pre>org.apache.maven.plugins\n    maven-release-plugin\n    2.0\n\n        clean install\n\n\n<\/pre>\n<p>Lot of other helpful configuration properties exists, be sure to check<\/p>\n<p><a href=\"http:\/\/maven.apache.org\/plugins\/maven-release-plugin\/prepare-mojo.html\">http:\/\/maven.apache.org\/plugins\/maven-release-plugin\/prepare-mojo.html<\/a><!--:--><\/p>\n","protected":false},"excerpt":{"rendered":"Using maven release plugin can save you a lot of time, especially if you still manually mange your&hellip;\n","protected":false},"author":18,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[90],"_links":{"self":[{"href":"https:\/\/touk.pl\/blog\/wp-json\/wp\/v2\/posts\/379"}],"collection":[{"href":"https:\/\/touk.pl\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/touk.pl\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/touk.pl\/blog\/wp-json\/wp\/v2\/users\/18"}],"replies":[{"embeddable":true,"href":"https:\/\/touk.pl\/blog\/wp-json\/wp\/v2\/comments?post=379"}],"version-history":[{"count":24,"href":"https:\/\/touk.pl\/blog\/wp-json\/wp\/v2\/posts\/379\/revisions"}],"predecessor-version":[{"id":14558,"href":"https:\/\/touk.pl\/blog\/wp-json\/wp\/v2\/posts\/379\/revisions\/14558"}],"wp:attachment":[{"href":"https:\/\/touk.pl\/blog\/wp-json\/wp\/v2\/media?parent=379"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/touk.pl\/blog\/wp-json\/wp\/v2\/categories?post=379"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/touk.pl\/blog\/wp-json\/wp\/v2\/tags?post=379"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}