Home | History | Annotate | Download | only in tck
      1 <?xml version="1.0" encoding="ISO-8859-1"?>
      2 <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">
      3   <modelVersion>4.0.0</modelVersion>
      4   <parent>
      5     <groupId>org.objenesis</groupId>
      6     <artifactId>objenesis-parent</artifactId>
      7     <version>2.5</version>
      8   </parent>
      9   <artifactId>objenesis-tck</artifactId>
     10 
     11   <name>Objenesis TCK</name>
     12   <description>Objenesis' TCK</description>
     13   <url>http://objenesis.org</url>
     14 
     15   <properties>
     16     <paxexam.version>3.5.0</paxexam.version>
     17   </properties>
     18 
     19   <dependencies>
     20     <dependency>
     21       <groupId>org.objenesis</groupId>
     22       <artifactId>objenesis</artifactId>
     23       <version>${project.version}</version>
     24     </dependency>
     25 
     26     <!-- Dependencies below are for the OSGi test -->
     27 
     28     <dependency>
     29       <groupId>org.ops4j.pax.exam</groupId>
     30       <artifactId>pax-exam-junit4</artifactId>
     31       <version>${paxexam.version}</version>
     32       <scope>test</scope>
     33       <exclusions>
     34         <!-- Use the one bundled in Felix -->
     35         <exclusion>
     36           <groupId>org.osgi</groupId>
     37           <artifactId>org.osgi.core</artifactId>
     38         </exclusion>
     39       </exclusions>
     40     </dependency>
     41     <dependency>
     42       <groupId>org.ops4j.pax.exam</groupId>
     43       <artifactId>pax-exam-container-native</artifactId>
     44       <version>${paxexam.version}</version>
     45       <scope>test</scope>
     46     </dependency>
     47     <dependency>
     48       <groupId>org.ops4j.pax.exam</groupId>
     49       <artifactId>pax-exam-link-mvn</artifactId>
     50       <version>${paxexam.version}</version>
     51       <scope>test</scope>
     52     </dependency>
     53 
     54     <!-- And this is our OSGi container -->
     55     <dependency>
     56       <groupId>org.apache.felix</groupId>
     57       <artifactId>org.apache.felix.framework</artifactId>
     58       <version>5.6.1</version>
     59       <scope>test</scope>
     60     </dependency>
     61 
     62     <!-- This is just to have a nice logging -->
     63     <dependency>
     64       <groupId>ch.qos.logback</groupId>
     65       <artifactId>logback-classic</artifactId>
     66       <version>1.1.7</version>
     67       <scope>test</scope>
     68     </dependency>
     69 
     70   </dependencies>
     71 
     72   <build>
     73     <plugins>
     74       <plugin>
     75         <groupId>com.keyboardsamurais.maven</groupId>
     76         <artifactId>maven-timestamp-plugin</artifactId>
     77       </plugin>
     78       <plugin>
     79         <groupId>com.mycila.maven-license-plugin</groupId>
     80         <artifactId>maven-license-plugin</artifactId>
     81       </plugin>
     82       <plugin>
     83         <artifactId>maven-remote-resources-plugin</artifactId>
     84       </plugin>
     85       <plugin>
     86         <artifactId>maven-jar-plugin</artifactId>
     87         <configuration>
     88           <archive>
     89             <manifest>
     90               <mainClass>org.objenesis.tck.Main</mainClass>
     91             </manifest>
     92           </archive>
     93         </configuration>
     94       </plugin>
     95       <plugin>
     96         <artifactId>maven-shade-plugin</artifactId>
     97         <configuration>
     98           <createDependencyReducedPom>false</createDependencyReducedPom>
     99         </configuration>
    100         <executions>
    101           <execution>
    102             <phase>package</phase>
    103             <goals>
    104               <goal>shade</goal>
    105             </goals>
    106           </execution>
    107         </executions>
    108       </plugin>
    109       <plugin>
    110         <artifactId>maven-javadoc-plugin</artifactId>
    111       </plugin>
    112     </plugins>
    113   </build>
    114 
    115   <profiles>
    116     <profile>
    117       <id>jvm-test</id>
    118       <build>
    119         <plugins>
    120           <plugin>
    121             <artifactId>maven-surefire-plugin</artifactId>
    122             <executions>
    123               <execution>
    124                 <id>specific-jvm</id>
    125                 <goals>
    126                   <goal>test</goal>
    127                 </goals>
    128                 <phase>test</phase>
    129                 <configuration>
    130                   <jvm>${my.jvm}</jvm>
    131                 </configuration>
    132               </execution>
    133             </executions>
    134           </plugin>
    135         </plugins>
    136       </build>
    137     </profile>
    138     <profile>
    139       <!-- Activate to perform integration tests -->
    140       <id>full</id>
    141       <build>
    142         <plugins>
    143           <plugin>
    144             <groupId>org.codehaus.mojo</groupId>
    145             <artifactId>exec-maven-plugin</artifactId>
    146             <inherited>false</inherited>
    147             <configuration>
    148               <executable>java</executable>
    149               <arguments>
    150                 <argument>-jar</argument>
    151                 <argument>${project.build.directory}/${project.build.finalName}.jar</argument>
    152               </arguments>
    153             </configuration>
    154             <executions>
    155               <execution>
    156                 <id>test-release</id>
    157                 <phase>integration-test</phase>
    158                 <goals>
    159                   <goal>exec</goal>
    160                 </goals>
    161               </execution>
    162             </executions>
    163           </plugin>
    164         </plugins>
    165       </build>
    166     </profile>
    167   </profiles>
    168 </project>
    169