使用Java9 module-info.java遇到问题Maven Java文档插件

时间:2019-04-17 16:36:57

标签: java maven java-10 maven-javadoc-plugin

在带有Java 10的maven java doc插件(包括module-info.java)中遇到多模块问题

java -version

java 10.0.2 2018-07-17
Java(TM) SE Runtime Environment 18.3 (build 10.0.2+13)
Java HotSpot(TM) 64-Bit Server VM 18.3 (build 10.0.2+13, mixed mode)

Maven版本

Maven home: apache-maven-3.6.0
Java version: 10.0.2, vendor: Oracle Corporation, runtime: /Library/Java/JavaVirtualMachines/jdk-10.0.2.jdk/Contents/Home
Default locale: en_IN, platform encoding: UTF-8
OS name: "mac os x", version: "10.14.3", arch: "x86_64", family: "mac"

java doc插件

 <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-javadoc-plugin</artifactId>
                <version>3.1.0</version>
                <executions>
                    <execution>
                        <id>attach-javadocs</id>
                        <goals>
                            <goal>aggregate</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>

运行 mvn javadoc:aggregate时发生错误 An error has occurred in Javadoc report generation: Aggregator report contains named and unnamed modules

0 个答案:

没有答案