Author: tchemit Date: 2010-06-19 20:56:02 +0200 (Sat, 19 Jun 2010) New Revision: 731 Url: http://nuiton.org/repositories/revision/maven-helper-plugin/731 Log: Utilisation de mavenpom4redmine 2.2 Modified: trunk/pom.xml Modified: trunk/pom.xml =================================================================== --- trunk/pom.xml 2010-06-19 15:47:59 UTC (rev 730) +++ trunk/pom.xml 2010-06-19 18:56:02 UTC (rev 731) @@ -34,7 +34,7 @@ <parent> <groupId>org.nuiton</groupId> <artifactId>mavenpom4redmine</artifactId> - <version>2.1.5</version> + <version>2.2</version> </parent> <artifactId>maven-helper-plugin</artifactId> @@ -307,14 +307,6 @@ <url>http://www.nuiton.org/repositories/browse/maven-helper-plugin/trunk</url> </scm> - <!-- remove this when using mavenpom4redmine 2.2 --> - <distributionManagement> - <repository> - <id>nuiton</id> - <url>scpexe://nuiton.org/var/lib/nexus/storage/nuiton-central-releases</url> - </repository> - </distributionManagement> - <!-- ************************************************************* --> <!-- *** Build Settings ****************************************** --> <!-- ************************************************************* --> @@ -323,10 +315,6 @@ <properties> - <!-- TODO Use the central-safe profile when mavenpom > 2.2 --> - <!-- deploy releases on nuiton-central-releases repository --> - <release.repository>scpexe://nuiton.org/var/lib/nexus/storage/nuiton-central-releases</release.repository> - <plexusMailSender.version>1.0-alpha-2</plexusMailSender.version> <!-- extra files to include in release --> @@ -543,6 +531,51 @@ </build> </profile> + <profile> + <id>central-safe</id> + <activation> + <property> + <name>performRelease</name> + <value>true</value> + </property> + </activation> + + <properties> + + <!-- deploy releases on nuiton-central-releases repository --> + <release.repository>${nuiton.central.release.repository}</release.repository> + + </properties> + + <build> + <defaultGoal>validate</defaultGoal> + <plugins> + <plugin> + <groupId>org.nuiton</groupId> + <artifactId>maven-helper-plugin</artifactId> + <executions> + <execution> + <id>check-central-safe</id> + <inherited>true</inherited> + <goals> + <goal>check-auto-container</goal> + </goals> + <configuration> + <addMavenCentral>true</addMavenCentral> + <failIfNotSafe>true</failIfNotSafe> + <repositories> + <nuiton-central-releases> + http://nexus.nuiton.org/nexus/content/repositories/nuiton-central-releases + </nuiton-central-releases> + </repositories> + </configuration> + </execution> + </executions> + </plugin> + </plugins> + </build> + </profile> + </profiles> </project>
participants (1)
-
tchemit@users.nuiton.org