Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-65528

Option to avoid "Picked up JAVA_TOOL_OPTIONS" messages

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      I started using the plugin, and in the FAQ it says that there is no way to avoid

      [WARNING] Picked up JAVA_TOOL_OPTIONS: -Dmaven.ext.class.path="/path/to/workspace/...@tmp/withMaven.../pipeline-maven-spy.jar" -Dorg.jenkinsci.plugins.pipeline.maven.reportsFolder="/path/to/workspace/...@tmp"

      message.

      However, this results in red-colored messages all over the place.

      I have an idea on how to avoid this: introduce an option to put 

      -Dmaven.ext.class.path=".../pipeline-maven-spy.jar" -Dorg.jenkinsci.plugins.pipeline.maven.reportsFolder="..."

      arguments into MAVEN_OPTS (optionally) instead of JAVA_TOOL_OPTIONS

       Something like

      withMaven(dontUseToolsOptions: true) { ... }
      

       

      This way, these messages can be avoided, and the release plugin functionality can be preserved.

      Currently, I am using something like this to avoid this issue, but it's cumbersome and not scalable:

      withMaven {
       sh """\
       MAVEN_OPTS="$MAVEN_OPTS $JAVA_TOOL_OPTIONS" \
       env -u JAVA_TOOL_OPTIONS \
       mvn verify \
       """
      }

        Attachments

          Activity

          Hide
          aheritier Arnaud Héritier added a comment -

          thanks for your feedback Lenny

          I'll try to look at it ASAP

          Show
          aheritier Arnaud Héritier added a comment - thanks for your feedback Lenny I'll try to look at it ASAP
          Hide
          lprimak Lenny added a comment -

          Thanks Arnaud!

          Show
          lprimak Lenny added a comment - Thanks Arnaud!

            People

            Assignee:
            aheritier Arnaud Héritier
            Reporter:
            lprimak Lenny
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated: