jdk8使用maven-javadoc-plugin插件报错的处理

 在jdk8环境下使用maven deploy时,会报javadoc的错误,网络上普遍是使用如下修改方式:

<plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-javadoc-plugin</artifactId>
    <configuration>
        <additionalparam>-Xdoclint:none</additionalparam>
    </configuration>
</plugin>

或者:

<plugin>  
    <groupId>org.apache.maven.plugins</groupId>  
    <artifactId>maven-javadoc-plugin</artifactId>  
    <version>2.9</version>  
    <executions>  
        <execution>  
            <id>attach-javadocs</id>  
            <goals>  
                <goal>jar</goal>  
            </goals>  
            <configuration>  
                <additionalparam>-Xdoclint:none</additionalparam>  
            </configuration>  
        </execution>  
    </executions>  
</plugin>  

 然而并不起作用。使用如下配置修改即可:

<plugin>
	<groupId>org.apache.maven.plugins</groupId>
	<artifactId>maven-javadoc-plugin</artifactId>
	<configuration>
		<additionalOptions>
			<additionalOption>-Xdoclint:none</additionalOption>
		</additionalOptions>
	</configuration>
	<executions>
		<execution>
			<id>attach-javadocs</id>
			<goals>
				<goal>jar</goal>
			</goals>
		</execution>
	</executions>
</plugin>

 

已标记关键词 清除标记
©️2020 CSDN 皮肤主题: 编程工作室 设计师:CSDN官方博客 返回首页