Author: tchemit Date: 2009-10-13 14:40:53 +0200 (Tue, 13 Oct 2009) New Revision: 678 Modified: trunk/pom.xml Log: Evolution #92: permettre de ne pas utiliser jredmine Modified: trunk/pom.xml =================================================================== --- trunk/pom.xml 2009-10-11 12:36:53 UTC (rev 677) +++ trunk/pom.xml 2009-10-13 12:40:53 UTC (rev 678) @@ -251,8 +251,8 @@ <repository.home.url>http://maven.${platform}/release</repository.home.url> <!-- redmine configuration --> + <redmine.safe>false</redmine.safe> <redmine.url>http://www.${platform}</redmine.url> - <redmine.serverId>redmine-${platform}</redmine.serverId> <redmine.projectId>${projectId}</redmine.projectId> <redmine.xmlPath>${maven.gen.dir}/changes/changes.xml</redmine.xmlPath> <redmine.issueLinkTemplate>${redmine.url}/issues/show/%ISSUE%</redmine.issueLinkTemplate> @@ -664,7 +664,7 @@ <version>2.4.3</version> </plugin> - <plugin> + <!--plugin> <groupId>org.nuiton.jredmine</groupId> <artifactId>maven-jredmine-plugin</artifactId> <version>${jredmine.version}</version> @@ -678,7 +678,7 @@ </reports> </reportSet> </reportSets> - </plugin> + </plugin--> <!-- a voir si on le garde car hudson le fait aussi ? --> <!--plugin> @@ -821,7 +821,7 @@ <maven.reports.dependencyLocationsEnabled>false</maven.reports.dependencyLocationsEnabled> </properties> </profile> - + <!-- perform only on a release stage when using the maven-release-plugin --> <profile> <id>release-profile</id> @@ -835,43 +835,25 @@ <plugins> - <!-- generate the changes.xml from redmine --> + <!-- always compute source jar --> <plugin> - <groupId>org.nuiton.jredmine</groupId> - <artifactId>maven-jredmine-plugin</artifactId> + <artifactId>maven-source-plugin</artifactId> <executions> <execution> - <id>jredmine-generate</id> + <id>attach-sources</id> <goals> - <goal>generate-changes</goal> - <goal>generate-news-announcement</goal> - <goal>generate-email-announcement</goal> + <goal>jar</goal> </goals> - <phase>process-classes</phase> </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> - <!-- always compute source jar --> + <!-- always compute javadoc jar --> <plugin> - <artifactId>maven-source-plugin</artifactId> + <artifactId>maven-javadoc-plugin</artifactId> <executions> <execution> - <id>attach-sources</id> + <id>attach-javadocs</id> <goals> <goal>jar</goal> </goals> @@ -879,25 +861,96 @@ </executions> </plugin> - <!-- always compute javadoc jar --> + <!-- add license and third-party files to build --> <plugin> - <artifactId>maven-javadoc-plugin</artifactId> + <groupId>org.nuiton</groupId> + <artifactId>maven-license-plugin</artifactId> <executions> <execution> - <id>attach-javadocs</id> + <id>attach-licenses</id> <goals> - <goal>jar</goal> + <goal>add-license</goal> + <goal>add-third-party</goal> </goals> </execution> </executions> </plugin> + </plugins> - <!-- collect files for jredmine release --> + </build> + </profile> + + <!-- perform only on a release stage when using the maven-release-plugin --> + <profile> + <id>redmine-pre-release-profile</id> + <activation> + <property> + <name>performRelease</name> + <value>true</value> + </property> + </activation> + <properties> + <redmine.safe>true</redmine.safe> + </properties> + + <reporting> + <plugins> + <plugin> + <groupId>org.nuiton.jredmine</groupId> + <artifactId>maven-jredmine-plugin</artifactId> + <version>${jredmine.version}</version> + <configuration> + <columnNames>key,summary,status,assignee,tracker,priority,version,category,createdOn</columnNames> + </configuration> + <reportSets> + <reportSet> + <reports> + <report>issues-report</report> + </reports> + </reportSet> + </reportSets> + </plugin> + + </plugins> + </reporting> + <build> + + <plugins> + + <!-- + - obtain redmine login + - collect files for jredmine release + --> + <plugin> <groupId>org.nuiton</groupId> <artifactId>maven-helper-plugin</artifactId> <executions> <execution> + <id>get-redmine-login</id> + <goals> + <goal>share-server-secret</goal> + </goals> + <phase>initialize</phase> + <configuration> + <serverId>redmine-${platform}</serverId> + <passwordOut>redmine.password</passwordOut> + <usernameOut>redmine.username</usernameOut> + </configuration> + </execution> + <execution> + <id>get-redmine-login-site</id> + <goals> + <goal>share-server-secret</goal> + </goals> + <phase>pre-site</phase> + <configuration> + <serverId>redmine-${platform}</serverId> + <passwordOut>redmine.password</passwordOut> + <usernameOut>redmine.username</usernameOut> + </configuration> + </execution> + <execution> <id>collect-files</id> <goals> <goal>collect-files</goal> @@ -909,26 +962,40 @@ <!--<copyFiles>false</copyFiles>--> </configuration> </execution> - </executions> </plugin> - - <!-- will be used in version 1.1.0 - add license and third-party files to classpath --> + <!-- generate the changes.xml from redmine --> <plugin> - <groupId>org.nuiton</groupId> - <artifactId>maven-license-plugin</artifactId> + <groupId>org.nuiton.jredmine</groupId> + <artifactId>maven-jredmine-plugin</artifactId> <executions> <execution> - <id>attach-licenses</id> + <id>jredmine-generate</id> <goals> - <goal>add-license</goal> - <goal>add-third-party</goal> + <goal>generate-changes</goal> + <goal>generate-news-announcement</goal> + <goal>generate-email-announcement</goal> </goals> + <phase>process-classes</phase> </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> @@ -952,8 +1019,60 @@ <plugins> - <!-- generate the changes.xml from redmine --> + <!-- + - obtain redmine login + - send release email + --> <plugin> + <groupId>org.nuiton</groupId> + <artifactId>maven-helper-plugin</artifactId> + <executions> + <execution> + <id>get-redmine-login</id> + <goals> + <goal>share-server-secret</goal> + </goals> + <phase>initialize</phase> + <configuration> + <serverId>redmine-${platform}</serverId> + <passwordOut>redmine.password</passwordOut> + <usernameOut>redmine.username</usernameOut> + </configuration> + </execution> + <execution> + <id>send-release-email</id> + <goals> + <goal>send-email</goal> + </goals> + <phase>validate</phase> + </execution> + </executions> + <configuration> + + <!-- for a multi-module just run on root project --> + <runOnce>true</runOnce> + + <emailTitle>[ANNOUNCEMENT] - ${project.name} ${project.version} released</emailTitle> + <emailContentFile>target/generated-sources/announcement/release-email-announcement.vm</emailContentFile> + <mailSender> + <name>${platform} Release Notification</name> + <email>noreply@${platform}</email> + </mailSender> + <toAddresses> + <item>${listId}-users@list.${platform}</item> + <item>${listId}-devel@list.${platform}</item> + <item>dev@codelutin.com</item> + </toAddresses> + <smtpHost>smtp</smtpHost> + </configuration> + </plugin> + + <!-- + - update version in redmine + - publish release files to redmine + - publish a release news in redmine + --> + <plugin> <groupId>org.nuiton.jredmine</groupId> <artifactId>maven-jredmine-plugin</artifactId> <executions> @@ -986,39 +1105,6 @@ </configuration> </plugin> - <!-- always add license and third-party files to classpath --> - <plugin> - <groupId>org.nuiton</groupId> - <artifactId>maven-helper-plugin</artifactId> - <executions> - <execution> - <id>send-release-email</id> - <goals> - <goal>send-email</goal> - </goals> - <phase>validate</phase> - </execution> - </executions> - <configuration> - - <!-- for a multi-module just run on root project --> - <runOnce>true</runOnce> - - <emailTitle>[ANNOUNCEMENT] - ${project.name} ${project.version} released</emailTitle> - <emailContentFile>target/generated-sources/announcement/release-email-announcement.vm</emailContentFile> - <mailSender> - <name>${platform} Release Notification</name> - <email>noreply@${platform}</email> - </mailSender> - <toAddresses> - <item>${listId}-users@list.${platform}</item> - <item>${listId}-devel@list.${platform}</item> - <item>dev@codelutin.com</item> - </toAddresses> - <smtpHost>smtp</smtpHost> - </configuration> - </plugin> - </plugins> </build> @@ -1213,6 +1299,104 @@ </properties> </profile> + <!--<profile> + <id>reporting</id> + <activation> + <property> + <name>performRelease</name> + <value>true</value> + </property> + </activation> + + <reporting> + <plugins> + + <plugin> + <artifactId>maven-javadoc-plugin</artifactId> + <version>${javadoc.version}</version> + <configuration> + <docencoding>${project.build.sourceEncoding}</docencoding> + <encoding>${project.build.sourceEncoding}</encoding> + <charset>${project.reporting.outputEncoding}</charset> + <quiet>${maven.javadoc.quiet}</quiet> + <skip>${maven.javadoc.skip}</skip> + <excludePackageNames>${maven.javadoc.excludePackageNames}</excludePackageNames> + </configuration> + <reportSets> + <reportSet> + <reports> + <report>javadoc</report> + <report>test-javadoc</report> + </reports> + </reportSet> + </reportSets> + </plugin> + + changelog:changelog + changelog:dev-activity + changelog:file-activity + FIXME : TC-20090816 : there is a bug with fileactivity + in report, trunk url are prefix with tag/xxx-releaseNumber ! + <plugin> + <artifactId>maven-changelog-plugin</artifactId> + <version>2.1</version> + configuration> + <displayFileDetailUrl>http://svn.${platform}/svn/${projectId}%FILE%</displayFileDetailUrl> + </configuration + </plugin> + + Implicit add of reportSet to not generate jira reports + <plugin> + <artifactId>maven-changes-plugin</artifactId> + <version>2.1</version> + <configuration> + <issueLinkTemplatePerSystem> + <redmine>${redmine.issueLinkTemplate}</redmine> + </issueLinkTemplatePerSystem> + <xmlPath>${redmine.xmlPath}</xmlPath> + </configuration> + <reportSets> + <reportSet> + <reports> + <report>changes-report</report> + </reports> + </reportSet> + </reportSets> + </plugin> + + <plugin> + <artifactId>maven-checkstyle-plugin</artifactId> + <version>2.3</version> + <configuration> + <encoding>${project.reporting.outputEncoding}</encoding> + </configuration> + </plugin> + + <plugin> + <artifactId>maven-pmd-plugin</artifactId> + <version>2.4</version> + <configuration> + <linkXRef>true</linkXRef> + <sourceEncoding>${project.reporting.outputEncoding}</sourceEncoding> + <minimumTokens>100</minimumTokens> + <targetJdk>${maven.compile.target}</targetJdk> + </configuration> + + </plugin> + + <plugin> + <artifactId>maven-jxr-plugin</artifactId> + <version>2.1</version> + </plugin> + + <plugin> + <artifactId>maven-surefire-report-plugin</artifactId> + <version>2.4.3</version> + </plugin> + </plugins> + </reporting> + </profile>--> + </profiles> </project>
participants (1)
-
tchemit@users.nuiton.org