facebook

ArtifactTransferException

  1. MyEclipse IDE
  2.  > 
  3. Maven for MyEclipse (Maven4MyEclipse)
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #336987 Reply

    shanmuk_1982
    Member

    Multiple annotations found at this line:
    – ArtifactTransferException: Failure to transfer javax.persistence:persistence-api:jar:1.0 from http://
    repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of
    central has elapsed or updates are forced. Original error: Could not transfer artifact javax.persistence:persistence-api:jar:1.0 from/
    to central (http://repo.maven.apache.org/maven2): The operation was cancelled.
    – ArtifactTransferException: Failure to transfer commons-logging:commons-logging:jar:1.0.4 from http://
    repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of
    central has elapsed or updates are forced. Original error: Could not transfer artifact commons-logging:commons-logging:jar:1.0.4
    from/to central (http://repo.maven.apache.org/maven2): The operation was cancelled.

    Please find the context in the POM.xml below.

    <project xmlns=”http://maven.apache.org/POM/4.0.0&#8243; xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance&#8221; xsi:schemaLocation=”http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd”&gt;
    <modelVersion>4.0.0</modelVersion>
    <groupId>com.test</groupId>
    <artifactId>Hello</artifactId>
    <version>0.0.1-SNAPSHOT</version>
    <packaging>war</packaging>
    <dependencies>
    <dependency>
    <groupId>org.hibernate</groupId>
    <artifactId>hibernate-core</artifactId>
    <version>3.3.1.GA</version>
    </dependency>
    <!– Hibernate Annotation –>
    <dependency>
    <groupId>org.hibernate</groupId>
    <artifactId>hibernate-annotations</artifactId>
    <version>3.3.0.GA</version>
    </dependency>
    </dependencies>
    <build>
    <sourceDirectory>src</sourceDirectory>
    <plugins>
    <plugin>
    <artifactId>maven-compiler-plugin</artifactId>
    <version>3.0</version>
    <configuration>
    <source>1.6</source>
    <target>1.6</target>
    </configuration>
    </plugin>
    </plugins>
    </build>
    </project>

    #337002 Reply

    support-swapna
    Moderator

    shanmuk_1982,

    Sorry that you are seeing this issue.

    You can either “Update the nexus index” or Right click on Maven Project > Run As > Maven Build to fix this issue.

    To update nexus index, Switch to “Maven Repositories” view, under Global Repositories > Right click on central(http://repo1.maven.org/maven2) > Update Index.

    Let us know how it works for you.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: ArtifactTransferException

You must be logged in to post in the forum log in