File: 07-MPLUGIN-238.patch

package info (click to toggle)
maven-plugin-tools 3.3-5
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 2,108 kB
  • ctags: 1,460
  • sloc: java: 9,814; xml: 4,209; sh: 13; makefile: 4
file content (15 lines) | stat: -rw-r--r-- 692 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Description: Avoid HelpMojo failure when using java-annotations without any configuration
Origin: backport, http://svn.apache.org/r1599050
Bug: https://issues.apache.org/jira/browse/MPLUGIN-238
--- a/maven-plugin-plugin/src/main/java/org/apache/maven/plugin/plugin/HelpGeneratorMojo.java
+++ b/maven-plugin-plugin/src/main/java/org/apache/maven/plugin/plugin/HelpGeneratorMojo.java
@@ -85,6 +85,9 @@
     public void execute()
         throws MojoExecutionException
     {
+        // force value for this plugin
+        skipErrorNoDescriptorsFound = true;
+
         super.execute();
 
         if ( !project.getCompileSourceRoots().contains( outputDirectory.getAbsolutePath() ) && !skip )