You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Jens Reimann <ct...@dentrassi.de> on 2014/05/09 11:52:42 UTC
Using plugins from the command line that come not from maven central
Hi,
I want to execute a project-less maven plugin from the command line.
However the plugin is not in maven central and I cannot place the plugin
repository in the settings.xml file.
Now I can use the dependency:get plugin to fetch the plugin from the
remote repository into my local repository. However I have to use the
command line switch -llr, which triggers a warning. Otherwise maven
complains about the fact that the plugin cannot be found at maven
central (though it really is in the local repository).
Adding -llr works, and the plugin is found.
However I would like to have a way were I can run a project-less plugin,
from the command line, using an alternate plugin repository.
Like:
mvn mygroup:myartifact:1.2.3:do-my-stuff
-Dmaven.plugin.repository=http://my.own/repository
I have not found such a property in the documentation.
Jens
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Using plugins from the command line that come not from maven central
Posted by Anders Hammar <an...@hammar.net>.
Not possible. You should add the plugin repo to your settings.xml.
If you can't modify your settings.xml (locked by corporate policy or
similar), you can always create your own settings.xml (adding the plugin
repo) and have Maven use that for this execution through the "-s" switch.
/Anders
On Fri, May 9, 2014 at 11:52 AM, Jens Reimann <ct...@dentrassi.de> wrote:
> Hi,
>
> I want to execute a project-less maven plugin from the command line.
> However the plugin is not in maven central and I cannot place the plugin
> repository in the settings.xml file.
>
> Now I can use the dependency:get plugin to fetch the plugin from the
> remote repository into my local repository. However I have to use the
> command line switch -llr, which triggers a warning. Otherwise maven
> complains about the fact that the plugin cannot be found at maven
> central (though it really is in the local repository).
>
> Adding -llr works, and the plugin is found.
>
> However I would like to have a way were I can run a project-less plugin,
> from the command line, using an alternate plugin repository.
>
> Like:
> mvn mygroup:myartifact:1.2.3:do-my-stuff
> -Dmaven.plugin.repository=http://my.own/repository
>
> I have not found such a property in the documentation.
>
> Jens
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>