Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Problem with dependencies in m2eclipse

I have a problem with m2eclipse and Nexus. Normally, when you create a new Maven Project in Eclipse, you can select an Archetype like maven-archetype-quickstart from the Nexus Indexer. Unfortunately, the Nexus Indexer doesn't show anything at all. But the worst part about all this is, that the "Add Dependency" menue doesn't work. (For a better understanding: By clicking on the "Dependencies" tab, you can usually click on a button in order to enter a groupId or artifactId. That's the menue what I am talking about. If I enter for example "junit", it shows no search results.) Does anybody know this issue? How could I fix it?

Thanks a million in advance for any help.

like image 501
MH. Avatar asked May 16 '10 21:05

MH.


People also ask

How do I fix Maven dependency issues?

If the dependencies weren't imported correctly (IntelliJ IDEA highlights them), try to perform the following actions: You can check your local maven repository in the Maven | Repositories settings and try to update it. You can check the jar file of the local . m2 repository to see if it was downloaded correctly.

How do you resolve dependencies?

Dependency resolution is a process that consists of two phases, which are repeated until the dependency graph is complete: When a new dependency is added to the graph, perform conflict resolution to determine which version should be added to the graph.

How do I fix dependencies in Netbeans?

If you see your projects as maven apps, then all you need to do is right-click on the Dependencies and select add dependeny. You can search your local repo from the dialog that opens. The once you select will get automatically inserted into you pom, and you will see teh jar in the Dependencies folder.


2 Answers

By default the ui shows the internal index, select the drop down and choose the Nexus Index if you haven't. Otherwise have you published the index from Nexus?

like image 177
Brian Fox Avatar answered Sep 23 '22 16:09

Brian Fox


I had the same problem and I thought it was a bug in a m2eclipse plugin. But I found another explanation and solution: http://forums.jfrog.org/Artifactory-and-m2eclipse-Unable-to-update-index-for-remote-repos-td5899455.html

like image 29
Paulo Avatar answered Sep 24 '22 16:09

Paulo