Latest m2eclipse plugin uses embedded maven 3.0 and i suggest you to install version 2.1. Then try to add repositories to your settings.xml in .m2 directory and after restart, eclipse will index those repositories.
Thankyou for your suggestion.
That implies (based on my limited Maven experience) that I should abandon the m2eclipse plugin as maven3 is intrinsicly linked to it.
Furthermore I can't seem to find any 0.9.9 nor 0.9.8 archive releases.
So I am assuming I should uninstall and just use raw maven (in Vista)
You can use m2eclipse plugin with any maven version but you have to change in eclipse maven preferences (window -> preferences -> maven -> installations)
UPDASTE Mar 01, 2010 ... still NOT working for me.
Seems to work ... the repositories are showing as "Local Repositories".
I downloaded apache-maven-2.0.10 and seem to have m2e using this install. It points to the settings.xml in the conf dir. All looks good. I restarted eclipse.
I added the following repositories to the profiles section and refreshed in the Maven Repositories eclipse view.
Edited by: dgdgdg on Feb 24, 2010 10:04 PM
Edited by: dgdgdg on Feb 28, 2010 9:42 PM
still not working
Despite making progress I am still unable to do the first task in the demo and create a maven project base on the fuse servicemix-osgi-wsdl-first-archetype
I tried to get back to basics and I did new clean install of current eclipse Java. Then added m2eclipse.
Then tried the following
new maven(version 3.0-SNAPSHOT) project based on maven-archtype-quickstart WORKED
new maven(version 3.0-SNAPSHOT) project based on servicemix-osgi-wsdl-first-archetype FAILED
Failed to create project.
new maven(version 2.2.1) project based on maven-archtype-quickstart WORKED
new maven(version 2.2.1) project based on servicemix-osgi-wsdl-first-archetype FAILED
Bottom line: seems maven in eclipse works BUT can't get fuse archetypes to install.
Any suggestions please.
You can "create" the repository in the "Repositories" tab, which is one of the "Advanced" tabs. Do the following:
1. In the POM editor, click "Show Advanced Tab" button. It's the first button (of three) on the upper right corner within the editor.
2. Select "Repositories" tab at the bottom of the POM editor.
3. "Create..." a new repository, and enter "Id" and "URL" accordingly.
This solution applies to the latest m2eclipse 0.10. Alternatively, you can edit the pom.xml source directly to add the repository manually.
Thanks for your suggestion.
This does help once the project is created.
I am wanting to create the initial project from m2eclipse 0.10.
I can create the project directly from the command line using...
HOWEVER I want to use m2eclipse.
Each time I use a fuse archetype (eg servicemix-osgi-cxf-wsdl-first/2009.01.0.1-fuse ) I get "Failed to create project"
I can create projects from other apache archetypes but not from the repository that I have added for fuessource pointing to http://repo.fusesource.com/maven2 and configured through Windows>Prferences>Maven>Archetypes
Furthermore, If I delete the directory C:\Users\Me\.m2\repository\org\apache\servicemix\tooling\servicemix-osgi-cxf-wsdl-first-archetype then when I create the maven project from m2eclipse, the local repository is regenerated which gives me confidence that the correct repository master is being found.
My most simple need is to use m2eclipse to create a fuse based cxf project.
All help greatly appreciated
The following thread suggests I should be getting a different version: 2010.01.0-fuse-01-00
What should I do?
What have I not configured?
Does the fuse repository work with m2eclipse 0.10
Edited by: dgdgdg on Mar 9, 2010 4:29 AM
Edited by: dgdgdg on Mar 9, 2010 4:42 AM
We gave up on m2eclipse.
Manual manipulation forces understanding and affords better control.
Will give it another go in a couple versions.
I wonder if giving up on m2eclipse is what everyone has done too.
I am currently doing manual command line steps but I was hoping that m2eclipse could help with the auto creation of new java source folders and the convenience of just using eclipse.
Eclipse is complex, m2eclipse is complex, maven is complex. The sum of the interactions is very difficult to understand and I admit I don't understand it myself.
Recently an m2eclipse 0.10 was released, but it looks like that is very much predicated on using Maven 3. I'm expecting to look into it after EclipseCon.
One thing I did notice when using it in the past was that you needed to add the archetype repositories to your list of repositories in Eclipse and then regenerate the indices. If you don't rebuild all the index stuff, then the archetypes do not get discovered correctly.
It may be a little late, but this did work for me in the past. When dealing with Eclipse/Maven interactions I usually take the mvn eclipse:eclipse approach to generate projects.
yes m2eclipse is a bit funky to use since they updated to 3.0 and don't provide older builds. Anyways you can add the fuse repositories by creating and editing your maven's settings.xml. Just create a profile w/ the fuse repositories and activate that profile. Yes it is not as smooth as it was in the demo vid.