Maven failure to find maven-plugins:maven-cobertura-plugin

风格不统一 提交于 2019-11-29 06:45:40

I am not sure if this is the same case since my dependencies is different. I got similar error message with the same dependencies error so I removed both dependencies from ~/.m2/repository/jaxen/jaxen/1.1.3/jaxen-1.1.3.pom and the project is compile fine now.

Seeker

I was also facing similar issue. I just excluded jaxen from Jdom dependency and it worked for me.

jdom 1.1.2 includes jaxen 1.1.3 which imports those artifacts.

      <dependency>
        <groupId>org.jdom</groupId>
        <artifactId>jdom</artifactId>
        <version>1.1.2</version>
        <exclusions>
            <exclusion>
               <groupId>jaxen</groupId>
               <artifactId>jaxen</artifactId>
            </exclusion>
        </exclusions>
    </dependency>

It look like your pom or parent pom contains a wrong definition of the maven-coberatura-plugin which should be fixed first. Furthermore remove the folder in your local repository.

From the error message related to cobertura version, it looks like you may be having a pom.xml corresponding to maven 1.

The following are maven 1.x versions of the plugins and not supported.

  • maven-plugins:maven-cobertura-plugin:plugin:1.3,
  • maven-plugins:maven-findbugs-plugin:plugin:1.3.1

Removing the pom is not the solution; in future builds may be you need them. Best solution according to my opinion is to modify the POM of corresponding jars. Like if you are getting error because of any jar; actually there is the dependency defined in its POM. So use <exclude>. That will work for sure.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!