简体   繁体   中英

unable to locate maven clean plugin in my pom.xml

I am executing maven clean command in parallel mode.

I am getting following warning.

[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

I could find org.codehaus.mojo:cobertura-maven-plugin:2.6 plugin but unable to find org.apache.maven.plugins:maven-clean-plugin in my pom.xml.

I know that I need to change the version of these plugin to a threadsafe version. But Unable to locate them.

can some one help where to locate maven clean plugin.

Clean plugin is configured implicitly in super pom. You can override (redefine) it in your project pom. Run mvn help:effective-pom or mvn clean:help to see how clean plugin is currently configured, or mvn clean:help

some plugins are bound to the lifecycle by default (differs with project <packaging> ) to change the version of the maven clean plugin your project uses simply declare the version you want in <pluginManagement> :

<build>
   <pluginManagement>
      <plugins>
         <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-clean-plugin</artifactId>
            <version>2.5</version>
         </plugin>
      </plugins>
   </pluginManagement>
</build>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM