RunMojo execute attribute

38 views
Skip to first unread message

Constantino

unread,
Apr 20, 2012, 9:40:19 AM4/20/12
to codehaus-mojo-gwt-...@googlegroups.com
Hi,

I found this @execute tag in RunMojo:

 * @execute phase=process-classes goal:war:exploded

Then I have checked the documentation of this tag in:

http://maven.apache.org/developers/mojo-api-specification.html

and found that in fact the execute tag can *either* have a phase *or* a goal and not both.

I have tried to change it to:

 * @execute phase=process-classes goal=war:exploded

but in this case I get the following error message:

Error extracting plugin descriptor: '@execute tag can have only one of a 'phase' or 'goal' parameter'

Finally I tried to use:

 * @execute goal=war:exploded

and was able to build the plug-in, but when I tried to execute "mvn gwt:run" I got:

"[ERROR] Could not find goal 'war' in plugin org.codehaus.mojo:gwt-maven-plugin:2.4.0 among available goals run, debug, eclipse, compile, i18n, source-jar, browser, mergewebxml, css, test, help, sdkInstall, compile-report, resources, generateAsync, eclipseTest, soyc, clean"

Looks like Maven was expecting a goal in the current plug-in.

Bottom line, this is wrong for two reasons:

- a goal can not be specified with a phase
- the goal must be in the current plug-in

Does anybody know more about this?

Thanks,
   Constantino

Jesse Farinacci

unread,
Apr 20, 2012, 10:11:48 AM4/20/12
to codehaus-mojo-gwt-...@googlegroups.com
Greetings,

On Fri, Apr 20, 2012 at 9:40 AM, Constantino <ccrone...@yahoo.com.br> wrote:
>  * @execute phase=process-classes goal:war:exploded

URL: http://svn.codehaus.org/mojo/trunk/mojo/gwt-maven-plugin
Repository Root: http://svn.codehaus.org/mojo
Repository UUID: 52ab4f32-60fc-0310-b215-8acea882cd1b
Revision: 16441

Apache Maven 3.0.4 (r1232337; 2012-01-17 03:44:56-0500)
Maven home: /home/jlf/apache-maven-3.0.4
Java version: 1.6.0_22, vendor: Sun Microsystems Inc.
Java home: /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "2.6.32-220.7.1.el6.x86_64", arch: "amd64",
family: "unix"

Works for me.

-Jesse

--
There are 10 types of people in this world, those
that can read binary and those that can not.

Reply all
Reply to author
Forward
0 new messages