【maven】MavenReportException: Error while generating Javadoc:

  • Post author:
  • Post category:java


环境:JDK1.8

问题原因:maven install时,无法生成javadoc

解决方案:配置中增加

<skip>true</skip>

,跳过javadoc生成

<build>
		<plugins>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-javadoc-plugin</artifactId>
				<version>2.10.4</version>
				<configuration>
					<additionalparam>-Xdoclint:none</additionalparam>
					<skip>true</skip><!-- 跳过javadoc生成 -->
				</configuration>
				<executions>
					<execution>
						<id>attach-javadocs</id>
						<goals>
							<goal>jar</goal>
						</goals>
						<configuration>
							<additionalparam>-Xdoclint:none</additionalparam>
							<failOnError>false</failOnError>
						</configuration>
					</execution>
				</executions>
			</plugin>
		</plugins>
	</build>

在这里插入图片描述



版权声明:本文为qq_31083947原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。