2 Replies Latest reply on Oct 5, 2009 5:28 PM by Keith Barlow

    Using maven archetypes in eclipse?

    Keith Barlow Newbie

      Hiyas,

       

      Is it possible to use the maven archetypes to create project modules in eclipse?

       

      I added the FUSE repository to my catalog and got this message when trying to create a servicemix-camel-service-unit module:

       

      Failed to create project.

        Unable to create project from archetype org.apache.servicemix.tooling:servicemix-camel-service-unit:2009.01.0.1-fuse -> null

        The desired archetype does not exist (org.apache.servicemix.tooling:servicemix-camel-service-unit:2009.01.0.1-fuse)

       

      I get it for the http module as well...

       

      Thanks.

       

      Keith

        • 1. Re: Using maven archetypes in eclipse?
          Keith Barlow Newbie

          It seems to have the following error:

           

           

          eclipse.buildId=I20090611-1540

          java.version=1.6.0_15

          java.vendor=Sun Microsystems Inc.

          BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US

          Framework arguments:  -product com.springsource.sts.ide

          Command-line arguments:  -os win32 -ws win32 -arch x86 -product com.springsource.sts.ide -data c:\EclipseApps\springsource\sts-2.1.0.SR01\tutorial-workspace

           

           

          Error

          Mon Oct 05 16:51:10 EDT 2009

          Unable to create project from archetype org.apache.servicemix.tooling:servicemix-http-provider-service-unit:2009.01.0.1-fuse -> null

           

          org.apache.maven.archetype.exception.UnknownArchetype: The desired archetype does not exist (org.apache.servicemix.tooling:servicemix-http-provider-service-unit:2009.01.0.1-fuse)

               at org.apache.maven.archetype.generator.DefaultArchetypeGenerator.generateArchetype(DefaultArchetypeGenerator.java:114)

               at org.apache.maven.archetype.generator.DefaultArchetypeGenerator.generateArchetype(DefaultArchetypeGenerator.java:290)

               at org.apache.maven.archetype.DefaultArchetype.generateProjectFromArchetype(DefaultArchetype.java:75)

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

               at org.maven.ide.eclipse.wizards.MavenModuleWizard$5.runInWorkspace(MavenModuleWizard.java:253)

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

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

          • 2. Re: Using maven archetypes in eclipse?
            Keith Barlow Newbie

            It seems as though the 4.1 release of the ESB does not come with smx-arch anymore either...  how should one go about creating projects?

             

            Thanks.

             

            Keith