[ 
https://issues.apache.org/jira/browse/MJAVADOC-449?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16752352#comment-16752352
 ] 

Nick Williams commented on MJAVADOC-449:
----------------------------------------

I'm seeing something slightly different, and I'm hoping someone here can help 
me understand if this is a different manifestation of this bug (and, if so, if 
this fix will still work) or if I have actually done something wrong (and how 
to fix it). I'd also love if anyone here has any idea about how soon this bug 
fix will be released. I'm not using Java 9. I'm using Java 8. I need my project 
to be compatible with all Java LTS, which means at this time that my project 
must be compatible with Java 8 and 11.

In my project, all of my packages have {{package-info.java}} with Javadoc and 
copyrights in them. When building, I'm getting an error very similar to others' 
errors above.

This example error is from the {{licensing-licensor-base}} module:

{code}
[INFO] --- maven-javadoc-plugin:3.0.1:jar (make-javadoc) @ 
licensing-licensor-base ---
[ERROR] no module descriptor for 
io.oddsource.java.licensing:licensing-licensor-base
[ERROR] no module descriptor for io.oddsource.java.licensing:licensing-core
{code}

And this one is from {{licensing-licensor-ui-core}}:

{code}
[INFO] --- maven-javadoc-plugin:3.0.1:jar (make-javadoc) @ 
licensing-licensor-ui-core ---
[ERROR] no module descriptor for 
io.oddsource.java.licensing:licensing-licensor-ui-core
[ERROR] no module descriptor for io.oddsource.java.licensing:licensing-core
[ERROR] no module descriptor for 
io.oddsource.java.licensing:licensing-licensor-base
{code}

However, and this is the key difference (I think), in my case, aggregation does 
NOT fail (in Java 8*). Aggregation completes, the Javadoc artifact is correct, 
and the build completes successfully. In a sense, one could argue that there's 
nothing wrong and I can ignore the errors. However, I really don't like seeing 
{{[ERROR]}} in my builds, for reasons that I think will be obvious to most 
devs. So is this the same bug, and will the fix resolve those errors for me? Or 
am I actually doing something wrong here?

(*I have not yet moved on to trying to build on Java 11. So that's TBD.)

The project source can be found at 
https://github.com/OddSource/java-license-manager. The current commit 
displaying this behavior as of this comment is {{db8c534}}.

> javadoc:aggregate fails with JDK 9
> ----------------------------------
>
>                 Key: MJAVADOC-449
>                 URL: https://issues.apache.org/jira/browse/MJAVADOC-449
>             Project: Maven Javadoc Plugin
>          Issue Type: Bug
>    Affects Versions: 2.10.3
>            Reporter: Hervé Boutemy
>            Assignee: Robert Scholte
>            Priority: Major
>             Fix For: 3.1.0
>
>         Attachments: 20180618-MJAVADOC449.zip, 
> maven-javadoc-plugin-aggregate-test.zip
>
>
> 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
> {noformat}[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{noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to