Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

I try to compile maven web project with

<dependency>
    <groupId>org.springframework.ws</groupId>
    <artifactId>spring-ws</artifactId>
    <version>3.0.5-FINAL</version>
</dependency>

The problem is that when I try compile it I get the following errors:

[ERROR] Failed to execute goal on project inferx-d2aserver: Could not resolve dependencies for project com.inferx:inferx-d2aserver:war:4.0: The following artifacts could not be resolved: maven-plugins:maven-cobertura-plugin:plugin:1.3, maven-plugins:maven-findbugs-plugin:plugin:1.3.1, org.springframework.ws:spring-ws:jar:3.0.5.RELEASE: Failure to find maven-plugins:maven-cobertura-plugin:plugin:1.3 in http://repository.springsource.com/maven/bundles/release was cached in the local repository, resolution will not be reattempted until the update interval of com.springsource.repository.bundles.release has elapsed or updates are forced -> [Help 1] [ERROR]

I use Apache Maven 3.0.3, Java: 1.7.0 OS: Windows 7 (64 bit)

like image 423
Bogdan Avatar asked Nov 28 '11 11:11

Bogdan


2 Answers

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.

like image 195
Tg. Avatar answered Sep 19 '22 22:09

Tg.


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>
like image 29
Prateek Kapoor Avatar answered Sep 21 '22 22:09

Prateek Kapoor