According to documentation, it is possible to bind a groovy script to a phase of maven lifecycle, but how do I run it "unbound" ? In other words, I want to do the following thing

Declare my groovy script to use :

<plugin>
    <groupId>org.codehaus.groovy.maven</groupId>
    <artifactId>gmaven-plugin</artifactId>
    <configuration>
        <source>${pom.basedir}/src/main/script/myscript.groovy</source>
    </configuration>
</plugin>

Then invoke it directly from command-line (outside of any lifecycle). But how do I achieve that ?

link|flag

Know someone who can answer? Share a link to this question via email, twitter, or facebook.

Your Answer

 
or
required, but never shown

Browse other questions tagged or ask your own question.