Java Mailing List Archive

http://www.gg3721.com/

Home » user.groovy »

[groovy-user] GMaven - groovy:execute script file

Tom Nichols

2010-02-08

Replies: Find Java Web Hosting

Author LoginPost Reply
I'm trying to run a groovy script file using GMaven. However GMaven
thinks I'm running an inline script:

[INFO] [groovy:execute {execution: default-cli}]
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] groovy.lang.MissingPropertyException: No such property:
myScript for class: script1265659774156

in my POM:
<plugin>
  <groupId>org.codehaus.groovy.maven</groupId>
  <artifactId>gmaven-plugin</artifactId>
  <version>1.0</version>
  <executions>
   <execution>
    <goals>
      <goal>compile</goal>
      <goal>testCompile</goal>
    </goals>
   </execution>
  </executions>
  <configuration>
   <source>myScript.groovy</source>
  </configuration>
</plugin>


Maybe it's just me but trying to use the same maven property for both
inline script and script file/url doesn't seem like the best idea
since they're very different types of data. I've also tried using
<source>${pom.basedir}/myScript.groovy</source> with the same results.
Am I doing something obviously wrong? Thanks.

-Tom

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

  http://xircles.codehaus.org/manage_email


©2008 gg3721.com - Jax Systems, LLC, U.S.A.