Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
3.1.0, 3.1.1
-
- 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
Description
If we have a submodule project producing a war archive, javadoc:aggregate fails with the following message:
[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)
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
Attachments
Attachments
Issue Links
- is duplicated by
-
MJAVADOC-632 agggregate using jpms and non jar module is failing
- Closed