Dear Wim, I just found it.
thanks. Tel: (020)36315358-328 Fax: (020)36315170 Wim Deblauwe <[EMAIL PROTECTED] To: Maven Users List <users@maven.apache.org> il.com> cc: Subject: Re: [m2] Problem creating plugin with alternative lifecycle 16/11/2005 15:49 Please respond to "Maven Users List" ok, thanks! I just found out also :) regards, Wim 2005/11/16, Nitko2 <[EMAIL PROTECTED]>: > > Wim, you have to use full plugin specification: > groupId:artifactId[:version]:goal > > So, instead of install:install you use > org.apache.maven.plugins:install:2.0:install > > Filip. > > > > > Wim Deblauwe wrote: > > Hi, > > > > I'm testing to create a new plugin that can generate a different kind of > > artifact (InstallShield Merge Module). Following the Guide to Developing > > Java plugins and Introduction to the build lifecycle, I come to the > > following: > > > > I made a components.xml file: > > > > <component-set> > > <components> > > <component> > > <role>org.apache.maven.lifecycle.mapping.LifecycleMapping</role> > > <role-hint>msm</role-hint> > > <implementation> > org.apache.maven.lifecycle.mapping.DefaultLifecycleMapping > > </implementation> > > <configuration> > > <phases> > > <compile>msm:compile</compile> > > <package>msm:package</package> > > <install>install:install</install> > > <deploy>deploy:deploy</deploy> > > </phases> > > </configuration> > > </component> > > </components> > > </component-set> > > > > Then in my pom.xml I set the <packaging> to 'msm' and added this: > > > > <plugins> > > <plugin> > > <groupId>com.mycomp.mavenplugin</groupId> > > <artifactId>maven-msm-plugin</artifactId> > > <extensions>true</extensions> > > </plugin> > > </plugins> > > > > I then get the following error: > > > > [INFO] Scanning for projects... > > [INFO] > > > ---------------------------------------------------------------------------- > > [INFO] Building Utils Logging MSM Module > > [INFO] task-segment: [install] > > [INFO] > > > ---------------------------------------------------------------------------- > > [INFO] > > > ---------------------------------------------------------------------------- > > [ERROR] BUILD ERROR > > [INFO] > > > ---------------------------------------------------------------------------- > > [INFO] Mapped-prefix lookup of mojos are only supported from direct > > invocation. Please use specification of the form > > groupId:artifactId[:version]:goal instead. (Offending mojo: > 'msm:compile', > > invoked > > via: 'install') > > [INFO] > > > ---------------------------------------------------------------------------- > > [INFO] For more information, run Maven with the -e switch > > [INFO] > > > ---------------------------------------------------------------------------- > > [INFO] Total time: < 1 second > > [INFO] Finished at: Tue Nov 15 17:38:44 CET 2005 > > [INFO] Final Memory: 1M/3M > > [INFO] > > > ---------------------------------------------------------------------------- > > > > > > What am I doing wrong? I did a 'mvn -DupdateReleaseInfo=true install' to > > install my custom plugin and added > > <pluginGroups> > > <pluginGroup>com.barcoview.mavenplugin</pluginGroup> > > </pluginGroups> > > > > to my settings.xml > > > > any help is very much appreciated! > > > > regards, > > > > Wim > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email ______________________________________________________________________ Hactl..........Moving forward with you. Best Air Cargo Terminal - Asia 2005 Air Cargo Terminal of the Year 2002, 2003 & 2004 Web: http://www.hactl.com DISCLAIMER :- The information contained in this message, including any attachment, is confidential and may also be privileged. The information is intended only for the person or entity to which it is addressed. Any review, re-transmission, copying, storage, distribution or other use or disclosure of this information by persons or entities other than the intended recipient is prohibited. If you are not the intended recipient, please contact the sender immediately by return email and delete this message from your system. Thank you. ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email ______________________________________________________________________ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]