You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by maarten roosendaal <mr...@yahoo.com> on 2007/05/10 09:07:08 UTC

convert maven 1 plugins to maven 2: best way to go

Hi,

We have a few custom Maven 1 plugins we need to convert to Maven 2 plugins but i'm not sure what the best way is.  We have 1 that is a wrapper around specific maven goals and a few customer goals, and we have 2 custom plugins.

One of these does:
 <goal name="tdi:sloc">
  
  <ant:echo>Start SLOC storage using:</ant:echo>
  <ant:echo>Projectid : ${maven.tdi.projectid}</ant:echo>
  <ant:echo>Label     : ${cctimestamp}#${label}</ant:echo>
  <ant:echo>Targetdir : ${basedir}/target/sloc.xml</ant:echo>
  <ant:echo>Path      : ${maven.tdi.parentfilepath}/${pom.artifactId}</ant:echo>
  <ant:echo>Parentpath: ${maven.tdi.parentfilepath}</ant:echo>
  
  <ant:exec executable="${plugin.resources}\Client.exe">
           <ant:arg line="-path:${maven.tdi.parentfilepath}/${pom.artifactId} -parentpath:${maven.tdi.parentfilepath} -project:${maven.tdi.projectid} -label:${cctimestamp}#${label} -type:SLOCV12 -file:'${basedir}/target/sloc.xml' "/>
  </ant:exec>
      
  </goal>   

Do i need to write a Java class for this or can i keep using the jelly files? If so how?

Hope some can help.

Thanks,
Maarten


 
____________________________________________________________________________________
Be a PS3 game guru.
Get your game face on with the latest PS3 news and previews at Yahoo! Games.
http://videogames.yahoo.com/platform?platform=120121

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: convert maven 1 plugins to maven 2: best way to go

Posted by Milos Kleint <mk...@gmail.com>.
you probably should be writing java files. IMHO at least.

However it should be fairly easy to keep calling the ant tasks from
your java mojo.

Milos


On 5/10/07, maarten roosendaal <mr...@yahoo.com> wrote:
> Hi,
>
> We have a few custom Maven 1 plugins we need to convert to Maven 2 plugins but i'm not sure what the best way is.  We have 1 that is a wrapper around specific maven goals and a few customer goals, and we have 2 custom plugins.
>
> One of these does:
>  <goal name="tdi:sloc">
>
>   <ant:echo>Start SLOC storage using:</ant:echo>
>   <ant:echo>Projectid : ${maven.tdi.projectid}</ant:echo>
>   <ant:echo>Label     : ${cctimestamp}#${label}</ant:echo>
>   <ant:echo>Targetdir : ${basedir}/target/sloc.xml</ant:echo>
>   <ant:echo>Path      : ${maven.tdi.parentfilepath}/${pom.artifactId}</ant:echo>
>   <ant:echo>Parentpath: ${maven.tdi.parentfilepath}</ant:echo>
>
>   <ant:exec executable="${plugin.resources}\Client.exe">
>            <ant:arg line="-path:${maven.tdi.parentfilepath}/${pom.artifactId} -parentpath:${maven.tdi.parentfilepath} -project:${maven.tdi.projectid} -label:${cctimestamp}#${label} -type:SLOCV12 -file:'${basedir}/target/sloc.xml' "/>
>   </ant:exec>
>
>   </goal>
>
> Do i need to write a Java class for this or can i keep using the jelly files? If so how?
>
> Hope some can help.
>
> Thanks,
> Maarten
>
>
>
> ____________________________________________________________________________________
> Be a PS3 game guru.
> Get your game face on with the latest PS3 news and previews at Yahoo! Games.
> http://videogames.yahoo.com/platform?platform=120121
>
> ---------------------------------------------------------------------
> 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