Author: tchemit Date: 2009-10-09 18:42:45 +0200 (Fri, 09 Oct 2009) New Revision: 1657 Modified: trunk/pom.xml Log: use javadoc 2.5 (pb with doxia-jrst-module + maven-helper-plugin + javadoc 2.6) Modified: trunk/pom.xml =================================================================== --- trunk/pom.xml 2009-10-09 09:54:17 UTC (rev 1656) +++ trunk/pom.xml 2009-10-09 16:42:45 UTC (rev 1657) @@ -6,12 +6,8 @@ <!-- ************************************************************* --> <!-- *** POM Relationships *************************************** --> <!-- ************************************************************* --> - <parent> - <groupId>org.nuiton</groupId> - <artifactId>mavenpom</artifactId> - <version>1.0.3-SNAPSHOT</version> - </parent> - + + <groupId>org.nuiton</groupId> <artifactId>maven-license-plugin</artifactId> <version>2.0.0-SNAPSHOT</version> @@ -252,8 +248,97 @@ </description> <inceptionYear>2008</inceptionYear> <url>http://maven-site.nuiton.org/maven-license-plugin</url> + + <organization> + <name>CodeLutin</name> + <url>http://www.codelutin.com/</url> + </organization> + + <licenses> + <license> + <name>Lesser General Public License (LGPL)</name> + <url>${project.basedir}/LICENSE.txt</url> + <distribution>local</distribution> + </license> + </licenses> + + <developers> + <developer> + <name>Tony Chemit</name> + <id>tchemit</id> + <email>chemit@codelutin.com</email> + <organization>CodeLutin</organization> + <timezone>+2</timezone> + <roles> + <role>Développeur</role> + </roles> + </developer> + </developers> + <!-- ************************************************************* --> + <!-- *** Build Environment ************************************** --> + <!-- ************************************************************* --> + + <mailingLists> + <mailingList> + <name>maven-license-plugin-commits</name> + <subscribe>http://list.nuiton.org/cgi-bin/mailman/listinfo/maven-license-plugin-commits</subscribe> + <unsubscribe>http://list.nuiton.org/cgi-bin/mailman/listinfo/maven-license-plugin-commits</unsubscribe> + <post>maven-license-plugin-commits@list.nuiton.org</post> + <archive>http://list.nuiton.org/pipermail/maven-license-plugin-commits/</archive> + </mailingList> + + <mailingList> + <name>maven-license-plugin-devel</name> + <subscribe>http://list.nuiton.org/cgi-bin/mailman/listinfo/maven-license-plugin-devel</subscribe> + <unsubscribe>http://list.nuiton.org/cgi-bin/mailman/listinfo/maven-license-plugin-devel</unsubscribe> + <post>maven-license-plugin-devel@list.nuiton.org</post> + <archive>http://list.nuiton.org/pipermail/maven-license-plugin-devel/</archive> + </mailingList> + + <mailingList> + <name>maven-license-plugin-users</name> + <subscribe>http://list.nuiton.org/cgi-bin/mailman/listinfo/maven-license-plugin-users</subscribe> + <unsubscribe>http://list.nuiton.org/cgi-bin/mailman/listinfo/maven-license-plugin-users</unsubscribe> + <post>maven-license-plugin-users@list.nuiton.org</post> + <archive>http://list.nuiton.org/pipermail/maven-license-plugin-users/</archive> + </mailingList> + </mailingLists> + + <!-- Source control management. --> + <scm> + <connection>scm:svn:http://svn.nuiton.org/svn/maven-license-plugin/trunk</connection> + <developerConnection>scm:svn:http://svn.nuiton.org/svn/maven-license-plugin/trunk</developerConnection> + <url>http://www.nuiton.org/repositories/browse/maven-license-plugin/trunk</url> + </scm> + + <issueManagement> + <system>Redmine</system> + <url>http://www.nuiton.org/projects/maven-license-plugin/issues/</url> + </issueManagement> + + <distributionManagement> + <repository> + <id>nuiton</id> + <url>scpexe://nuiton.org/var/lib/maven/release</url> + </repository> + <snapshotRepository> + <id>nuiton</id> + <url>scpexe://nuiton.org/var/lib/maven/snapshot</url> + </snapshotRepository> + <site> + <id>nuiton</id> + <url>scpexe://nuiton.org/var/lib/redmine-nuiton/project-site/maven-license-plugin</url> + </site> + </distributionManagement> + + <ciManagement> + <system>hudson</system> + <url>http://hudson.nuiton.org/hudson/job/maven-license-plugin</url> + </ciManagement> + + <!-- ************************************************************* --> <!-- *** Build Settings ****************************************** --> <!-- ************************************************************* --> @@ -261,11 +346,43 @@ <properties> - <!-- must be removed after mavenpom release, avoid hudson to break --> - <helper.version>1.1.0-SNAPSHOT</helper.version> + <maven.src.dir>${basedir}/src</maven.src.dir> + <maven.compile.source>1.6</maven.compile.source> + <maven.compile.target>1.6</maven.compile.target> + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> + <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> + + <maven.test.skip>false</maven.test.skip> + + <!-- to activate generation of reports and javadoc when doing a site --> + <maven.reports.generate>true</maven.reports.generate> + + <license.licenseName>lgpl_v3</license.licenseName> + + <repository.home.url>http://maven.nuiton.org/release</repository.home.url> + <processor.version>1.0.1-SNAPSHOT</processor.version> - <javadoc.version>2.6</javadoc.version> + <helper.version>1.0.3</helper.version> + <jredmine.version>1.0.0-SNAPSHOT</jredmine.version> + <jrst.version>1.0.0</jrst.version> + + <maven.version>2.2.1</maven.version> + <!-- javadoc 2.6 ne fonctionne pas avec doxia-jrst + maven-helper-plugin --> + <javadoc.version>2.5</javadoc.version> + + <!-- redmine configuration --> + <redmine.url>http://www.nuiton.org</redmine.url> + <redmine.serverId>redmine-nuiton.org</redmine.serverId> + <redmine.projectId>${projectId}</redmine.projectId> + <redmine.xmlPath>target/generated-sources/changes/changes.xml</redmine.xmlPath> + <redmine.issueLinkTemplate>${redmine.url}/issues/show/%ISSUE%</redmine.issueLinkTemplate> + <redmine.versionLinkTemplate>${redmine.url}/versions/show/%VERSION%</redmine.versionLinkTemplate> + <redmine.collectedFiles>target/collect.properties</redmine.collectedFiles> + + <!-- extra files to include in release --> + <redmine.releaseFiles/> + </properties> <build> @@ -278,7 +395,6 @@ <plugin> <groupId>org.codehaus.plexus</groupId> <artifactId>plexus-component-metadata</artifactId> - <version>1.2.0</version> <executions> <execution> <goals> @@ -303,10 +419,54 @@ <pluginManagement> <plugins> + <plugin> + <groupId>org.codehaus.plexus</groupId> + <artifactId>plexus-component-metadata</artifactId> + <version>1.2.0</version> + </plugin> + + <plugin> + <artifactId>maven-resources-plugin</artifactId> + <version>2.3</version> + <configuration> + <encoding>${project.build.sourceEncoding}</encoding> + </configuration> + </plugin> + + <plugin> + <artifactId>maven-compiler-plugin</artifactId> + <version>2.0.2</version> + <configuration> + <source>${maven.compile.source}</source> + <target>${maven.compile.target}</target> + <encoding>${project.build.sourceEncoding}</encoding> + </configuration> + </plugin> + + <plugin> + <artifactId>maven-surefire-plugin</artifactId> + <version>2.4.3</version> + <configuration> + <skip>${maven.test.skip}</skip> + </configuration> + </plugin> + + <plugin> + <artifactId>maven-source-plugin</artifactId> + <version>2.1</version> + </plugin> + + <plugin> <artifactId>maven-javadoc-plugin</artifactId> <version>${javadoc.version}</version> <configuration> + <docencoding>${project.reporting.outputEncoding}</docencoding> + <encoding>${project.reporting.outputEncoding}</encoding> + <charset>${project.reporting.outputEncoding}</charset> + <quiet>true</quiet> + <!-- uniquement a partir de javadoc 2.5 --> + <!--skip>${maven.javadoc.skip}</skip--> <taglets> <taglet> <tagletClass>org.apache.maven.tools.plugin.javadoc.MojoAggregatorTypeTaglet</tagletClass> @@ -471,25 +631,54 @@ </taglet> </taglets> </configuration> - <executions> - <execution> - <id>attach-javadocs</id> - <goals> - <goal>jar</goal> - </goals> - </execution> - </executions> </plugin> + <plugin> <artifactId>maven-site-plugin</artifactId> + <version>2.0.1</version> + <configuration> + <locales>fr</locales> + <siteDirectory>src/site</siteDirectory> + <inputEncoding>${project.reporting.outputEncoding}</inputEncoding> + <outputEncoding>${project.reporting.outputEncoding}</outputEncoding> + <generateReports>${maven.reports.generate}</generateReports> + </configuration> <dependencies> <dependency> <groupId>org.nuiton.jrst</groupId> <artifactId>doxia-module-jrst</artifactId> <version>${jrst.version}</version> + <exclusions> + <exclusion> + <groupId>log4j</groupId> + <artifactId>log4j</artifactId> + </exclusion> + </exclusions> </dependency> </dependencies> </plugin> + + <plugin> + <artifactId>maven-release-plugin</artifactId> + <version>2.0-beta-9</version> + </plugin> + + <plugin> + <artifactId>maven-plugin-plugin</artifactId> + <version>2.5.1</version> + </plugin> + + <plugin> + <artifactId>maven-invoker-plugin</artifactId> + <version>1.3</version> + </plugin> + + <plugin> + <groupId>org.nuiton.jredmine</groupId> + <artifactId>maven-jredmine-plugin</artifactId> + <version>${jredmine.version}</version> + </plugin> + </plugins> </pluginManagement> @@ -497,14 +686,28 @@ <reporting> <plugins> + <!-- The Project Info Reports Plugin has twelve goals: + see http://maven.apache.org/plugins/maven-project-info-reports-plugin + --> <plugin> - <artifactId>maven-plugin-plugin</artifactId> - <version>2.5.1</version> + <artifactId>maven-project-info-reports-plugin</artifactId> + <version>2.1.2</version> + <configuration> + <dependencyDetailsEnabled>${maven.reports.dependencyDetailsEnabled}</dependencyDetailsEnabled> + <dependencyLocationsEnabled>${maven.reports.dependencyLocationsEnabled}</dependencyLocationsEnabled> + </configuration> </plugin> + <plugin> <artifactId>maven-javadoc-plugin</artifactId> <version>${javadoc.version}</version> <configuration> + <quiet>true</quiet> + <!--<skip>true</skip>--> + <docencoding>${project.build.sourceEncoding}</docencoding> + <encoding>${project.build.sourceEncoding}</encoding> + <charset>${project.reporting.outputEncoding}</charset> + <excludePackageNames>${maven.javadoc.excludePackageNames}</excludePackageNames> <taglets> <taglet> <tagletClass>org.apache.maven.tools.plugin.javadoc.MojoAggregatorTypeTaglet</tagletClass> @@ -669,19 +872,374 @@ </taglet> </taglets> </configuration> + <reportSets> + <reportSet> + <reports> + <report>javadoc</report> + <report>test-javadoc</report> + </reports> + </reportSet> + </reportSets> </plugin> + + <!-- changelog:changelog + changelog:dev-activity + changelog:file-activity --> + <plugin> + <artifactId>maven-changelog-plugin</artifactId> + <version>2.1</version> + </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> + + <plugin> + <artifactId>maven-plugin-plugin</artifactId> + <version>2.5.1</version> + </plugin> + + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>cobertura-maven-plugin</artifactId> + <version>2.3</version> + </plugin> + + <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 Environment ************************************** --> - <!-- ************************************************************* --> - <!-- Source control management. --> - <scm> - <connection>scm:svn:http://svn.nuiton.org/svn/maven-license-plugin/trunk</connection> - <developerConnection>scm:svn:http://svn.nuiton.org/svn/maven-license-plugin/trunk</developerConnection> - <url>http://www.nuiton.org/repositories/browse/maven-license-plugin/trunk</url> - </scm> - + <profiles> + <!-- perform only on a release stage when using the maven-release-plugin --> + <profile> + <id>release-profile</id> + <activation> + <property> + <name>performRelease</name> + <value>true</value> + </property> + </activation> + + <build> + <plugins> + + <!-- generate the changes.xml from redmine --> + <plugin> + <groupId>org.nuiton.jredmine</groupId> + <artifactId>maven-jredmine-plugin</artifactId> + <executions> + <execution> + <id>jredmine-generate</id> + <goals> + <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> + + <!-- always compute source jar --> + <plugin> + <artifactId>maven-source-plugin</artifactId> + <executions> + <execution> + <id>attach-sources</id> + <goals> + <goal>jar</goal> + </goals> + </execution> + </executions> + </plugin> + + <!-- always compute javadoc jar --> + <plugin> + <artifactId>maven-javadoc-plugin</artifactId> + <executions> + <execution> + <id>attach-javadocs</id> + <goals> + <goal>jar</goal> + </goals> + </execution> + </executions> + </plugin> + + <!-- TO REMOVE when using maven-helper-plugin 1.1.0 --> + <plugin> + <groupId>org.nuiton</groupId> + <artifactId>maven-helper-plugin</artifactId> + <executions> + <!-- will be removed when using maven-license-plugin --> + <execution> + <id>attach-licenses</id> + <goals> + <goal>add-license</goal> + <goal>add-third-party</goal> + </goals> + </execution> + <!-- collect files to send to redmine --> + <execution> + <id>collect-files</id> + <goals> + <goal>collect-files</goal> + </goals> + <phase>install</phase> + <configuration> + <extraFiles>${redmine.releaseFiles}</extraFiles> + <descriptionFile>${redmine.collectedFiles}</descriptionFile> + <!--<copyFiles>false</copyFiles>--> + </configuration> + </execution> + + </executions> + </plugin> + + </plugins> + </build> + </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> + <dryRun>true</dryRun> + <redmine.dryRun>${dryRun}</redmine.dryRun> + </properties> + <build> + + <plugins> + + <!-- generate the changes.xml from redmine --> + <plugin> + <groupId>org.nuiton.jredmine</groupId> + <artifactId>maven-jredmine-plugin</artifactId> + <executions> + <execution> + <id>jredmine-release</id> + <goals> + <goal>update-version</goal> + <goal>publish-attachments</goal> + <goal>publish-news</goal> + </goals> + <phase>validate</phase> + </execution> + </executions> + <configuration> + <!-- Send nothing ! --> + <!--<dryRun>true</dryRun>--> + + <!-- for a multi-module just run on root project --> + <runOnce>true</runOnce> + + <!-- update-version --> + <closeVersion>true</closeVersion> + + <!-- publish-attachments --> + <filesFromProperties>${redmine.collectedFiles}</filesFromProperties> + + <!-- publish-news --> + <newsContentFile>target/generated-sources/announcement/release-news-announcement.vm</newsContentFile> + <newsSummary>${project.description}</newsSummary> + <newsTitle>${project.name} ${project.version} released</newsTitle> + + </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> + <!-- Send nothing ! --> + <!--<dryRun>true</dryRun>--> + + <!-- 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>nuiton.org Release Notification</name> + <email>noreply@nuiton.org</email> + </mailSender> + <toAddresses> + <!--<item>${listId}-users@list.nuiton.org</item>--> + <!--<item>lutin@codelutin.com</item>--> + <!--<item>dev@codelutin.com</item>--> + <item>chemit@codelutin.com</item> + </toAddresses> + <smtpHost>smtp</smtpHost> + </configuration> + </plugin> + + </plugins> + + </build> + </profile> + + <!-- do not execute tests (generaly a bad idea...) --> + <profile> + <id>notests</id> + <activation> + <activeByDefault>false</activeByDefault> + </activation> + <properties> + <maven.test.skip>true</maven.test.skip> + </properties> + </profile> + <!-- do not build reports (speedup site generation in dev) --> + <profile> + <id>noreports</id> + <activation> + <activeByDefault>false</activeByDefault> + </activation> + <properties> + <maven.reports.generate>false</maven.reports.generate> + </properties> + </profile> + <!-- do not build dependencies detail in maven-project-info-report (speedup site generation in dev) --> + <profile> + <id>nodepdetails</id> + <activation> + <activeByDefault>false</activeByDefault> + </activation> + <properties> + <maven.reports.dependencyDetailsEnabled>false</maven.reports.dependencyDetailsEnabled> + </properties> + </profile> + <!-- do not build locations of dependencies in maven-project-info-report (speedup site generation in dev) --> + <profile> + <id>nodeplocations</id> + <activation> + <activeByDefault>false</activeByDefault> + </activation> + <properties> + <maven.reports.dependencyLocationsEnabled>false</maven.reports.dependencyLocationsEnabled> + </properties> + </profile> + + <!--profile> + <id>run-its</id> + <build> + <plugins> + <plugin> + <artifactId>maven-invoker-plugin</artifactId> + <configuration> + <pomIncludes> + <pomInclude>**/pom.xml</pomInclude> + </pomIncludes> + <postBuildHookScript>verify</postBuildHookScript> + <localRepositoryPath>${basedir}/target/local-repo</localRepositoryPath> + <settingsFile>src/it/settings.xml</settingsFile> + <cloneProjectsTo>${project.build.directory}/its</cloneProjectsTo> + </configuration> + <executions> + <execution> + <id>integration-test</id> + <goals> + <goal>install</goal> + <goal>run</goal> + </goals> + <phase>integration-test</phase> + </execution> + </executions> + </plugin> + </plugins> + </build> + </profile--> + + </profiles> + </project>
participants (1)
-
tchemit@users.nuiton.org