Author: tchemit Date: 2010-01-18 16:08:47 +0100 (Mon, 18 Jan 2010) New Revision: 89 Modified: trunk/pom.xml Log: use mavenpom4redmine 2.0.1 + make release conf compatible with jredmine Modified: trunk/pom.xml =================================================================== --- trunk/pom.xml 2010-01-18 01:30:51 UTC (rev 88) +++ trunk/pom.xml 2010-01-18 15:08:47 UTC (rev 89) @@ -9,11 +9,10 @@ <parent> <groupId>org.nuiton</groupId> - <artifactId>mavenpom</artifactId> + <artifactId>mavenpom4redmine</artifactId> <version>2.0.1</version> </parent> - <!--<groupId>org.nuiton</groupId>--> <artifactId>jredmine</artifactId> <version>1.1.2-SNAPSHOT</version> @@ -402,9 +401,12 @@ <projectId>jredmine</projectId> - <helper.version>1.2.1</helper.version> - <!--<jredmine.version>1.0.2</jredmine.version>--> + <!-- remove this if maven-helper-plugin version is ok in mavenpom4redmine --> + <helper.version>1.2.2-SNAPSHOT</helper.version> + <!-- must be on a fixed version, not on the snapshot to make possible release --> + <jredmine.version>1.1.1</jredmine.version> + <!-- test config --> <test.redmineUrl>http://www.mynuiton.org</test.redmineUrl> <test.redmineUsername>chemit</test.redmineUsername> @@ -416,12 +418,6 @@ <build> - <defaultGoal>install</defaultGoal> - - <plugins> - - </plugins> - <pluginManagement> <plugins> @@ -447,7 +443,7 @@ we do not propagate maven-jredmine-plugin to child modules --> <!-- perform only on a release stage when using the maven-release-plugin --> <profile> - <id>redmine-pre-release-profile</id> + <id>redmine-build-release-profile</id> <activation> <property> <name>performRelease</name> @@ -456,7 +452,7 @@ </activation> <properties> <redmine.safe>true</redmine.safe> - <redmine.xmlPath>${maven.gen.dir}/changes/changes.xml</redmine.xmlPath> + <!--<redmine.xmlPath>${maven.gen.dir}/changes/changes.xml</redmine.xmlPath>--> </properties> <reporting> @@ -490,14 +486,14 @@ <plugins> <!-- - - obtain redmine login - - collect files for jredmine release + - obtain redmine login (for both default and site lifecycle) + - collect all artifacts attached to build for announcements --> <plugin> <groupId>org.nuiton</groupId> <artifactId>maven-helper-plugin</artifactId> <executions> - <execution> + <!--execution> <id>get-redmine-login</id> <goals> <goal>share-server-secret</goal> @@ -508,35 +504,31 @@ <passwordOut>redmine.password</passwordOut> <usernameOut>redmine.username</usernameOut> </configuration> - </execution> + </execution--> <execution> - <id>get-redmine-login-site</id> + <id>collect-build-artifacts</id> <goals> - <goal>share-server-secret</goal> + <goal>collect-files</goal> </goals> - <phase>pre-site</phase> + <phase>install</phase> <configuration> - <serverId>redmine-${platform}</serverId> - <passwordOut>redmine.password</passwordOut> - <usernameOut>redmine.username</usernameOut> + <descriptionFile>${redmine.collectedArtifacts}</descriptionFile> + <includeAttached>true</includeAttached> + <includeSiteAttached>true</includeSiteAttached> </configuration> </execution> - <execution> - <id>collect-files</id> + <!--execution> + <id>collect-build-attachements</id> <goals> <goal>collect-files</goal> </goals> <phase>install</phase> <configuration> - <extraFiles>${redmine.releaseFiles} - </extraFiles> - <descriptionFile>${redmine.collectedFiles} - </descriptionFile> - <includeAttached>${redmine.includeAttached} - </includeAttached> - <!--<copyFiles>false</copyFiles>--> + <extraFiles>${redmine.releaseFiles}</extraFiles> + <descriptionFile>${redmine.collectedAttachments}</descriptionFile> + <includeAttached>false</includeAttached> </configuration> - </execution> + </execution--> </executions> </plugin> @@ -544,42 +536,79 @@ <plugin> <groupId>org.nuiton.jredmine</groupId> <artifactId>maven-jredmine-plugin</artifactId> - <!-- TC-20100106 Due to cyclic dependency problem between modules, - we do not propagate maven-jredmine-plugin to child modules --> <inherited>false</inherited> <executions> <execution> - <id>jredmine-generate</id> + <id>jredmine-generate-changes</id> <goals> <goal>generate-changes</goal> - <goal>generate-news-announcement</goal> - <goal>generate-email-announcement</goal> </goals> <phase>process-classes</phase> + <configuration> + <generateOnce>true</generateOnce> + <actionMapping>fix:1, add:2</actionMapping> + <statusIds>3,4,5</statusIds> + </configuration> </execution> + </executions> - <configuration> - - <!-- generate-changes --> - <generateOnce>true</generateOnce> - <actionMapping>fix:1, add:2</actionMapping> - <statusIds>3,4,5</statusIds> - - <!-- generate announcements --> - <urlDownload> - ${redmine.url}/projects/list_files/${projectId} - </urlDownload> - - <!--<changesTitle>Release note of Maven pom project</changesTitle>--> - <!--<releaseDescription>Description of first release</releaseDescription>--> - <!--<verbose>true</verbose>--> - </configuration> </plugin> </plugins> </build> </profile> + + <!-- launch this profile after a release:perform on target/checkout --> + <profile> + <id>redmine-pre-release-profile</id> + <activation> + <property> + <name>performRedminePreRelease</name> + <value>true</value> + </property> + </activation> + <properties> + <!-- always use this version to perform the profile (to use last improvements) --> + <jredmine.version>${project.version}</jredmine.version> + + </properties> + + </profile> + + <!-- perform a redmine release after a successfull release --> + <profile> + <id>redmine-release-profile</id> + <activation> + <property> + <name>performRedmineRelease</name> + <value>true</value> + </property> + </activation> + + <properties> + <!-- always use this version to perform the profile (to use last improvements) --> + <jredmine.version>${project.version}</jredmine.version> + + </properties> + </profile> + + <!-- perform a redmine release after a successfull release --> + <profile> + <id>redmine-next-version-profile</id> + <activation> + <property> + <name>redmineNextVersion</name> + <value>true</value> + </property> + </activation> + + <properties> + <!-- always use this version to perform the profile (to use last improvements) --> + <jredmine.version>${project.version}</jredmine.version> + + </properties> + </profile> </profiles> </project>
participants (1)
-
tchemit@users.nuiton.org