[ 
https://issues.apache.org/jira/browse/MJAVADOC-618?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Robert Scholte closed MJAVADOC-618.
-----------------------------------
    Fix Version/s:     (was: waiting-for-feedback)
                   3.3.1
         Assignee: Robert Scholte  (was: Olivier Lamy)
       Resolution: Fixed

Fixed in 
[0d0e0cc7325fc27b89b7bde0ba2cbe322ff6a040|https://gitbox.apache.org/repos/asf?p=maven-javadoc-plugin.git;a=commit;h=0d0e0cc7325fc27b89b7bde0ba2cbe322ff6a040]
In case of a modular aggregation report, if the artifact is not a file ending 
with {{.jar}} the output directory will be used.
This implies, that such module cannot have an automatic module name (these are 
added to the jar during packaging), so it must contain a module-info.java file.

> Goal javadoc:aggregate fails with submodules packaged as war
> ------------------------------------------------------------
>
>                 Key: MJAVADOC-618
>                 URL: https://issues.apache.org/jira/browse/MJAVADOC-618
>             Project: Maven Javadoc Plugin
>          Issue Type: Bug
>          Components: javadoc
>    Affects Versions: 3.1.0, 3.1.1
>         Environment: - Java 11 or grater is required.
> - Submodules must be configured to be java modules. I've used 
> 'Automatic-Module-Name' parameters with maven-jar-plugin
>            Reporter: Andrea Del Bene
>            Assignee: Robert Scholte
>            Priority: Major
>              Labels: close-pending
>             Fix For: 3.3.1
>
>         Attachments: maven-modular.zip
>
>
> If we have a submodule project producing a war archive, {{javadoc:aggregate}} 
> fails with the following message:
> {noformat}
> [WARNING] Only outputDirectories and jars are accepted on the path
>  [ERROR] Error while creating javadoc report: Only outputDirectories and jars 
> are accepted on the path
>  java.lang.IllegalArgumentException: Only outputDirectories and jars are 
> accepted on the path
>      at org.codehaus.plexus.languages.java.jpms.LocationManager.resolvePath 
> (LocationManager.java:333)
>      at org.codehaus.plexus.languages.java.jpms.LocationManager.resolvePath 
> (LocationManager.java:139)
>      at 
> org.apache.maven.plugins.javadoc.AbstractJavadocMojo.addJavadocOptions 
> (AbstractJavadocMojo.java:5001)
> {noformat}
> After some investigations it seems it tries to pass the war package to 
> LocationManager.resolvePath.
> I've added a quickstart project to reproduce the problem. Just run:
> {{mvn package javadoc:aggregate}}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to