[exo-jcr-commits] exo-jcr SVN: r4491 - ws/branches/2.1.x/exo.ws.rest.core.

do-not-reply at jboss.org do-not-reply at jboss.org
Thu Jun 9 04:25:41 EDT 2011


Author: paristote
Date: 2011-06-09 04:25:41 -0400 (Thu, 09 Jun 2011)
New Revision: 4491

Modified:
   ws/branches/2.1.x/exo.ws.rest.core/pom.xml
Log:
WS-266 use maven build helper plugin to use generated sources from target

Modified: ws/branches/2.1.x/exo.ws.rest.core/pom.xml
===================================================================
--- ws/branches/2.1.x/exo.ws.rest.core/pom.xml	2011-06-09 07:45:52 UTC (rev 4490)
+++ ws/branches/2.1.x/exo.ws.rest.core/pom.xml	2011-06-09 08:25:41 UTC (rev 4491)
@@ -105,6 +105,25 @@
    <build>
       <plugins>
          <plugin>
+            <groupId>org.codehaus.mojo</groupId>
+            <artifactId>build-helper-maven-plugin</artifactId>
+            <version>1.5</version>
+            <executions>
+               <execution>
+                  <id>add-test-sources</id>
+                  <phase>generate-test-sources</phase>
+                  <goals>
+                     <goal>add-test-source</goal>
+                  </goals>
+                  <configuration>
+                     <sources>
+                        <source>target/generated-test-sources</source>
+                     </sources>
+                  </configuration>
+               </execution>
+            </executions>
+         </plugin>
+         <plugin>
             <groupId>org.jvnet.jaxb2.maven2</groupId>
             <artifactId>maven-jaxb2-plugin</artifactId>
             <executions>
@@ -148,29 +167,6 @@
                </execution>
             </executions>
          </plugin>
-         <plugin>
-            <groupId>org.apache.maven.plugins</groupId>
-            <artifactId>maven-antrun-plugin</artifactId>
-            <executions>
-               <execution>
-                  <id>0</id>
-                  <goals>
-                     <goal>run</goal>
-                  </goals>
-                  <phase>generate-test-sources</phase>
-                  <configuration>
-                     <tasks>
-                        <echo>copy files gnerated by JAXB to test source directory</echo>
-                        <copy todir="src/test/java">
-                           <fileset dir="target/generated-test-sources">
-                              <include name="org/**" />
-                           </fileset>
-                        </copy>
-                     </tasks>
-                  </configuration>
-               </execution>
-            </executions>
-         </plugin>
       </plugins>
    </build>
 </project>



More information about the exo-jcr-commits mailing list