Author: tchemit Date: 2010-10-03 17:17:16 +0200 (Sun, 03 Oct 2010) New Revision: 990 Url: http://nuiton.org/repositories/revision/mavenpom/990 Log: improve central-safe profile usage Modified: trunk/mavenpom4redmine/mavenpom4redmineAndCentral/pom.xml Modified: trunk/mavenpom4redmine/mavenpom4redmineAndCentral/pom.xml =================================================================== --- trunk/mavenpom4redmine/mavenpom4redmineAndCentral/pom.xml 2010-10-03 13:16:10 UTC (rev 989) +++ trunk/mavenpom4redmine/mavenpom4redmineAndCentral/pom.xml 2010-10-03 15:17:16 UTC (rev 990) @@ -71,11 +71,8 @@ <site.repository>${our.site.repository}</site.repository> <!-- activate this profile while doing release:prepare --> - <arguments>-DperformRelease -Pcentral-safe</arguments> + <arguments>-DperformRelease</arguments> - <!-- activate this profile while doing release:perform --> - <releaseProfiles>central-safe</releaseProfiles> - <!-- deploy releases on central-releases repository --> <release.repository>${central.release.repository}</release.repository> @@ -121,6 +118,42 @@ </properties> </profile> + <profile> + <id>central-safe</id> + <activation> + <property> + <name>performRelease</name> + <value>true</value> + </property> + </activation> + + <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> + <central-releases>${central.release.home.url}</central-releases> + </repositories> + </configuration> + </execution> + </executions> + </plugin> + </plugins> + </build> + </profile> + </profiles> </project>