maven运行生成javadoc时报MavenReportException: Error while creating archive错误信息--如何解决呢?
下文笔者讲述maven生成javadoc时,报
MavenReportException: Error while creating archive 例: maven javadoc Java Java [INFO] MavenReportException: Error while creating archive [INFO] MavenReportException: Error while creating archive 解决方法: 直接关闭javadoc中的lint验证即可例:
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-javadoc-plugin</artifactId> <version>2.10.2</version> <executions> <execution> <id>attach-javadocs</id> <goals> <goal>jar</goal> </goals> <configuration> <!-- add this to disable checking --> <additionalparam>-Xdoclint:none</additionalparam> </configuration> </execution> </executions> </plugin>
版权声明
本文仅代表作者观点,不代表本站立场。
本文系作者授权发表,未经许可,不得转载。