Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <plugins>
- <!-- Maven helper plugin to create source folders -->
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-help-plugin</artifactId>
- <version>2.1</version>
- </plugin>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>build-helper-maven-plugin</artifactId>
- <version>1.5</version>
- <executions>
- <execution>
- <id>add-source</id>
- <phase>generate-sources</phase>
- <inherited>true</inherited>
- <goals>
- <goal>add-source</goal>
- </goals>
- <configuration>
- <sources>
- <source>src/main/groovy/**/*</source>
- </sources>
- </configuration>
- </execution>
- <execution>
- <id>add-test-source</id>
- <phase>generate-test-source</phase>
- <inherited>true</inherited>
- <goals>
- <goal>add-test-source</goal>
- </goals>
- <configuration>
- <sources>
- <source>src/test/groovy</source>
- </sources>
- </configuration>
- </execution>
- </executions>
- </plugin>
- <!-- Configure the compiler plugin for Java 6.0 -->
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <version>3.1</version>
- <configuration>
- <source>1.7</source>
- <target>1.7</target>
- <!-- <compilerArgument>${COMPILERARGS}</compilerArgument> <executable>${JAVA_HOME}/bin/javac</executable> -->
- <showDeprecation>true</showDeprecation>
- <encoding>UTF8</encoding>
- <compilerId>groovy-eclipse-compiler</compilerId>
- <excludes>
- <exclude>src/main/groovy/controller/**/*.groovy</exclude>
- <exclude>src/main/groovy/transformer/listing/**/*.groovy</exclude>
- </excludes>
- <includes>
- <include>src/main/groovy/transformer/utils/**/*.groovy</include>
- </includes>
- </configuration>
- <dependencies>
- <dependency>
- <groupId>org.codehaus.groovy</groupId>
- <artifactId>groovy-eclipse-compiler</artifactId>
- <version>2.8.0-01</version>
- </dependency>
- <dependency>
- <groupId>org.codehaus.groovy</groupId>
- <artifactId>groovy-eclipse-batch</artifactId>
- <version>2.1.5-03</version>
- </dependency>
- <dependency>
- <groupId>log4j</groupId>
- <artifactId>log4j</artifactId>
- <version>1.2.16</version>
- <scope>runtime</scope>
- </dependency>
- </dependencies>
- </plugin>
- <!-- Only needed if a java file is not in the src/main/java directory -->
- <plugin>
- <groupId>org.codehaus.groovy</groupId>
- <artifactId>groovy-eclipse-compiler</artifactId>
- <version>2.8.0-01</version>
- <extensions>true</extensions>
- </plugin>
- <!-- Add groovy nature for eclipse -->
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-eclipse-plugin</artifactId>
- <version>2.9</version>
- <configuration>
- <additionalProjectnatures>
- <projectnature>org.eclipse.jdt.groovy.core.groovyNature</projectnature>
- </additionalProjectnatures>
- </configuration>
- </plugin>
- <!-- Create test-jar for dependency; this is not the idea solution, so
- a refactor is needed -->
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-jar-plugin</artifactId>
- <version>2.4</version>
- <executions>
- <execution>
- <id>test-jar</id>
- <inherited>true</inherited>
- <phase>test-compile</phase>
- <goals>
- <goal>test-jar</goal>
- </goals>
- <configuration>
- <includes>
- <include>**/*.class</include>
- </includes>
- </configuration>
- </execution>
- </executions>
- </plugin>
- <!-- configure the surefire plugin -->
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-surefire-plugin</artifactId>
- <version>2.4.3</version>
- <inherited>true</inherited>
- <configuration>
- <failIfNoTests>false</failIfNoTests>
- </configuration>
- </plugin>
- </plugins>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement