• Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Minor Minor
    • maven-plugin
    • None
    • maven-interation-plugin 2.12.1
      jenkins 1.625.1

      Solution of JENKINS-18403 implements a JDK switch for maven builds using a JDK1.6 or older. The javadocExecutable variable should also be set, to use the javadoc of the 'older' JDK. (https://maven.apache.org/plugins/maven-javadoc-plugin/javadoc-mojo.html#javadocExecutable)

      Since the strict parser rules with the newer javadoc versions this likely leads to build errors. (http://blog.joda.org/2014/02/turning-off-doclint-in-jdk-8-javadoc.html)

      As a workaround, setting:

      <properties>
          ...
          <javadocExecutable>${JAVA_HOME}/bin/javadoc</javadocExecutable>
      </properties>
      

      in the pom helps. But again requires manual adjustment in every build.

          [JENKINS-31036] maven jdk switch should also cover javadoc

          Andreas Mandel created issue -
          Andreas Mandel made changes -
          Link New: This issue is related to JENKINS-18403 [ JENKINS-18403 ]

          I think that the best is too use maven toolchains. It is the best solution. Maybe we could improve its support in jenkins

          Arnaud Héritier added a comment - I think that the best is too use maven toolchains. It is the best solution. Maybe we could improve its support in jenkins
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 166201 ] New: JNJira + In-Review [ 182299 ]

          It's also possible to work around this in the master, rather than making changes to every build.

          In http://jenkins.example.com/configure you can set 'Global MAVEN_OPTS' to '-Dadditionalparam=-Xdoclint:none'. This allows you to disable the strict javadoc and use the newer JDK/newer Jenkins with older Java projects.

          Wilfred Hughes added a comment - It's also possible to work around this in the master, rather than making changes to every build. In http://jenkins.example.com/configure you can set 'Global MAVEN_OPTS' to '-Dadditionalparam=-Xdoclint:none'. This allows you to disable the strict javadoc and use the newer JDK/newer Jenkins with older Java projects.

            Unassigned Unassigned
            andreasmandel Andreas Mandel
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: