- This topic has 1 reply, 2 voices, and was last updated 11 years, 9 months ago by support-swapna.
-
AuthorPosts
-
shanmuk_1982MemberMultiple 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″ xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:schemaLocation=”http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd”>
<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>
support-swapnaModeratorshanmuk_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.
-
AuthorPosts