[UIMA-3869] Better maven-plugin-plugin configuration
- Configure extractors in parent-pom
- Configure helpmojo in parent-pom
- Now all maven-plugin-plugin configuration can be removed in the modules
git-svn-id: https://svn.apache.org/repos/asf/uima/build/trunk@1601614 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/parent-pom/pom.xml b/parent-pom/pom.xml
index a254297..56d07df 100644
--- a/parent-pom/pom.xml
+++ b/parent-pom/pom.xml
@@ -319,19 +319,19 @@
<artifactId>build-helper-maven-plugin</artifactId>
<version>1.8</version>
</plugin>
-<!--
+ <!--
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<version>1.3</version>
</plugin>
- -->
+ -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-plugin-plugin</artifactId>
- <!-- Version 3.3 required for Java 8 builds -->
- <!-- http://jira.codehaus.org/browse/MPLUGIN-244 -->
- <version>3.3</version>
+ <!-- Version 3.3 required for Java 8 builds -->
+ <!-- http://jira.codehaus.org/browse/MPLUGIN-244 -->
+ <version>3.3</version>
<executions>
<execution>
<!-- force to use process-classes phase so runs after Java Annotations are available -->
@@ -339,7 +339,19 @@
<id>default-descriptor</id>
<phase>process-classes</phase>
</execution>
+ <execution>
+ <id>generate-helpmojo</id>
+ <goals><goal>helpmojo</goal></goals>
+ <configuration>
+ <!-- The following line can be removed when upgrading to maven-plugin-plugin:3.4 -->
+ <!-- https://jira.codehaus.org/browse/MPLUGIN-238 -->
+ <skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound>
+ </configuration>
+ </execution>
</executions>
+ <configuration>
+ <extractors><extractor>java-annotations</extractor></extractors>
+ </configuration>
</plugin>
<!-- set Java 1.5 as the source and target of compilation -->