-----BEGIN 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 POM and settings being used (as a result of
inheritance and profile activation, and also merging global and local
settings files). HOWEVER, 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.
|>
|> http://maven.apache.org/maven2/plugins/index.html
|>
|> Regards,
|> -allan
|>
|> Mueffke, Friedger wrote:
|>
|>> m2 -g site
|>> throws an ReactorException caused by LifecycleExecutionException:
|>> Invalid task 'site'....
|>>
|>> Friedger
|>>
|>> -----Original Message-----
|>> From: NATARAJAN Sasi Kumar [mailto:[EMAIL PROTECTED] Sent:
|>> Tuesday, August 09, 2005 12:21 PM
|>> To: Maven Users List
|>> Subject: RE: [m2] goals for plugins
|>>
|>> It may
|>>
|>> 'M2 -g'
|>>
|>> Sasi
|>>
|>> -----Original Message-----
|>> From: Mueffke, Friedger [mailto:[EMAIL PROTECTED] Sent: Tuesday,
|>> August 09, 2005 3:46 PM
|>> To: [email protected]
|>> 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: [EMAIL PROTECTED]
|>> For additional commands, e-mail: [EMAIL PROTECTED]
|>>
|>>
|>> ---------------------------------------------------------------------
|>> To unsubscribe, e-mail: [EMAIL PROTECTED]
|>> For additional commands, e-mail: [EMAIL PROTECTED]
|>>
|>>
|>>
|>>
|>
|>
|> ---------------------------------------------------------------------
|> To unsubscribe, e-mail: [EMAIL PROTECTED]
|> For additional commands, e-mail: [EMAIL PROTECTED]
|>
|>
|
|
| ---------------------------------------------------------------------
| To unsubscribe, e-mail: [EMAIL PROTECTED]
| For additional commands, e-mail: [EMAIL PROTECTED]
|
|
|
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)

iD8DBQFC+iC8K3h2CZwO/4URAuJuAJwOP5QnB/mPoGdWL96eRJ4Pu66n9wCfecty
LIVglXbnPRoljXhvnf7tWLE=
=tU1P
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to