Advertisement
mmornati

Maven Groovy Plugin

Jul 12th, 2013
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 0.83 KB | None | 0 0
  1. <plugin>
  2.             <groupId>org.codehaus.groovy.maven</groupId>
  3.             <artifactId>gmaven-plugin</artifactId>
  4.             <executions>
  5.                <execution>
  6.                   <phase>validate</phase>
  7.                   <goals>
  8.                      <goal>execute</goal>
  9.                   </goals>
  10.                   <configuration>
  11.                      <source>
  12.                      import java.util.Date
  13.                      import java.text.SimpleDateFormat
  14.                      def format = new SimpleDateFormat("dd/MM/yyyy");
  15.                      def myothertimestamp = format.format(new Date());
  16.                      project.properties['othertimestamp'] = myothertimestamp
  17.                      </source>
  18.                   </configuration>
  19.                </execution>
  20.             </executions>
  21.          </plugin>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement