Henning Schmiedehausen created MJAVADOC-767:
-----------------------------------------------
Summary: javadoc creates invalid --patch-module statements
Key: MJAVADOC-767
URL: https://issues.apache.org/jira/browse/MJAVADOC-767
Project: Maven Javadoc Plugin
Issue Type: Bug
Components: jar
Affects Versions: 3.5.0
Reporter: Henning Schmiedehausen
Jdbi is a mixed Java/Kotlin multi-module project. We aggregate a final jar that
contains all the javadocs for all modules in a doc step. This works ok for
non-JPMS (Java 8 target).
When introducing JPMS into our project, the javadoc plugin starts adding
--patch-module options like this:
{{--patch-module
org.jdbi.v3.caffeine='/Users/henning/code/jdbi/cache/caffeine-cache/src/main/java:/Users/henning/code/jdbi/cache/caffeine-cache/target/generated-sources/annotations'
}}
However, in our configuration, we exclude the kotlin specific modules:
{quote}<plugin>
<artifactId>maven-javadoc-plugin</artifactId>
<executions>
<execution>
<id>javadoc-jar</id>
<goals>
<goal>jar</goal>
</goals>
<phase>package</phase>
<configuration>
<includeDependencySources>true</includeDependencySources>
<detectOfflineLinks>false</detectOfflineLinks>
<dependencySourceIncludes>
<dependencySourceInclude>org.jdbi:*</dependencySourceInclude>
</dependencySourceIncludes>
<dependencySourceExcludes>
<dependencySourceExclude>org.jdbi:jdbi3-kotlin</dependencySourceExclude>
<dependencySourceExclude>org.jdbi:jdbi3-kotlin-sqlobject</dependencySourceExclude>
</dependencySourceExcludes>
<skippedModules>jdbi3-kotlin,jdbi3-kotlin-sqlobject</skippedModules>
<doctitle>Jdbi3 ${project.version} API</doctitle>
<windowtitle>Jdbi3 ${project.version} API</windowtitle>
</configuration>
</execution>
</executions>
</plugin>
{quote}
which results in the maven-javadoc-plugin creating command line options like
this:
{{--patch-module org.jdbi.v3.kotlin=
}}
which in turn crash the javadoc command.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)