13 Replies Latest reply on May 26, 2010 5:52 AM by mitul1411

    Get Started with ServiceMix 4.1: FUSE ESB

    dgdgdg_dgdgdg

      I have been trying to replicate the example "Get Started with ServiceMix 4.1: FUSE ESB"

       

      I downloaded the latest m2eclipse maven plugin version 0.10.0.0 http://m2eclipse.sonatype.org/installing-m2eclipse.html

       

      The interface differs and does not seem to have an (obvious) add Index capability.

       

      I can't seem to enter the repository/Index and get access to the fuse resources.

       

      How can I get the demo operational?

       

      Any suggestions please.

       

      Thx

       

      Edited by: dgdgdg on Feb 24, 2010 1:15 PM

        • 1. Re: Get Started with ServiceMix 4.1: FUSE ESB
          mkosmala

          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.

          • 2. Re: Get Started with ServiceMix 4.1: FUSE ESB
            dgdgdg_dgdgdg

            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)

             

            Thx

            • 3. Re: Get Started with ServiceMix 4.1: FUSE ESB
              mkosmala

              You can use m2eclipse plugin with any maven version but you have to change in eclipse maven preferences (window -> preferences -> maven -> installations)

              • 4. Re: Get Started with ServiceMix 4.1: FUSE ESB
                dgdgdg_dgdgdg

                Thanks again.

                 

                UPDASTE Mar 01, 2010 ... still NOT working for me.

                Seems to work ... the repositories are showing as "Local Repositories".

                 

                FYI

                 

                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

                • 5. Re: Get Started with ServiceMix 4.1: FUSE ESB
                  dgdgdg_dgdgdg

                  still not working

                  • 6. Re: Get Started with ServiceMix 4.1: FUSE ESB
                    dgdgdg_dgdgdg

                    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.

                    java.lang.NullPointerException

                         at org.apache.maven.artifact.repository.DefaultArtifactRepositoryFactory.createArtifactRepository(DefaultArtifactRepositoryFactory.java:90)

                         at org.maven.ide.eclipse.internal.project.ProjectConfigurationManager.resolveArchetype(ProjectConfigurationManager.java:540)

                         at org.maven.ide.eclipse.internal.project.ProjectConfigurationManager.createArchetypeProject(ProjectConfigurationManager.java:463)

                         at org.maven.ide.eclipse.wizards.MavenProjectWizard$5.runInWorkspace(MavenProjectWizard.java:279)

                         at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38)

                         at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

                     

                     

                     

                     

                     

                    • 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.

                    • 7. This should work
                      imcfa

                      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,

                       

                      -Tim

                      • 8. m2eclipse to create a fuse based cxf project - Failed to create project
                        dgdgdg_dgdgdg

                        Thanks for your suggestion.

                         

                        This does help once the project is created.

                         

                        But...

                        I am wanting to create the initial project from m2eclipse 0.10.

                         

                        I can create the project directly from the command line using...

                        mvn archetype:generate 

                        -DarchetypeGroupId=org.apache.servicemix.tooling 

                        -DarchetypeArtifactId=servicemix-osgi-cxf-wsdl-first-archetype

                        -DarchetypeVersion=2009.01.0.1-fuse

                        -DgroupId=groupId 

                        -DartifactId=artifactId

                        -Dversion=version

                         

                        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

                         

                        More...

                        The following thread suggests I should be getting a different version: 2010.01.0-fuse-01-00

                        http://fusesource.com/forums/thread.jspa?messageID=6052

                         

                        Help

                        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

                        • 9. Re: m2eclipse to create a fuse based cxf project - Failed to create project
                          rand1

                          We gave up on m2eclipse.

                           

                          Manual manipulation forces understanding and affords better control.

                           

                          Will give it another go in a couple versions.

                          • 10. Re: m2eclipse to create a fuse based cxf project - Failed to create project
                            dgdgdg_dgdgdg

                            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.

                            • 11. Re: m2eclipse to create a fuse based cxf project - Failed to create project
                              oisin

                              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.

                              • 12. Re: m2eclipse to create a fuse based cxf project - Failed to create project
                                blahblah

                                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.

                                • 13. Re: m2eclipse to create a fuse based cxf project - Failed to create project
                                  mitul1411

                                  Here is the link for the older builds of m2eclipse

                                   

                                  http://m2eclipse.sonatype.org/sites/archives/older/