You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Gert-Jan Braas <br...@steckelfisch.nl> on 2007/05/15 12:29:29 UTC

an oveview of all the installed plugins and goals

Hi,

is there a maven command which lists all the installed plugins and/or gorals?

Regards,
Gert-Jan Braas


=========================================
Het kan zijn dat ik "Office" documenten verstuur.
Als dit in Open-Document-Formaat is, haal dan
hier: http://nl.openoffice.org/ een kopie op
van OpenOffice
-----------------------------------------
Steckelfisch
Hoornsedijk 1010
9728NG Groningen
0031(0)651521379


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: an oveview of all the installed plugins and goals

Posted by Arnaud HERITIER <ah...@gmail.com>.
In maven 2.1 I would like to have a flag (--info) to display at the end of
the build all informations about the environment versions (OS, Java, Maven
core, plugins ...)

Arnaud

On 15/05/07, Wendy Smoak <ws...@gmail.com> wrote:
>
> On 5/15/07, Gert-Jan Braas <br...@steckelfisch.nl> wrote:
>
> > is there a maven command which lists all the installed plugins and/or
> gorals?
>
> The closest thing I know of is the help plugin.  For example, 'mvn
> help:describe -Dplugin=site' will give information about the site
> plugin.  Right now it doesn't list the goals, but that would be a good
> enhancement request.
>
> "Installed" is somewhat irrelevant since if you invoke a plugin that's
> not in your local repository, Maven will retrieve it.
>
> The best documentation for the plugins is online, starting here:
>
>    http://maven.apache.org/plugins/
>
> --
> Wendy
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>


-- 
..........................................................
Arnaud HERITIER
..........................................................
OCTO Technology - aheritier@octo.com
www.octo.com | blog.octo.com
..........................................................
ASF - aheritier@apache.org
www.apache.org | maven.apache.org
...........................................................

Re: an oveview of all the installed plugins and goals

Posted by James Abley <ja...@gmail.com>.
On 16/05/07, Gert-Jan Braas <br...@steckelfisch.nl> wrote:
> OK.
> So that is a way of obtaining plugin info.
>
> Now I'm using the axis2-aar maven plugin.
> As far as I can tell, it is installed.
> ==========================================
> braas@chocolat:~/.m2/repository$ find . | grep aar
> ./org/apache/maven/plugins/maven-aar-plugin
> ./org/apache/maven/plugins/maven-aar-plugin/maven-metadata-central.xml
> ./org/apache/maven/plugins/maven-axis2-aar-plugin
> ./org/apache/maven/plugins/maven-axis2-aar-plugin/1.1.1
> ./org/apache/maven/plugins/maven-axis2-aar-plugin/1.1.1/axis2-aar-maven-plugin-1.1.1.jar
> ./org/apache/maven/plugins/maven-axis2-aar-plugin/maven-metadata-central.xml
>
> ==========================================
>
> But a list of goals can not be obtained:

Quoting a previous answer:

"It lists also goals and parameters: 'mvn help:describe -Dplugin=site
-Dfull=true', but this is still for a single (known) plugin only."

Presumably, the plugin that you're using isn't included in the known
plugins that comply with this behaviour. Maybe you could request it as
a new feature from the plugin authors?

<snip/>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: an oveview of all the installed plugins and goals

Posted by Martin Hoeller <ma...@xss.co.at>.
Hi!

On Wednesday, 16. May 2007 14:28 Gert-Jan Braas wrote:

> Now I'm using the axis2-aar maven plugin.
> As far as I can tell, it is installed.
> ==========================================
> braas@chocolat:~/.m2/repository$ find . | grep aar
> ./org/apache/maven/plugins/maven-aar-plugin
> ./org/apache/maven/plugins/maven-aar-plugin/maven-metadata-central.xml
> ./org/apache/maven/plugins/maven-axis2-aar-plugin
> ./org/apache/maven/plugins/maven-axis2-aar-plugin/1.1.1
> ./org/apache/maven/plugins/maven-axis2-aar-plugin/1.1.1/axis2-aar-maven-plugin-1.1.1.jar
> ./org/apache/maven/plugins/maven-axis2-aar-plugin/maven-metadata-central.xml
[...]
> The plgin is installed by hand (copied to the plugin directory)
> and I have altered maven-metadata-central.xml with
>
>      <plugin>
>       <name>Maven axis2-aar Plugin</name>
>       <prefix>aar</prefix>
>       <artifactId>maven-axis2-aar-plugin</artifactId>
>     </plugin>
>
> What am I missing?

You specified the wrong name. The plugin is named "axis2-aar-maven-plugin" 
but you added it in your pom.xml as "maven-axis2-aar-plugin". Fix your 
pom.xml.

hth,
- martin
-- 
Martin Höller                   | martin.hoeller@xss.co.at
*x Software + Systeme           | http://www.xss.co.at/
Karmarschgasse 51/2/20          | Tel: +43-1-6060114-30
A-1100 Vienna, Austria          | Fax: +43-1-6060114-71

Re: an oveview of all the installed plugins and goals

Posted by Gert-Jan Braas <br...@steckelfisch.nl>.
It looks like I not fully aware of all the ins and outs.

I will remove all references from my repository, and try again.

thanx,

Gert-Jan


=========================================
Het kan zijn dat ik "Office" documenten verstuur.
Als dit in Open-Document-Formaat is, haal dan
hier: http://nl.openoffice.org/ een kopie op
van OpenOffice
-----------------------------------------
Steckelfisch
Hoornsedijk 1010
9728NG Groningen
0031(0)651521379


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: an oveview of all the installed plugins and goals

Posted by Wendy Smoak <ws...@gmail.com>.
On 5/16/07, Gert-Jan Braas <br...@steckelfisch.nl> wrote:

> OK.
> So that is a way of obtaining plugin info.
>
> Now I'm using the axis2-aar maven plugin.
> As far as I can tell, it is installed.
> ==========================================
> braas@chocolat:~/.m2/repository$ find . | grep aar
> ./org/apache/maven/plugins/maven-aar-plugin
> ./org/apache/maven/plugins/maven-aar-plugin/maven-metadata-central.xml
> ./org/apache/maven/plugins/maven-axis2-aar-plugin
> ./org/apache/maven/plugins/maven-axis2-aar-plugin/1.1.1
> ./org/apache/maven/plugins/maven-axis2-aar-plugin/1.1.1/axis2-aar-maven-plugin-1.1.1.jar
...
> [INFO] The plugin 'org.apache.maven.plugins:maven-axis2-aar-plugin' does
> not exist or no valid version could be found

I don't see this in the list of plugins from the Maven project, how
did it get into the org.apache.maven.plugins groupId?

The different names are most likely confusing it -- maven-aar-plugin,
maven-axis2-aar-plugin, and the actual jar filename is
axis2-aar-maven-plugin.

Try providing the full groupId and artifactId as described in the docs:

http://maven.apache.org/plugins/maven-help-plugin/describe-mojo.html

-- 
Wendy

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: an oveview of all the installed plugins and goals

Posted by Gert-Jan Braas <br...@steckelfisch.nl>.
OK.
So that is a way of obtaining plugin info.

Now I'm using the axis2-aar maven plugin.
As far as I can tell, it is installed.
==========================================
braas@chocolat:~/.m2/repository$ find . | grep aar
./org/apache/maven/plugins/maven-aar-plugin
./org/apache/maven/plugins/maven-aar-plugin/maven-metadata-central.xml
./org/apache/maven/plugins/maven-axis2-aar-plugin
./org/apache/maven/plugins/maven-axis2-aar-plugin/1.1.1
./org/apache/maven/plugins/maven-axis2-aar-plugin/1.1.1/axis2-aar-maven-plugin-1.1.1.jar
./org/apache/maven/plugins/maven-axis2-aar-plugin/maven-metadata-central.xml

==========================================

But a list of goals can not be obtained:
==========================================
braas@chocolat:~$ mvn help:describe -Dplugin=aar -Dfull=true
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'help'.
[INFO]
----------------------------------------------------------------------------
[INFO] Building Maven Default Project
[INFO]    task-segment: [help:describe] (aggregator-style)
[INFO]
----------------------------------------------------------------------------
[INFO] [help:describe]
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] The plugin 'org.apache.maven.plugins:maven-axis2-aar-plugin' does
not exist or no valid version could be found
[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: < 1 second
[INFO] Finished at: Wed May 16 14:23:10 CEST 2007
[INFO] Final Memory: 3M/5M
[INFO]
------------------------------------------------------------------------
braas@chocolat:~$ mvn help:describe -Dplugin=axis2-aar -Dfull=true
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'help'.
[INFO]
----------------------------------------------------------------------------
[INFO] Building Maven Default Project
[INFO]    task-segment: [help:describe] (aggregator-style)
[INFO]
----------------------------------------------------------------------------
[INFO] [help:describe]
[INFO] Searching repository for plugin with prefix: 'axis2-aar'.
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Plugin could not be found. If you believe it is correct, check your
pluginGroups setting, and run with -U to update the remote configuration
[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: < 1 second
[INFO] Finished at: Wed May 16 14:23:22 CEST 2007
[INFO] Final Memory: 2M/5M
[INFO]
------------------------------------------------------------------------
==========================================
The plgin is installed by hand (copied to the plugin directory)
and I have altered maven-metadata-central.xml with

     <plugin>
      <name>Maven axis2-aar Plugin</name>
      <prefix>aar</prefix>
      <artifactId>maven-axis2-aar-plugin</artifactId>
    </plugin>

What am I missing?

Regards,



> On 5/15/07, Gert-Jan Braas <br...@steckelfisch.nl> wrote:
>
>> is there a maven command which lists all the installed plugins and/or
gorals?
>
> The closest thing I know of is the help plugin.  For example, 'mvn
help:describe -Dplugin=site' will give information about the site
plugin.  Right now it doesn't list the goals, but that would be a good
enhancement request.
>
> "Installed" is somewhat irrelevant since if you invoke a plugin that's
not in your local repository, Maven will retrieve it.
>
> The best documentation for the plugins is online, starting here:
>
>    http://maven.apache.org/plugins/
>
> --
> Wendy
>
> --------------------------------------------------------------------- To
unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>


=========================================
Het kan zijn dat ik "Office" documenten verstuur.
Als dit in Open-Document-Formaat is, haal dan
hier: http://nl.openoffice.org/ een kopie op
van OpenOffice
-----------------------------------------
Steckelfisch
Hoornsedijk 1010
9728NG Groningen
0031(0)651521379





---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: an oveview of all the installed plugins and goals

Posted by Wendy Smoak <ws...@gmail.com>.
On 5/15/07, Gert-Jan Braas <br...@steckelfisch.nl> wrote:

> is there a maven command which lists all the installed plugins and/or gorals?

The closest thing I know of is the help plugin.  For example, 'mvn
help:describe -Dplugin=site' will give information about the site
plugin.  Right now it doesn't list the goals, but that would be a good
enhancement request.

"Installed" is somewhat irrelevant since if you invoke a plugin that's
not in your local repository, Maven will retrieve it.

The best documentation for the plugins is online, starting here:

   http://maven.apache.org/plugins/

-- 
Wendy

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org