Not sure about eclipse, but the netbeans issue could be caused by the fact that the default build execution means in 6.1 was internal embedded maven. You had to explicitly mark that you want the project (or all projects) build with external maven. the embedded maven used is not 100% compatible with the 2.0.9 bits and many plugins don't cope with embedded builds well. Therefore in netbeans 6.5, we strive to find the default command line maven and use it if found on PATH. That shall reduce the likelihood of using the embedded maven for building (still used for project loading in the IDE)
Regards Milos On Tue, Nov 18, 2008 at 10:34 AM, bakann <[EMAIL PROTECTED]> wrote: > > I have got the same problem when trying to execute wsgen from Netbeans 6.1 > with maven. > Here is the stack trace from maven : > > [jaxws:wsgen] > [ERROR]The following mojo encountered an error while executing: > [ERROR]Group-Id: org.codehaus.mojo > [ERROR]Artifact-Id: jaxws-maven-plugin > [ERROR]Version: 1.10 > [ERROR]Mojo: wsgen > [ERROR]brought in via: POM > [ERROR]While building project: > [ERROR]Group-Id: com.example.maven.jaxws > [ERROR]Artifact-Id: helloservice > [ERROR]Version: 1.0-SNAPSHOT > [ERROR]From file: D:\...\jaxws-maven-sample\helloservice\pom.xml > [ERROR]Reason: Failed to execute wsgen > > I was doing the tutorial from > http://java.sun.com/mailers/techtips/enterprise/2008/TechTips_Jan08.html > Using JAX-WS with Maven > > > thomas2004 wrote: >> >> Hi all, >> >> I use Eclipse 3.4 and has maven2 plugin installed. As I run "mvn package" >> in Eclipse with following "pom.xml", I got following error: >> >> [ERROR] >> >> The following mojo encountered an error while executing: >> Group-Id: org.codehaus.mojo >> Artifact-Id: jaxws-maven-plugin >> Version: 1.10 >> Mojo: wsgen >> brought in via: POM >> >> While building project: >> Group-Id: com.test.jax.ws >> Artifact-Id: TestJaxWs >> Version: 1.0-SNAPSHOT >> From file: C:\Project\TestJaxWs\pom.xml >> Reason: Failed to execute wsgen >> >> But as I run in cmd-console, it is successful. Why? >> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
