On Dec 19, 2008, at 5:49 PM, MATHUS Baptiste wrote:

Click on Maven/Run as/Maven Build,
In the goal field, click select, you're done for the list of every plugins and goals I guess.

Thanks, but I don't want a list of every goal, just the ones that are actually available in the current POM. For instance, I have a simple POM that only adds in the docbkx plugin. Having to go through Run > Run As > Maven Build... > Select > docbkx > generate-html > OK > Run is much more tedious and time consuming than, say, Run > Run As > Maven install.

It would be nice if Maven could detect the plugins that the POM has declared and populate the Run As menu accordingly. For example:

Maven build
Maven clean
Maven docbkx
\- generate-html
   generate-pdf
   generate-text
Maven install
...

This is the kind of thing I'm used to in Ant. For instance, if you add a new target to an Ant build file, Eclipse will automatically show it in the Outline pane. You can then can right-click on it, choose Run As > Ant Build, and Eclipse will run the target. It's that simple. No need to manually create Run Configurations or pick a goal from a list of hundreds over and over again. It's disappointing that Maven is a step down from Ant in this regard.

Trevor


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email


Reply via email to