I am hoping I can find someone's brain to pick with a handful of issues I am having in our migration away from Ant and into Maven.
We are a J2EE shop, developing on Europa and Ganymede, Spring, Struts, Velocity, sitting on Oracle 10g.
I have been spearheading the migration to Maven, CruiseControl, and Cobertura; however, my Maven efforts keep getting thwarted by either a lack of decent, COMPLETE documentation or (more likely) my own inability to grasp some elusive concept, or setting.
So, quick nutshell... I am running Ganymede, m2eclipse, and Nexus as our repo manager. It appears that I have everything set up correctly, however, in the Maven Indexes view for eclipse, when I expand my local repo, I do not see all of the indices that are in the Public Repositories that I see when I view them in Nexus. I cannot find reference for this at all, so I don't know if I am not understanding how m2eclipse works, or if I have something mucked up in my settings.
This leads to the next issue, which is that I am trying to create a brand new Maven project for one of our simplest projects (a library project with 2 external JARs as references), but I cannot get to the JARs via the repository because I do not see the version we use of one, and do not see the other at all. Both are in the Public Repos index when I look in the Nexus Repo Manager.
Would some kind soul take pity on my age-addled brain and help me get over this hump?
Thanks a million,
"It is our choices, much more than our abilities, that make us who we are."
- Albus Dumbledore
Thanks (again) for coming to my rescue... you don't have shiny armor and ride a horse while you are coding do you?
I do have "Maven: The Definitive Guide" but the m2eclipse chapter is essentially the same as all of the sites and pages I have been cobbling my information together from.
Nexus is definitely talking to the outside world. I have added a bunch of other repos:
Here is the top of the list of indices in my Public Repositories in Nexus:
And here is what I see in eclipse's Maven Indexes view:
This shouldn't be right, should it? Shouldn't I be seeing EVERYTHING in the Public Repositories list? I DO see all of the indices the show in eclipse in Maven, just not the other way around.
Joined: Oct 21, 2008
This just got me over one understanding hump... I am looking at my LOCAL repository (hence the ...\.m2\repository), which has exactly the indices I see when expanding that node in the eclipse Maven Indexes view.
So now I just need to add my locally running Nexus managed repo.
I have tried (which is the URL I use to access the management screen), but I keep getting "Resource nexus-maven-repository-index.properties does not exist".
I am searching for the resolution now, but if anyone has any info, I would appreciate it.
Joined: Oct 21, 2008
Ok... adding the Index as worked.
Now my question is why doesn't m2eclipse pick this info up from the settings.xml file in the .m2 folder? I know that is a Maven resource, but it seems that the two should share that info (Maven and m2eclipse). Right?
Well done on resolving it! I just came back expecting to point out the local v remote repository thing, but I see you've figured that all out now . I don't actually use the eclipse plugin (just Nexus and/or Artifactory) as I've found it to have too many little quirks, which is what I expect you're seeing from your last post.
Don't hesitate to post again if you have further Maven troubles!
In regards to picking up settings from .m2/settings.xml, it is simply hasn't been implemented. If you are interested in such feature please post to m2eclipse mailing list or open an enhancement request at https://issues.sonatype.org/browse/MNGECLIPSE