Questions tagged «maven-javadoc-plugin»

5
如何从命令行禁用Maven Javadoc插件?
在pom.xml中,我有这样的声明 <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-javadoc-plugin</artifactId> <executions> <execution> <id>attach-javadocs</id> <goals> <goal>jar</goal> </goals> </execution> </executions> </plugin> 有什么办法可以从命令行关闭它吗? 我知道我可以将其提取到个人资料中,但这不是我想要的。

9
JDK8-尝试使用Maven Javadoc插件生成Javadoc时发生错误“找不到javax.interceptor.InterceptorBinding的类文件”
我正在使用JDK8(在由Jenkins启动的Linux上,使用Win x64 u25 JDK +在我的Eclipse工作区中尝试过-jdk-8u20-linux-x64,这两个问题都相同)。 我有一个多模块Maven项目(我从包装类型为“ pom”的主模块中启动Maven目标“ javadoc:aggregate”)。 Pom构建部分如下所示: <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <configuration> <source>1.8</source> <target>1.8</target> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-javadoc-plugin</artifactId> <configuration> <additionalparam>-Xdoclint:none</additionalparam> </configuration> </plugin> </plugins> </build> 我总是收到错误: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:2.10.1:aggregate (default-cli) on project uloan-global-build: An error has occurred in JavaDocs report generation: [ERROR] Exit code: …

3
JDK 11+和Javadoc
Exit code: 1 - javadoc: error - The code being documented uses packages in the unnamed module, but the packages defined in https://docs.oracle.com/en/java/javase/11/docs/api/ are in named modules. 有没有人能够使javadoc工作而不必将源版本更改为1.8(如其他论坛中所建议)?我使用的是JDK v11.0.5,问题仍然存在(JDK 12+也是如此)。 编辑:此错误源于maven,由maven-javadoc-plugin抛出。即使进行了<source>8</source>配置,我也无法使它适用于JDK 11+ 。
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.