maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Amshoff Christoph, Köln" <Christoph.Amsh...@fja.com>
Subject AW: [m2] "Shortening the Command Line" when executing plugins
Date Mon, 28 Aug 2006 14:14:45 GMT
Yes, exactly. Just directly copied from the "Guide to Developing Java
Plugins":

<?xml version="1.0" encoding="ISO-8859-1"?>
<settings>
  <pluginGroups>
    <pluginGroup>sample.plugin</pluginGroup>
  </pluginGroups>
</settings>

I tried to use the settings.xml in <maven-home>/conf, too, but with no
success as well.

So what's wrong?
Christoph.

> -----Ursprüngliche Nachricht-----
> Von: Gareth Tilley [mailto:gareth.tilley@rmb.co.za] 
> Gesendet: Montag, 28. August 2006 15:17
> An: users@maven.apache.org
> Betreff: Re: [m2] "Shortening the Command Line" when executing plugins
> 
> 
> 
> 
> &quot;Amshoff Christoph, Köln&quot; wrote:
> > 
> > Hi,
> > 
> > I followed the "Guide to Developing Java Plugins" and performed the
> > mentioned steps to compile and install the sample plugin. 
> When executing,
> > the command line "mvn sample.plugin:maven-hello-plugin:sayhi" 
> > is executed successfully. 
> > 
> > But when I try to "shorten the command line" like suggested 
> in the guide,
> > both of the following ways are failing:
> > 
> > -- Maven will try expanding the artifactId: "mvn
> > sample.plugin:hello:sayhi"
> > is giving me the error "The plugin 'sample.plugin:hello' 
> does not exist or
> > no valid version could be found"
> > 
> > -- Add your plugin's groupId to the list of groupIds 
> searched by default
> > in
> > ${user.home}/.m2/settings.xml file: "mvn 
> maven-hello-plugin:sayhi" is
> > producing the error "The plugin
> > 'org.apache.maven.plugins:maven-maven-hello-plugin-plugin' 
> does not exist
> > or
> > no valid version could be found"
> > 
> > What am I missing here? Is the Plugin Guide wrong? Are these ways of
> > reducing command line only working with deployed plugins (I did only
> > install
> > it)? Any help is appreciated.
> > 
> > Thanks,
> > Christoph.
> > 
> > 
> > 
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> > 
> > 
> > 
> 
> >-- Add your plugin's groupId to the list of groupIds 
> searched by default in
> >${user.home}/.m2/settings.xml file: "mvn maven-hello-plugin:sayhi" is
> >producing the error "The plugin
> >'org.apache.maven.plugins:maven-maven-hello-plugin-plugin' 
> does not exist
> or
> >no valid version could be found"
> 
> Is this what you have in your settings.xml?
> 
>   <pluginGroups>
>     <pluginGroup>sample.plugin</pluginGroup>
>   </pluginGroups>
> 
> -- 
> View this message in context: 
> http://www.nabble.com/-m2--%22Shortening-the-Command-Line%22-w
hen-executing-plugins-tf2176547.html#a6020063
Sent from the Maven - Users forum 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


Mime
View raw message