1 Reply Latest reply on Aug 5, 2009 2:11 PM by Arbi Sookazian

    using m2eclipse plugin to build RESTEasy simple project

    Arbi Sookazian Master

      So how do I build this project now? I see the pom.xml but when I go to the views window from the Seam perspective, I only see one option (Maven Indexes) in the Maven folder.

      I installed 0.9.9.200907201117 of Maven Integration for Eclipse (featureId = org.maven.ide.eclipse.feature)

      Basically everything except the optional stuff from here:

      http://m2eclipse.sonatype.org/update-dev/

      Did I miss something?

      I usually use ant for building my Seam projects so I'm not familiar with Maven in JBDS. thx.

      oh, just saw this. I opened the pom.xml and right-clicked on it and saw some build options. I'll try that. I'm used to seeing a view/tab for Ant...

        • 1. Re: using m2eclipse plugin to build RESTEasy simple project
          Arbi Sookazian Master

          so I ran 'mvn install' and got this:

          [INFO] Build Order:
          [INFO]
          [INFO]
          [INFO]
          [INFO] Building
          [INFO] Executing maven-resources-plugin[2.2]: resources on simple
          [INFO] Using default encoding to copy filtered resources.
          [INFO] Executing maven-compiler-plugin[2.0.2]: compile on simple
          [INFO] Nothing to compile - all classes are up to date
          [INFO] Executing maven-resources-plugin[2.2]: testResources on simple
          [INFO] Using default encoding to copy filtered resources.
          [INFO] Executing maven-compiler-plugin[2.0.2]: testCompile on simple
          [INFO] Compiling 1 source file to C:\Documents and Settings\asookazi\RESTEasy\simple\target\test-classes
          [INFO] Executing maven-surefire-plugin[2.4.3]: test on simple
          [INFO] Tests are skipped.
          [INFO] Executing maven-war-plugin[2.1-alpha-1]: war on simple
          [INFO] Packaging webapp
          [INFO] Assembling webapp[simple] in [C:\Documents and Settings\asookazi\RESTEasy\simple\WebContent]
          [INFO] Processing war project
          [INFO] Webapp assembled in[297 msecs]
          [INFO] Building war: C:\Documents and Settings\asookazi\RESTEasy\simple\target\simple.war
          [INFO] Executing maven-jetty-plugin[6.1.10]: run on simple
          [INFO] Configuring Jetty for project:
          null
          org.apache.maven.plugin.MojoExecutionException: Webapp source directory C:\Documents and Settings\asookazi\RESTEasy\simple\src\main\webapp does not exist
           at org.mortbay.jetty.plugin.AbstractJettyRunMojo.checkPomConfiguration(AbstractJettyRunMojo.java:218)
           at org.mortbay.jetty.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.java:306)
           at org.mortbay.jetty.plugin.AbstractJettyRunMojo.execute(AbstractJettyRunMojo.java:203)
           at org.mortbay.jetty.plugin.Jetty6RunMojo.execute(Jetty6RunMojo.java:184)
           at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:323)
           at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:196)
           at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:189)
           at org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:467)
           at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:169)
           at org.apache.maven.cli.MavenCli.main(MavenCli.java:61)
           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
           at java.lang.reflect.Method.invoke(Method.java:585)
           at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
           at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
           at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:408)
           at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:351)
           at org.codehaus.classworlds.Launcher.main(Launcher.java:31)