PGP SIGNED MESSAGE
Hash: SHA1
Actually, no. Mojo.class is an interface, and basically provides the API
that Maven uses to invoke the mojo. Classes that implement Mojo will
have fields marked with @parameter expression="${someExpression}" in the
javadocs, which mark that field as a mojo parameter. Similarly, things
like which lifecycle phase to bind to are addressed in javadocs at the
class level.
To address Allan's comment earlier, we currently have a plugin called
projecthelp (maven-projecthelp-plugin) which provides insight into
various aspects of the build. Currently, it is most useful for
discovering the effective PM and settings being used (as a result of
inheritance and profile activation, and also merging global and local
settings files). HWEVER, we do have an issue in Jira currently to add
the old '-g' functionality, after a fashion. What will most likely
happen is something like:
m2 projecthelp:describe -Dprefix=projecthelp
which will describe at a high level the functionality and mojos
available in that plugin. Also:
m2 projecthelp:describe -Dmojo=projecthelp:describe
which will give a more in-depth description of the 'describe' mojo and
its parameters. Admittedly, this won't give you the same
snapshot-of-the-installation that the old '-g' option did; but then
again, the term 'installation' is a little more vaguely defined in m2. ;)
HTH,
- -john
Adam Hardy wrote:
| Isn't it possible to look in the source code at the methods on a
| particular class - would it be the public methods on the *Mojo.class?
|
| I'm looking at one now that has just .execute() so I would presume I'm
| wrong here - but aren't the member variables on the Mojo.class the
| configurable attributes of the plugin?
|
|
| Adam
|
| Allan Ramirez on 10/08/05 07:12, wrote:
|
|Hi,
|>
|As far as I know, there is no available command in M2 to list all its
|goal or plugins.
|You can find some plugins in the maven 2 site.
|>
|
|>
|Regards,
|-allan
|>
|Mueffke, Friedger wrote:
|>
|>m2 -g site
|>throws an ReactorException caused by LifecycleExecutionException:
|>Invalid task 'site'
|>>
|>Friedger
|>>
|>Message
|>From: NATARAJAN Sasi Kumar [mailto:SNatarajan2 (AT) covansys (DOT) com] Sent:
|>Tuesday, August 09, 2005 12:21 PM
|>To: Maven Users List
|>Subject: RE: [m2] goals for plugins
|>>
|>It may
|>>
|>'M2 -g'
|>>
|>Sasi
|>>
|>Message
|>From: Mueffke, Friedger [mailto:f.mueffke (AT) klopotek (DOT) de] Sent: Tuesday,
|>August 09, 2005 3:46 PM
|>To: users (AT) maven (DOT) apache.org
|>Subject: [m2] goals for plugins
|>>
|>Hi,
|>>
|>>
|>>
|>Is there a way to find out about valid goals of a plugin/all plugins
|>available?
|>>
|>>
|>>
|>I am looking for the one that creates reports of dependent projects. And
|>I am curious what else I could do with the available plugins for m2.
|>>
|>>
|>>
|>>
|>>
|>Thanks,
|>>
|>Friedger
|>>
|>>
|>>
|>>
|>>
|>>
|>Confidentiality Statement:
|>>
|>This message is intended only for the individual or entity to which it
|>is addressed. It may contain privileged, confidential information
|>which is
|>exempt from disclosure under applicable laws. If you are not the
|>intended
|>recipient,
|>please note that you are strictly prohibited from disseminating or
|>distributing
|>this information (other than to the intended recipient) or copying this
|>information. If you have received this communication in error, please
|>notify us
|>immediately by return email.
|>>
|>>
|>>
|>
|>To unsubscribe, e-mail: users-unsubscribe (AT) maven (DOT) apache.org
|>For additional commands, e-mail: users-help (AT) maven (DOT) apache.org
|>>
|>>
|>
|>To unsubscribe, e-mail: users-unsubscribe (AT) maven (DOT) apache.org
|>For additional commands, e-mail: users-help (AT) maven (DOT) apache.org
|>>
|>>
|>>
|>>
|>
|>
|
|To unsubscribe, e-mail: users-unsubscribe (AT) maven (DOT) apache.org
|For additional commands, e-mail: users-help (AT) maven (DOT) apache.org
|>
|>
|
|
|
| To unsubscribe, e-mail: users-unsubscribe (AT) maven (DOT) apache.org
| For additional commands, e-mail: users-help (AT) maven (DOT) apache.org
|
|
|
PGP SIGNATURE
Version: GnuPG v1.2.6 (GNU/Linux)
LIVglXbnPRoljXhvnf7tWLE=
=tU1P
PGP SIGNATURE
To unsubscribe, e-mail: users-unsubscribe (AT) maven (DOT) apache.org
For additional commands, e-mail: users-help (AT) maven (DOT) apache.org