Oh yah, that's right, there is a Groovy plugin. Another one of those paths that I would use sparingly. (Well actually, on the project I saw it used on, I went through and replaced it immediately.)
http://www.ronniealleva.org/index.php/2008/01/23/using-the-groovy-maven-plugin-to-do-magic/ is an example. The Maven plugins project has a wealth of tricks in it across the various plugins if/when you choose to create a true plugin. On Aug 26, 2011, at 1:46 PM, Eric Kolotyluk wrote: > OK, I grok the use of antrun as illustrated below. Is there anything more > general than antrun, for example execute some arbitrary commands or script > without having to write a plug-n? I'm thinking of a JavaScipt, Groovy or > Scala plugin - or am I just dreaming? If not, it might be fun to write such a > plugin for Maven, but for the moment I need a more expedient solution. > > Cheers, Eric > > |<project> > [...] > <build> > <plugins> > [...] > <plugin> > <artifactId>maven-antrun-plugin</artifactId> > <executions> > <execution> > <phase>deploy</phase> > <configuration> > <tasks> > > <!-- > Place any Ant task here. You can add anything > you can add between<target> and</target> in a > build.xml. > --> > > </tasks> > </configuration> > <goals> > <goal>run</goal> > </goals> > </execution> > </executions> > </plugin> > </plugins> > </build> > [...] > </project> > | > > > > On 2011-08-26 9:27 AM, Brian Topping wrote: >> On Aug 26, 2011, at 12:13 PM, Hilco Wijbenga wrote: >> >>> On 26 August 2011 07:02, Brian Topping<[email protected]> wrote: >>>> A lot of people use antrun, see >>>> http://www.nyc.gov/html/oem/downloads/pdf/hurricane_map_english.pdf. I >>>> personally do that as a last resort. >>> What does a hurricane map have to do with Ant? :-) >> LOL! That was a map I was posting elsewhere about where not to buy an >> apartment in NYC. I meant to post >> http://stackoverflow.com/questions/586202/best-practices-for-copying-files-with-maven, >> which has a reply from Tim O'Brien regarding antrun. >> >> Anyway, off to write a plugin. Too much fascinating information in the news >> today, gotta get some work done. >> >> Cheers, Brian >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [email protected] >> For additional commands, e-mail: [email protected] >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
