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 <[email protected]> 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: [email protected] > For additional commands, e-mail: [email protected] > >
