Author: tchemit Date: 2013-03-08 12:00:57 +0100 (Fri, 08 Mar 2013) New Revision: 1418 Url: http://nuiton.org/projects/mavenpom/repository/revisions/1418 Log: fixes #2574: Extract from the release-profile all the quality plugin invocations Modified: trunk/pom.xml Modified: trunk/pom.xml =================================================================== --- trunk/pom.xml 2013-03-08 10:04:16 UTC (rev 1417) +++ trunk/pom.xml 2013-03-08 11:00:57 UTC (rev 1418) @@ -1023,45 +1023,6 @@ </executions> </plugin> - <plugin> - <groupId>org.codehaus.mojo</groupId> - <artifactId>animal-sniffer-maven-plugin</artifactId> - <executions> - <execution> - <goals> - <goal>check</goal> - </goals> - </execution> - </executions> - </plugin> - - <plugin> - <artifactId>maven-enforcer-plugin</artifactId> - <executions> - <execution> - <goals> - <goal>enforce</goal> - </goals> - <id>ensure-no-container-api</id> - <configuration> - <rules> - <bannedDependencies> - <excludes> - <exclude>org.codehaus.plexus:plexus-component-api</exclude> - </excludes> - <message> - The new containers are not supported. You - probably added a dependency that is missing the - exclusions. - </message> - </bannedDependencies> - </rules> - <fail>true</fail> - </configuration> - </execution> - </executions> - </plugin> - </plugins> </build> @@ -1262,6 +1223,62 @@ </profile> + <!-- perform only on a release to do quality checks on release --> + <profile> + <id>release-quality-profile</id> + <activation> + <property> + <name>performRelease</name> + <value>true</value> + </property> + </activation> + + <build> + <plugins> + + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>animal-sniffer-maven-plugin</artifactId> + <executions> + <execution> + <goals> + <goal>check</goal> + </goals> + </execution> + </executions> + </plugin> + + <plugin> + <artifactId>maven-enforcer-plugin</artifactId> + <executions> + <execution> + <goals> + <goal>enforce</goal> + </goals> + <id>ensure-no-container-api</id> + <configuration> + <rules> + <bannedDependencies> + <excludes> + <exclude>org.codehaus.plexus:plexus-component-api</exclude> + </excludes> + <message> + The new containers are not supported. You + probably added a dependency that is missing the + exclusions. + </message> + </bannedDependencies> + </rules> + <fail>true</fail> + </configuration> + </execution> + </executions> + </plugin> + + </plugins> + </build> + </profile> + <!-- do not generate site if no src/site is found for module --> <profile> <id>no-site</id>
participants (1)
-
tchemit@users.nuiton.org