[Solved] maven Install Error: MavenReportException: Error while generating Javadoc:

【maven】MavenReportException: Error while generating Javadoc:

Environment: jdk1.8
problem cause: Javadoc cannot be generated during maven install
Solution: Add in the configuration <skip>true</skip>, skip the javadoc generation

<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><!-- 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>

 

Read More: