Unable to load banks using M2Eclipse (0.10.0 using Maven 3)

I am using M2Eclipse (0.10.0, Maven 3) in projects. I can add a Maven dependency using m2eclipse. But dependency bans could not be loaded. Instead, he created a file in each local repo folder named [JAR_Name] .jar.lastupdate. The contents of this file: Http: // [REPO_URL] / central / = 1276221188566

Even using the Maven 3 command line. Banks cannot be loaded. Any idea how this could happen?

+1
java eclipse maven-3 m2eclipse
source share
2 answers

Firstly, the presence of the file "lastupdated" does not matter. We need to know the debug output (mvn -X dependency: tree). Then you mentioned that you use the repository manager and mirror every request to it - so configure settings.xml in accordance with this guide . If you specified only a mirror element with the location of the repository manager and which repositories (URLs) that you want a proxy (without including this profile, which practically changes the policy for taking snapshots), you will have something like messages with a "central repository in your debug log. After you fix it, it should work.

EDIT: you can always use the group repository url from maven settings.xml http://hostname/nexus/content/groups/public + artifact path like " org/apache/maven/someartifact/maven-metadata.xml " and see if nexus can proxy the request and serve what you want. If this works, then the reason should be either in the maven settings or in the pom definition.

+2
source share

I have the same problem. I donโ€™t know the โ€œrealโ€ solution, but whenever something doesnโ€™t work, I look at the .lastUpdated files in my local repo and delete them. Then they usually work again. (I think this may be due to a poorly configured connection, but unfortunately I do not have access to the nexus configuration)

+1
source share

All Articles