Skip to content

Instantly share code, notes, and snippets.

@btilford
Created July 31, 2012 03:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save btilford/3213398 to your computer and use it in GitHub Desktop.
Save btilford/3213398 to your computer and use it in GitHub Desktop.
gmaven-poms
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelversion>4.0.0</modelVersion>
<modules>
<module>module-a</module>
<module>module-b</module>
</modules>
<groupid>com.mycompany</groupId>
<artifactid>gmaven-1.0-example</artifactId>
<packaging>pom</packaging>
<name>gmaven-1.0-example</name>
<version>123</version>
<dependencies>
<dependency>
<groupid>org.codehaus.groovy.maven.runtime</groupId>
<artifactid>gmaven-runtime-default</artifactId>
</dependency>
</dependencies>
<build>
<pluginmanagement>
<plugins>
<plugin>
<groupid>org.codehaus.groovy.maven</groupId>
<artifactid>gmaven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>generateStubs</goal>
<goal>compile</goal>
<goal>generateTestStubs</goal>
<goal>testCompile</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupid>org.codehaus.groovy.maven</groupId>
<artifactid>gmaven-plugin</artifactId>
</plugin>
</plugins>
</build>
</project>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelversion>4.0.0</modelVersion>
<modules>
<module>module-a</module>
<module>module-b</module>
</modules>
<groupid>com.mycompany</groupId>
<artifactid>gmaven-1.2-example</artifactId>
<packaging>pom</packaging>
<name>gmaven-1.2-example</name>
<version>123</version>
<build>
<pluginmanagement>
<plugins>
<plugin>
<groupid>org.codehaus.gmaven</groupId>
<artifactid>gmaven-plugin</artifactId>
<version>${gmaven.version}</version>
<executions>
<execution>
<goals>
<goal>generateStubs</goal>
<goal>compile</goal>
<goal>generateTestStubs</goal>
<goal>testCompile</goal>
</goals>
<configuration>
<providerselection>1.7</providerSelection>
</configuration>
</execution>
</executions>
<dependencies>
<dependency>
<groupid>org.codehaus.gmaven.runtime</groupId>
<artifactid>gmaven-runtime-1.7</artifactId>
<version>${gmaven.version}</version>
<exclusions>
<exclusion>
<!--
gmaven runtime has a dependency on
groovy-all v1.6 but we want 1.7.0
-->
<groupid>org.codehaus.groovy</groupId>
<artifactid>groovy-all</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupid>org.codehaus.groovy</groupId>
<artifactid>groovy-all</artifactId>
<version>${groovy.version}</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupid>org.codehaus.gmaven</groupId>
<artifactid>gmaven-plugin</artifactId>
</plugin>
</plugins>
</build>
<dependencymanagement>
<dependencies>
<dependency>
<groupid>org.codehaus.groovy</groupId>
<artifactid>groovy-all</artifactId>
<version>${groovy.version}</version>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupid>org.codehaus.groovy</groupId>
<artifactid>groovy-all</artifactId>
</dependency>
</dependencies>
<properties>
<gmaven.version>1.2</gmaven.version>
<groovy.version>1.7.0</groovy.version>
</properties>
</project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment