Author: cwiklik
Date: Tue Nov  4 16:02:20 2014
New Revision: 1636624

URL: http://svn.apache.org/r1636624
Log:
UIMA-4087 modified to copy jars to known location before tests are run

Modified:
    uima/sandbox/uima-ducc/trunk/uima-ducc-container/pom.xml

Modified: uima/sandbox/uima-ducc/trunk/uima-ducc-container/pom.xml
URL: 
http://svn.apache.org/viewvc/uima/sandbox/uima-ducc/trunk/uima-ducc-container/pom.xml?rev=1636624&r1=1636623&r2=1636624&view=diff
==============================================================================
--- uima/sandbox/uima-ducc/trunk/uima-ducc-container/pom.xml (original)
+++ uima/sandbox/uima-ducc/trunk/uima-ducc-container/pom.xml Tue Nov  4 
16:02:20 2014
@@ -71,5 +71,177 @@
                </dependency>
        </dependencies>
   
+       <build>
+               <pluginManagement>
+                  <plugins>
+                     <plugin>
+               <groupId>org.eclipse.m2e</groupId>
+               <artifactId>lifecycle-mapping</artifactId>
+               <version>1.0.0</version>
+                               <configuration>
+                                   <lifecycleMappingMetadata>
+                                      <pluginExecutions>
+                                         <pluginExecution>
+                                            <pluginExecutionFilter>
+                                               
<groupId>org.apache.uima</groupId>
+                                
<artifactId>uima-build-helper-maven-plugin</artifactId>
+                                               
<versionRange>[5,)</versionRange>
+                                               <goals>
+                                                  
<goal>copy-from-apache-dist</goal>
+                                               </goals>   
+                                            
+                                            </pluginExecutionFilter>
+                                            <action>
+                                                <ignore/>
+                                            </action>    
+                                         </pluginExecution>
+                                         
+                                         <pluginExecution>
+                                            <pluginExecutionFilter>
+                                               
<groupId>org.apache.maven.plugins</groupId>
+                                
<artifactId>maven-dependency-plugin</artifactId>
+                                               
<versionRange>[2.3,)</versionRange>
+                                               <goals>
+                                                  <goal>copy</goal>
+                                               </goals>   
+                                            
+                                            </pluginExecutionFilter>
+                                            <action>
+                                                <ignore/>
+                                            </action>    
+                                         </pluginExecution>
+                                      </pluginExecutions>
+                                   </lifecycleMappingMetadata>
+                               </configuration>                      
+                     </plugin>
+                  </plugins>
+               </pluginManagement>
+               
+               <plugins>
+               <plugin>
+               <groupId>org.apache.uima</groupId>
+               <artifactId>uima-build-helper-maven-plugin</artifactId>
+               <executions>
+               <execution>
+                  <id>foo</id>
+                  <phase>validate</phase>
+                  <goals><goal>copy-from-apache-dist</goal></goals>
+                  <configuration>
+                     <version>${org.apache.uima.version}</version>
+                     <artifactId>uimaj</artifactId>
+                  </configuration>
+               </execution>
+               <execution>
+                  <id>bar</id>
+                  <phase>validate</phase>
+                  <goals><goal>copy-from-apache-dist</goal></goals>
+                  <configuration>
+                     <version>${org.apache.uima.as.version}</version>
+                     <artifactId>uima-as</artifactId>
+                     <type>tar.gz</type>
+                  </configuration>
+               </execution>
+               
+               </executions> 
+            </plugin>
+
+
+                       <plugin>
+                       
+                               <groupId>org.apache.maven.plugins</groupId>
+                               <artifactId>maven-dependency-plugin</artifactId>
+                               <executions>
+                                   <execution>
+                      <!-- use the dependency:unpack goal to unpack the 
+                         base binary uimaj sdk distribution -->
+                      <id>unpack Uimaj Bin</id>
+                      <phase>validate</phase>
+                      <goals><goal>unpack</goal></goals>
+                      <configuration>
+                        <overWriteIfNewer>true</overWriteIfNewer>
+                        <artifactItems>
+                          <artifactItem>
+                            <groupId>org.apache.uima</groupId>
+                            <artifactId>uimaj</artifactId>
+                            <version>${org.apache.uima.version}</version>
+                            <type>zip</type>
+                            <classifier>bin</classifier>
+                            
<outputDirectory>${project.build.directory}/uimaj</outputDirectory>
+                          </artifactItem>
+                        </artifactItems>
+                      </configuration>
+                    </execution>
+          
+                    <execution>
+                      <!-- use the dependency:unpack goal to unpack the 
+                         base binary uima-as distribution -->
+                      <id>unpack uima-as Bin</id>
+                      <phase>validate</phase>
+                      <goals><goal>unpack</goal></goals>
+                      <configuration>
+                        <overWriteIfNewer>true</overWriteIfNewer>
+                        <artifactItems>
+                          <artifactItem>
+                            <groupId>org.apache.uima</groupId>
+                            <artifactId>uima-as</artifactId>
+                            <version>${org.apache.uima.as.version}</version>
+                            <type>tar.gz</type>
+                            <classifier>bin</classifier>
+                            
<outputDirectory>${project.build.directory}/uima-as</outputDirectory>
+                          </artifactItem>
+                        </artifactItems>
+                      </configuration>
+                    </execution>
+                    
+                    <execution>
+                      <!-- use the dependency:copy goal to copy 
+                        xstream for junit testing -->
+                      <id>copy xstream</id>
+                      <phase>process-test-resources</phase>
+                      <goals><goal>copy</goal></goals>
+                      <configuration>
+                        <overWriteIfNewer>true</overWriteIfNewer>
+                        <artifactItems>
+                          <artifactItem>
+                            <groupId>com.thoughtworks.xstream</groupId>
+                            <artifactId>xstream</artifactId>
+                            <version>${xstream.version}</version>
+                            <type>jar</type>
+                            
<outputDirectory>${project.build.directory}/test-classes</outputDirectory>
+                          </artifactItem>
+                        </artifactItems>
+                      </configuration>
+                    </execution>                    
+                    
+                    </executions>
+                    </plugin>
+                    
+                    <plugin> 
+                    <groupId>org.apache.maven.plugins</groupId>
+                     <artifactId>maven-antrun-plugin</artifactId> 
+                     <!-- JUnit tests require uima,uima-as,uima-ducc-user, and 
xstream jars. These jars are loaded
+                          by a custom classloader to isolate uima related 
stuff from the rest of DUCC -->
+                     <executions> 
+                        <execution> 
+                           <id>copy-jars-for-junit-testing</id> 
+                           <phase>process-test-resources</phase> 
+                           <goals> 
+                             <goal>run</goal> 
+                           </goals> 
+                           <configuration> 
+                             <target> 
+                                <copy 
file="${basedir}/target/uimaj/apache-uima/lib/uima-core.jar" 
tofile="${basedir}/target/test-classes/uimaj-core.jar"/>
+                                <copy 
file="${basedir}/target/uima-as/apache-uima-as-${org.apache.uima.as.version}/lib/uimaj-as-core.jar"
 tofile="${basedir}/target/test-classes/uimaj-as-core.jar"/>
+                                <copy 
file="../uima-ducc-user/target/uima-ducc-user-${version}.jar" 
tofile="${basedir}/target/test-classes/uima-ducc-user.jar"/>
+                             </target> 
+                           </configuration> 
+                        </execution> 
+                    </executions> 
+                 </plugin> 
+                    
+               </plugins>
+               
+       </build>
+               
 
 </project>


Reply via email to