Good day to you Michael,
First of all, there is not local plugin repository. It is just one
repository for all artifacts, so don't worry if you see your plugin in your
${user.home}\.m2\repository.
Anyway, the most direct approach to use your plugin is to follow the
following command:
mvn <groupId>:<artifactId>:<version>:<goal>
Thus, in your case, that would be
mvn org.apache.axis2.maven2:axis2-aar-maven-plugin:1.1:exploded
For the short hand version, you can try
mvn axis2-aar:exploded
that's basically the in format
mvn <prefix>:<goal>
wherein <prefix> is a part of your plugin's artifact id...either
<prefix>-maven-plugn or maven-<prefix>-plugin.
And lastly, if your plugin's groupId is not org.apache.maven.plugins, you
would have to add
<pluginGroups>
<pluginGroup>org.codehaus.modello</pluginGroup>
</pluginGroups>
to your settings.xml to use the shorthand goal invocation.
Cheers,
Franz
Michael Bevilacqua-Linn wrote:
>
> Hello,
>
> I'm trying to manually install some plugins that work with Axis 2.1. The
> only place I can find them are as JAR downloads from Axis' website.
>
> I try to install the plugin like so:
> mvn install:install-file
> -Dfile=axis2-aar-maven-plugin-1.1.jar-DartifactId=axis2-aar-maven-plugin
> -DgroupId=
> org.apache.axis2.maven2 -Dversion=1.1 -Dpackaging=plugin
>
> This puts the plugin in Maven's repository, but when I try to run it like
> so
> (just to see if the plugin got installed):
> mvn adb:exploded
>
> It claims that the plugin doesn't exist and tries to download it from a
> remote repository, failing since the plugin doesn't exist in the remote
> repository.
>
> Taking a look in my .m2 directory, I find that the plugin is installed in
> \repository\org\apache\axis2\maven2\axis2-aar-maven-plugin, and not in the
> plugin repository.
>
> Can someone point out what I'm doing wrong, or an easier way to install a
> plugin?
>
> Thanks.
> -Michael B.
>
>
--
View this message in context:
http://www.nabble.com/Manually-Install-Plugins-tf2647760s177.html#a7404995
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]