The mojos themselves are bound to phases, I would think those would be the defaults, no?
I don't use m2eclipse either (but will check it out to test this), so also have never seen this error either. I am confused though as to how we address this. Each of the "goals" in the "executions" has it's own phase, so I am not sure how or why to bind the set to a single phase? Taking out the gwt goal is a good call though, maybe that's it, maybe just that one doesn't have a phase? GwtMojo has "@execute phase=compile", so it can run standalone, and the others have "@phase test", etc. So again, maybe it's just including gwt:gwt is silly? On Oct 27, 10:13 am, "Mirko Nasato" <[EMAIL PROTECTED]> wrote: > That's interesting. I don't use m2eclipse, and I've never seen that error > before. But the POM schema for <phase> does say > > "The build lifecycle phase to bind the goals in this execution to. If > omitted, the goals will be bound to the default specified in their > metadata." > > and I'm not sure if the gwt-maven specifies a default phase. > > Not sure what's the best approach here, but adding a <phase> to your pom.xml > should work as a quick fix. In fact I usually omit the <goal>gwt</goal> line > altogether, since the gwt goal should only be executed explicitly with mvn > gwt:gwt. > > Cheers > > Mirko > > 2008/10/27 jieryn <[EMAIL PROTECTED]> > > > > > When I save a file in Eclipse which is within a gwt-maven maven > > project, and using m2eclipse (0.9.6.20080905-0917) my maven console > > shows the following: > > > task-segment: [process-resources, resources:testResources]. Reason: > > Mojo descriptor: gwt:gwt doesn't have a default lifecycle phase. > > Please specify a <phase/> for this goal in your POM. > > > I based my pom segment from the documentation on the site, which does > > not explicitly define a <phase> for the plugin execution. > > > <plugin> > > <groupId>com.totsp.gwt</groupId> > > <artifactId>maven-googlewebtoolkit2-plugin</artifactId> > > <version>2.0-beta24</version> > > <configuration> > > <logLevel>INFO</logLevel> > > <compileTargets> > > <value>com.mycom.myproj.Application</value> > > </compileTargets> > > <runTarget>com.mycom.myproj.Application/Application.html</ > > runTarget> > > <style>DETAILED</style> > > <noServer>false</noServer> > > <extraJvmArgs>-Xmx512m</extraJvmArgs> > > </configuration> > > <executions> > > <execution> > > <goals> > > <goal>compile</goal> > > <goal>gwt</goal> > > </goals> > > </execution> > > </executions> > > </plugin> > > > What am I doing wrong please? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "gwt-maven" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/gwt-maven?hl=en -~----------~----~----~----~------~----~------~--~---
