Advertisement
Guest User

Plugins section

a guest
Jul 10th, 2013
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.00 KB | None | 0 0
  1. <plugins>
  2. <!-- Maven helper plugin to create source folders -->
  3. <plugin>
  4. <groupId>org.apache.maven.plugins</groupId>
  5. <artifactId>maven-help-plugin</artifactId>
  6. <version>2.1</version>
  7. </plugin>
  8. <plugin>
  9. <groupId>org.codehaus.mojo</groupId>
  10. <artifactId>build-helper-maven-plugin</artifactId>
  11. <version>1.5</version>
  12. <executions>
  13. <execution>
  14. <id>add-source</id>
  15. <phase>generate-sources</phase>
  16. <inherited>true</inherited>
  17. <goals>
  18. <goal>add-source</goal>
  19. </goals>
  20. <configuration>
  21. <sources>
  22. <source>src/main/groovy/**/*</source>
  23. </sources>
  24. </configuration>
  25. </execution>
  26. <execution>
  27. <id>add-test-source</id>
  28. <phase>generate-test-source</phase>
  29. <inherited>true</inherited>
  30. <goals>
  31. <goal>add-test-source</goal>
  32. </goals>
  33. <configuration>
  34. <sources>
  35. <source>src/test/groovy</source>
  36. </sources>
  37. </configuration>
  38. </execution>
  39. </executions>
  40. </plugin>
  41. <!-- Configure the compiler plugin for Java 6.0 -->
  42. <plugin>
  43. <groupId>org.apache.maven.plugins</groupId>
  44. <artifactId>maven-compiler-plugin</artifactId>
  45. <version>3.1</version>
  46. <configuration>
  47. <source>1.7</source>
  48. <target>1.7</target>
  49. <!-- <compilerArgument>${COMPILERARGS}</compilerArgument> <executable>${JAVA_HOME}/bin/javac</executable> -->
  50. <showDeprecation>true</showDeprecation>
  51. <encoding>UTF8</encoding>
  52. <compilerId>groovy-eclipse-compiler</compilerId>
  53. <excludes>
  54. <exclude>src/main/groovy/controller/**/*.groovy</exclude>
  55. <exclude>src/main/groovy/transformer/listing/**/*.groovy</exclude>
  56. </excludes>
  57. <includes>
  58. <include>src/main/groovy/transformer/utils/**/*.groovy</include>
  59. </includes>
  60. </configuration>
  61. <dependencies>
  62. <dependency>
  63. <groupId>org.codehaus.groovy</groupId>
  64. <artifactId>groovy-eclipse-compiler</artifactId>
  65. <version>2.8.0-01</version>
  66. </dependency>
  67. <dependency>
  68. <groupId>org.codehaus.groovy</groupId>
  69. <artifactId>groovy-eclipse-batch</artifactId>
  70. <version>2.1.5-03</version>
  71. </dependency>
  72. <dependency>
  73. <groupId>log4j</groupId>
  74. <artifactId>log4j</artifactId>
  75. <version>1.2.16</version>
  76. <scope>runtime</scope>
  77. </dependency>
  78. </dependencies>
  79. </plugin>
  80. <!-- Only needed if a java file is not in the src/main/java directory -->
  81. <plugin>
  82. <groupId>org.codehaus.groovy</groupId>
  83. <artifactId>groovy-eclipse-compiler</artifactId>
  84. <version>2.8.0-01</version>
  85. <extensions>true</extensions>
  86. </plugin>
  87. <!-- Add groovy nature for eclipse -->
  88. <plugin>
  89. <groupId>org.apache.maven.plugins</groupId>
  90. <artifactId>maven-eclipse-plugin</artifactId>
  91. <version>2.9</version>
  92. <configuration>
  93. <additionalProjectnatures>
  94. <projectnature>org.eclipse.jdt.groovy.core.groovyNature</projectnature>
  95. </additionalProjectnatures>
  96. </configuration>
  97. </plugin>
  98. <!-- Create test-jar for dependency; this is not the idea solution, so
  99. a refactor is needed -->
  100. <plugin>
  101. <groupId>org.apache.maven.plugins</groupId>
  102. <artifactId>maven-jar-plugin</artifactId>
  103. <version>2.4</version>
  104. <executions>
  105. <execution>
  106. <id>test-jar</id>
  107. <inherited>true</inherited>
  108. <phase>test-compile</phase>
  109. <goals>
  110. <goal>test-jar</goal>
  111. </goals>
  112. <configuration>
  113. <includes>
  114. <include>**/*.class</include>
  115. </includes>
  116. </configuration>
  117. </execution>
  118. </executions>
  119. </plugin>
  120. <!-- configure the surefire plugin -->
  121. <plugin>
  122. <groupId>org.apache.maven.plugins</groupId>
  123. <artifactId>maven-surefire-plugin</artifactId>
  124. <version>2.4.3</version>
  125. <inherited>true</inherited>
  126. <configuration>
  127. <failIfNoTests>false</failIfNoTests>
  128. </configuration>
  129. </plugin>
  130.  
  131. </plugins>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement