[MPLUGIN-267] added Maven 2 specific configuration inside a profile
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1601007 13f79535-47bb-0310-9956-ffa450edef68master
parent
e0b306c105
commit
2aa4a2c9cd
|
|
@ -128,12 +128,22 @@ Using Plugin Tools Java5 Annotations
|
||||||
to avoid failure on default execution phase and add another execution:
|
to avoid failure on default execution phase and add another execution:
|
||||||
|
|
||||||
+-----+
|
+-----+
|
||||||
|
<project>
|
||||||
|
...
|
||||||
|
<profiles>
|
||||||
|
<profile>
|
||||||
|
<id>maven-2</id>
|
||||||
|
<activation>
|
||||||
|
<file>
|
||||||
|
<!-- This employs that the basedir expression is only recognized by Maven 3.x (see MNG-2363) -->
|
||||||
|
<missing>${basedir}</missing>
|
||||||
|
</file>
|
||||||
|
</activation>
|
||||||
<build>
|
<build>
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-plugin-plugin</artifactId>
|
<artifactId>maven-plugin-plugin</artifactId>
|
||||||
<version>${project.version}</version>
|
|
||||||
<configuration>
|
<configuration>
|
||||||
<!-- see http://jira.codehaus.org/browse/MNG-5346 -->
|
<!-- see http://jira.codehaus.org/browse/MNG-5346 -->
|
||||||
<skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound>
|
<skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound>
|
||||||
|
|
@ -145,5 +155,11 @@ Using Plugin Tools Java5 Annotations
|
||||||
<goal>descriptor</goal>
|
<goal>descriptor</goal>
|
||||||
</goals>
|
</goals>
|
||||||
</execution>
|
</execution>
|
||||||
...
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</build>
|
||||||
|
</profile>
|
||||||
|
</profiles>
|
||||||
|
</project>
|
||||||
+-----+
|
+-----+
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue