Uploaded image for project: 'Common Controller SDK'
  1. Common Controller SDK
  2. CCSDK-2648

Java11 compile fails if java-doc is build for artifact

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Medium Medium
    • Guilin Release
    • Guilin Release
    • parent
    • None

      Problem found with: binding-parent, odlparent .. more effected

      Message: 

       

      Java11 compile fails with ERROR] Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:2.10.4:jar (attach-javadocs) on project sdnr-wt-apigateway-provider: MavenReportException: Error while generating Javadoc: 
      [ERROR] Exit code: 1 - javadoc: error - The code being documented uses modules but the packages defined in http://docs.oracle.com/javase/8/docs/api/ are in the unnamed module.

       

      POM configuration: <maven.javadoc.skip>false</maven.javadoc.skip>.

      Analysis: Parent are forcing to use "old maven-javadoc-plugin", what is working for Java8

      <groupId>org.apache.maven.plugins</groupId>
      <artifactId>maven-javadoc-plugin</artifactId>
      <version>2.10.4</version>

      Solution: 

      Change related pom files to version:

      <artifactId>maven-javadoc-plugin</artifactId>
      <version>3.1.1</version>

      • This version is used in ODL parents and should be used for ONAP Guilin
      • It is working for Java8 and Java11 builds

            metaljackL Michael Dürre
            highstreetherbert Herbert Eiselt
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: