Uploaded image for project: 'Maven Javadoc Plugin'
  1. Maven Javadoc Plugin
  2. MJAVADOC-541

Jenkinsfile withMaven causing JAVA_TOOL_OPTIONS message to be picked up as a Javadoc warning

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 3.0.1
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:

      Description

      When using withMaven in our Jenkinsfile, we can see the following message printed in the log:

      17:00:10 ----- withMaven Wrapper script -----
      17:00:10 Picked up JAVA_TOOL_OPTIONS: -Dmaven.ext.class.path="/proj/eiffel004_config/fem163/slaves/RHEL6.9_GE_3/workspace/javadoc-test@tmp/withMavene04471f1/pipeline-maven-spy.jar" -Dorg.jenkinsci.plugins.pipeline.maven.reportsFolder="/proj/eiffel004_config/fem163/slaves/RHEL6.9_GE_3/workspace/javadoc-test@tmp/withMavene04471f1" 

      See https://issues.jenkins-ci.org/browse/JENKINS-42484 for the source on this message.

      This is causing the maven-javadoc-plugin to pick it up as a Javadoc error, causing the build to fail as I've got failOnWarnings enabled.

      Error:

      17:00:27 [INFO] --- maven-javadoc-plugin:3.0.1:jar (generate-javadocs) @ javadoc-test-jar ---
      ...
      17:00:30 [WARNING] Javadoc Warnings
      17:00:30 [WARNING] Picked up JAVA_TOOL_OPTIONS: -Dmaven.ext.class.path="/proj/eiffel004_config/fem163/slaves/RHEL6.9_GE_3/workspace/javadoc-test@tmp/withMavene04471f1/pipeline-maven-spy.jar" -Dorg.jenkinsci.plugins.pipeline.maven.reportsFolder="/proj/eiffel004_config/fem163/slaves/RHEL6.9_GE_3/workspace/javadoc-test@tmp/withMavene04471f1"
      ...
      17:00:30 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:3.0.1:jar (generate-javadocs) on project javadoc-test-jar: MavenReportException: Error while generating Javadoc: Project contains Javadoc Warnings -> [Help 1]

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                rfscholte Robert Scholte
                Reporter:
                zodac Sheikh Arouge Mehdi
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: