Author: tchemit Date: 2009-05-11 21:20:14 +0000 (Mon, 11 May 2009) New Revision: 1526 Added: maven-nuiton-project-helper-plugin/trunk/src/main/java/org/nuiton/ maven-nuiton-project-helper-plugin/trunk/src/main/java/org/nuiton/license/ maven-nuiton-project-helper-plugin/trunk/src/test/java/org/nuiton/ maven-nuiton-project-helper-plugin/trunk/src/test/java/org/nuiton/license/ Modified: maven-nuiton-project-helper-plugin/trunk/pom.xml Log: migrate to nuiton Modified: maven-nuiton-project-helper-plugin/trunk/pom.xml =================================================================== --- maven-nuiton-project-helper-plugin/trunk/pom.xml 2009-05-11 19:54:46 UTC (rev 1525) +++ maven-nuiton-project-helper-plugin/trunk/pom.xml 2009-05-11 21:20:14 UTC (rev 1526) @@ -6,32 +6,13 @@ <!-- ************************************************************* --> <!-- *** POM Relationships *************************************** --> <!-- ************************************************************* --> - <!--parent> - <groupId>org.nuiton</groupId> - <artifactId>nuitonproject</artifactId> - <version>3.6.0-SNAPSHOT</version> - </parent--> - + <groupId>org.nuiton</groupId> <artifactId>maven-nuiton-project-helper-plugin</artifactId> <version>1.0.0-SNAPSHOT</version> <dependencies> - - <!--dependency> - <groupId>org.codelutin</groupId> - <artifactId>lutinprocessor</artifactId> - <version>${processor.version}</version> - <scope>compile</scope> - </dependency> - - <dependency> - <groupId>org.codelutin</groupId> - <artifactId>lutinpluginutil</artifactId> - <version>${lutinpluginutil.version}</version> - <scope>compile</scope> - </dependency--> <dependency> <groupId>org.apache.maven.shared</groupId> @@ -296,14 +277,92 @@ </pluginManagement> </build> + <reporting> <plugins> + + <!-- + The Project Info Reports Plugin has twelve goals: + * project-info-reports:cim is used to generate the Project Continuous Integration System report. + * project-info-reports:dependencies is used to generate the Project Dependencies report. + * project-info-reports:dependency-convergence is used to generate the Project Dependency Convergence report for reactor builds. + * project-info-reports:dependency-management is used to generate the Project DependencyManagement report. + * project-info-reports:index is used to generate the Project index page. + * project-info-reports:issue-tracking is used to generate the Project Issue Tracking report. + * project-info-reports:license is used to generate the Project License report. + * project-info-reports:mailing-list is used to generate the Project Mailing List report. + * project-info-reports:plugin-management is used to generate the Project PluginManagement report. + * project-info-reports:project-team is used to generate the Project Team report. + * project-info-reports:scm is used to generate the Project Source Code Management report. + * project-info-reports:summary is used to generate the Project information reports summary. + --> <plugin> <artifactId>maven-project-info-reports-plugin</artifactId> <version>2.1.1-cl</version> </plugin> - + <plugin> + <artifactId>maven-javadoc-plugin</artifactId> + <version>2.5</version> + <configuration> + <quiet>true</quiet> + <docencoding>${project.build.sourceEncoding}</docencoding> + <encoding>${project.build.sourceEncoding}</encoding> + </configuration> + </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> + <reportSets> + <reportSet> + <reports> + <report>changes-report</report> + </reports> + </reportSet> + </reportSets> + </plugin> + + <plugin> + <artifactId>maven-checkstyle-plugin</artifactId> + <version>2.2</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> </plugin> </plugins> @@ -315,11 +374,35 @@ <!--Source control management--> <scm> - <url>${maven.scm.url}</url> - <connection>${maven.scm.connection}</connection> - <developerConnection>${maven.scm.developerConnection}</developerConnection> + <connection>scm:svn:svn://anonymous@labs.libre-entreprise.org/svnroot/lutinbuilder/maven-nuiton-project-helper-plugin/trunk</connection> + <developerConnection>scm:svn:svn+ssh://${username}@labs.libre-entreprise.org/svnroot/lutinbuilder/maven-nuiton-project-helper-plugin/trunk</developerConnection> + <url>http://labs.libre-entreprise.org/plugins/scmsvn/viewcvs.php/maven-nuiton-project-helper-plugin/trunk/?root=lutinbuilder</url> </scm> + <distributionManagement> + <repository> + <id>labs</id> + <url>scpexe://labs.libre-entreprise.org/home/groups/lutinbuilder/htdocs/maven2</url> + </repository> + <site> + <id>labs</id> + <url>scpexe://labs.libre-entreprise.org/home/groups/lutinbuilder/htdocs/maven-nuiton-project-helper-plugin</url> + </site> + </distributionManagement> + + <ciManagement> + <system>hudson</system> + <url>http://hudson.codelutin.com</url> + <notifiers> + <notifier> + <address>admin+hudson@codelutin.com</address> + <configuration> + <recipients>dev@codelutin.com</recipients> + </configuration> + </notifier> + </notifiers> + </ciManagement> + <!--Code Lutin Repository--> <repositories> <repository> @@ -349,21 +432,94 @@ </activation> <build> <plugins> - <!-- always add license and third-party files to classpath --> + + <!-- always check labs properties --> <plugin> - <groupId>org.codelutin</groupId> - <artifactId>maven-license-switcher-plugin</artifactId> - <version>0.8</version> + <artifactId>maven-enforcer-plugin</artifactId> + <version>1.0-beta-1</version> <executions> <execution> + <id>attach-nuiton-enforcer</id> + <goals> + <goal>enforce</goal> + </goals> + <phase>initialize</phase> + </execution> + </executions> + <configuration> + <rules> + <!--requireProperty> + <property>labs.id</property> + <regex>\d+</regex> + <regexMessage>"labs.id can must be a number!"</regexMessage> + </requireProperty> + <requireProperty> + <property>labs.project</property> + <regex>\w(\w|\d|-)*</regex> + <regexMessage>"labs.project can not be empty!"</regexMessage> + </requireProperty--> + <requireFilesExist> + <files> + <file>changelog.txt</file> + <file>LICENSE.txt</file> + <file>README.txt</file> + </files> + </requireFilesExist> + <!-- on verifie que le labs.id et labs.name sont bien surchargés (sauf pour les project de + lutinbuilder). --> + <!--myCustomRule implementation="org.nuiton.enforcer.CheckLabsPropertiesRule" /--> + + </rules> + <ignoreCache>true</ignoreCache> + <failFast>true</failFast> + <fail>true</fail> + + </configuration> + + <!--dependencies> + <dependency> + <groupId>org.nuiton</groupId> + <artifactId>nuiton-enforcer-rules</artifactId> + <version>1.0.0-SNAPSHOT</version> + </dependency> + </dependencies--> + </plugin> + + <!-- always compute source jar --> + <plugin> + <artifactId>maven-source-plugin</artifactId> + <executions> + <execution> + <id>attach-sources</id> + </execution> + </executions> + </plugin> + + <!-- always compute javadoc jar --> + <plugin> + <artifactId>maven-javadoc-plugin</artifactId> + <executions> + <execution> + <id>attach-javadocs</id> + </execution> + </executions> + </plugin> + + <!-- always add license and third-party files to classpath --> + <!--plugin> + <groupId>${project.groupId}</groupId> + <artifactId>${project.artifactId}</artifactId> + <version>${project.version}</version> + <executions> + <execution> <id>attach-licenses</id> <goals> - <goal>license</goal> - <goal>third-party</goal> + <goal>add-license</goal> + <goal>add-third-party</goal> </goals> </execution> </executions> - </plugin> + </plugin--> </plugins> </build> </profile>