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

javadoc:aggregate fails with JDK 9

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.10.3
    • 3.1.0
    • None
    • None

    Description

      trying mvn -Preporting site with Maven core and maven-javadoc-plugin upgraded to 2.10.4-SNAPSHOT to benefit from already JDK 9 related fixed issues shows another one

      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-site-plugin:3.4:site (default-site) on project maven: Error generating maven-javadoc-plugin:2.10.4-SNAPSHOT:aggregate: Unable to resolve artifact:groupId = 'org.apache.maven.plugin-tools'
      [ERROR] artifactId = 'maven-plugin-tools-javadoc'
      [ERROR] version = '3.4': Missing:
      [ERROR] ----------
      [ERROR] 1) com.sun:tools:jar:1.4.2
      [ERROR] 
      [ERROR] Try downloading the file manually from the project website.
      [ERROR] 
      [ERROR] Then, install it using the command:
      [ERROR] mvn install:install-file -DgroupId=com.sun -DartifactId=tools -Dversion=1.4.2 -Dpackaging=jar -Dfile=/path/to/file
      [ERROR] 
      [ERROR] Alternatively, if you host your own repository you can deploy the file there:
      [ERROR] mvn deploy:deploy-file -DgroupId=com.sun -DartifactId=tools -Dversion=1.4.2 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
      [ERROR] 
      [ERROR] Path to dependency:
      [ERROR] 1) org.apache.maven.plugin-tools:maven-plugin-tools-javadoc:jar:3.4
      [ERROR] 2) com.sun:tools:jar:1.4.2
      [ERROR] 
      [ERROR] ----------
      [ERROR] 1 required artifact is missing.
      [ERROR] 
      [ERROR] for artifact:
      [ERROR] org.apache.maven.plugin-tools:maven-plugin-tools-javadoc:jar:3.4
      [ERROR] 
      [ERROR] from the specified remote repositories:
      [ERROR] apache.snapshots (http://repository.apache.org/snapshots, releases=false, snapshots=true),
      [ERROR] central (https://repo.maven.apache.org/maven2, releases=true, snapshots=false)
      [ERROR] -> [Help 1]
      [ERROR] 
      [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
      [ERROR] Re-run Maven using the -X switch to enable full debug logging.
      [ERROR] 
      [ERROR] For more information about the errors and possible solutions, please read the following articles:
      [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

      Attachments

        1. 20180618-MJAVADOC449.zip
          7 kB
          Ed Burns
        2. maven-javadoc-plugin-aggregate-test.zip
          4 kB
          James Marble

        Issue Links

          Activity

            People

              rfscholte Robert Scholte
              hboutemy Herve Boutemy
              Votes:
              3 Vote for this issue
              Watchers:
              13 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: