Trevor,

It may look similar, but with Maven you don't actually have "targets" like you used to with Ant, e.g. plugins are discovered dynamically and often may not even require special configuration, so if will really clutter popup menu if we add all possible goals in there. However, in many cases project can be configured to bind custom plugins to the standard build life cycle phases, such as "install", "package", etc. See http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html In your case you can probably bind your docbook plugin execution to "package" build cycle phase, then standard shortcut would just work.

Also, it may not be obvious, but you can use "Run as... / Maven build" (Ctrl-Shift-X, M) shortcut to quickly launch custom goals on selected project (you can also remap shortcut to your own preferences in Window / Preferences / General / Keys). That action remembers created configurations and if there is more then one it will show you selection dialog, so it work ok without mouse.

Finally, you can vote on the following enhancement request that is suggesting to add custom shortcuts for Maven launch:

MNGECLIPSE-351: allow to configure custom maven launch shortcuts
http://jira.codehaus.org/browse/MNGECLIPSE-351

 regards,
 Eugene


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

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