You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by carioca <sh...@gmail.com> on 2008/04/27 17:33:58 UTC
Controlling the usage of plugin versions
Hi,
I am developing a plugin that has the prefix 'os' and a standalone goal
named run.
So, to invoke my goal I simply write mvn os:run.
However, if I install 2 versions of the same plugin, e.g. 1.0 and 1.3, how
does maven know which plugin version to use? How can I control the used
version?
Thanks,
Shai
--
View this message in context: http://www.nabble.com/Controlling-the-usage-of-plugin-versions-tp16924960s177p16924960.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
RE: Controlling the usage of plugin versions
Posted by "Brian E. Fox" <br...@reply.infinity.nu>.
See my explanation here:
http://blogs.sonatype.com/brian/2008/04/10/1207873624557.html
-----Original Message-----
From: carioca [mailto:shaiw75@gmail.com]
Sent: Sunday, April 27, 2008 11:34 AM
To: users@maven.apache.org
Subject: Controlling the usage of plugin versions
Hi,
I am developing a plugin that has the prefix 'os' and a standalone goal
named run.
So, to invoke my goal I simply write mvn os:run.
However, if I install 2 versions of the same plugin, e.g. 1.0 and 1.3,
how
does maven know which plugin version to use? How can I control the used
version?
Thanks,
Shai
--
View this message in context:
http://www.nabble.com/Controlling-the-usage-of-plugin-versions-tp1692496
0s177p16924960.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Controlling the usage of plugin versions
Posted by Wayne Fay <wa...@gmail.com>.
Alternatively...
mvn groupId:artifactId:version:goal
Wayne
On 4/27/08, mgehring <ma...@gmx.net> wrote:
>
> Check this out...
>
> <!-- Defines your plugin-versions -->
> <build>
> [...]
> <pluginManagement>
> <plugins>
> <plugin>
> <groupId>your.groupId.plugin</groupId>
> <artifactId>your-artifactId-plugin</artifactId>
> <version>1.3</version>
> </plugin>
> [...]
> </plugins>
> </pluginManagement>
> [...]
> </build>
>
> Hope it helps...
> mgehring
> --
> View this message in context: http://www.nabble.com/Controlling-the-usage-of-plugin-versions-tp16924960s177p16925135.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Controlling the usage of plugin versions
Posted by mgehring <ma...@gmx.net>.
Check this out...
<!-- Defines your plugin-versions -->
<build>
[...]
<pluginManagement>
<plugins>
<plugin>
<groupId>your.groupId.plugin</groupId>
<artifactId>your-artifactId-plugin</artifactId>
<version>1.3</version>
</plugin>
[...]
</plugins>
</pluginManagement>
[...]
</build>
Hope it helps...
mgehring
--
View this message in context: http://www.nabble.com/Controlling-the-usage-of-plugin-versions-tp16924960s177p16925135.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org