Hi Allan, My question is how the prefix "hello" gotten in the example?
Regards, Rice On 1/10/06, Allan Ramirez <[EMAIL PROTECTED]> wrote: > > Hi Rice, > > When executing -DupdateReleaseInfo=true, you are actually forcing to use > the latest version of the plugin. And by adding the groupId in the > <pluginGroups> you are saving it so maven can identify where your plugin > belongs. > > Now, Since maven already knows your plugin, Instead of executing it in a > long way "mvn groupId:artifactId:version:goal, you can now execute it > by calling "mvn prefix:goal" only > > I hope this helps. > > Regards, > -allan > > Rice Yeh wrote: > > >Hi, > > When studing the article Guide to Developing Java > >Plugins< > http://maven.apache.org/guides/plugin/guide-java-plugin-development.html > >in > >http://maven.apache.org/guides/plugin/guide-java-plugin-development.html, > >there is unclear part on the explanation: > > > >the command used to execute a goal is "mvn > groupID:artifactID:version:goal". > >In the example, it is "mvn > >sample.plugin:maven-hello-plugin:1.0-SNAPSHOT:sayhi". The goal form can > be > >shortened by > > > >mvn -DupdateReleaseInfo=true install > > > >to save the version part, and add the following to your settings.xmlfile: > > > ><pluginGroups> > > <pluginGroup>sample.plugin</pluginGroup> > ></pluginGroups> > > > >to save the groud part, then the shortened command should be > > > >"mvn maven-hello-plugin:sayhi" > > > >. Why does it become "mvn hello:sayhi" in the article? Can anyone explain > it? > > > >Regards, > >Rice > > > > > > > >------------------------------------------------------------------------ > > > >No virus found in this incoming message. > >Checked by AVG Free Edition. > >Version: 7.1.371 / Virus Database: 267.14.16/225 - Release Date: 1/9/2006 > > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >