![](/img/trans.png)
[英]unable to add maven compiler and surefire plugin in the existing pom.xml
[英]unable to locate maven clean plugin in my pom.xml
我在並行模式下執行maven clean命令。
我收到以下警告。
[WARNING] The following plugins are not marked @threadSafe in yourwebapp:
[WARNING] org.apache.maven.plugins:maven-clean-plugin:2.1.1
[WARNING] org.codehaus.mojo:cobertura-maven-plugin:2.6
我可以找到org.codehaus.mojo:cobertura-maven-plugin:2.6
插件,但無法在pom.xml中找到org.apache.maven.plugins:maven-clean-plugin
。
我知道我需要將這些插件的版本更改為線程安全版本。 但是無法找到它們。
可以幫助您在哪里找到Maven Clean插件。
Clean插件在super pom中隱式配置。 您可以在項目pom中覆蓋(重新定義)它。 運行mvn help:effective-pom
或mvn clean:help
以查看當前如何配置clean插件,或運行mvn clean:help
默認情況下,某些插件綁定到生命周期(與項目<packaging>
有所不同)以更改項目使用的maven clean插件的版本,只需在<pluginManagement>
聲明所需的版本:
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-clean-plugin</artifactId>
<version>2.5</version>
</plugin>
</plugins>
</pluginManagement>
</build>
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.