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.0-SNAPSHOT</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    <!-- These versions are also used to filter boot-bundles.properties -->
17    <log4j.version>1.2.17</log4j.version>
18    <spring.osgi.version>1.2.1</spring.osgi.version>
19    <slf4j.version>1.7.2</slf4j.version>
20  </properties>
21
22  <dependencies>
23    <dependency>
24      <groupId>org.objenesis</groupId>
25      <artifactId>objenesis</artifactId>
26      <version>${project.version}</version>
27    </dependency>
28
29    <!-- Dependencies below are for the OSGi test -->
30
31    <dependency>
32      <groupId>org.springframework.osgi</groupId>
33      <artifactId>spring-osgi-test</artifactId>
34      <version>${spring.osgi.version}</version>
35      <scope>test</scope>
36    </dependency>
37    <dependency>
38      <groupId>org.springframework.osgi</groupId>
39      <artifactId>spring-osgi-annotation</artifactId>
40      <version>${spring.osgi.version}</version>
41      <scope>test</scope>
42    </dependency>
43    <dependency>
44      <groupId>org.springframework.osgi</groupId>
45      <artifactId>spring-osgi-extender</artifactId>
46      <version>${spring.osgi.version}</version>
47      <scope>test</scope>
48    </dependency>
49
50    <!-- These are just to have a nice logging -->
51    <dependency>
52      <groupId>org.slf4j</groupId>
53      <artifactId>jcl-over-slf4j</artifactId>
54      <version>${slf4j.version}</version>
55      <scope>test</scope>
56    </dependency>
57    <dependency>
58      <groupId>org.slf4j</groupId>
59      <artifactId>slf4j-api</artifactId>
60      <version>${slf4j.version}</version>
61      <scope>test</scope>
62    </dependency>
63    <dependency>
64      <groupId>org.slf4j</groupId>
65      <artifactId>slf4j-log4j12</artifactId>
66      <version>${slf4j.version}</version>
67      <scope>test</scope>
68    </dependency>
69    <dependency>
70      <groupId>log4j</groupId>
71      <artifactId>log4j</artifactId>
72      <version>${log4j.version}</version>
73      <scope>test</scope>
74    </dependency>
75
76    <!-- And this is our Equinox implementation -->
77    <dependency>
78      <groupId>org.eclipse</groupId>
79      <artifactId>org.eclipse.osgi</artifactId>
80      <version>3.8.0.v20120529-1548</version>
81      <scope>test</scope>
82    </dependency>
83  </dependencies>
84
85  <build>
86    <testResources>
87      <testResource>
88        <directory>test</directory>
89        <filtering>true</filtering>
90      </testResource>
91    </testResources>
92    <plugins>
93      <plugin>
94        <groupId>com.keyboardsamurais.maven</groupId>
95        <artifactId>maven-timestamp-plugin</artifactId>
96      </plugin>
97      <plugin>
98        <groupId>com.google.code.maven-license-plugin</groupId>
99        <artifactId>maven-license-plugin</artifactId>
100      </plugin>
101      <plugin>
102        <groupId>org.apache.maven.plugins</groupId>
103        <artifactId>maven-remote-resources-plugin</artifactId>
104      </plugin>
105      <plugin>
106        <groupId>org.apache.maven.plugins</groupId>
107        <artifactId>maven-jar-plugin</artifactId>
108        <configuration>
109          <archive>
110            <manifest>
111              <mainClass>org.objenesis.tck.Main</mainClass>
112            </manifest>
113          </archive>
114        </configuration>
115      </plugin>
116      <plugin>
117        <groupId>org.apache.maven.plugins</groupId>
118        <artifactId>maven-shade-plugin</artifactId>
119        <version>1.6</version>
120        <executions>
121          <execution>
122            <phase>package</phase>
123            <goals>
124              <goal>shade</goal>
125            </goals>
126          </execution>
127        </executions>
128      </plugin>
129      <plugin>
130        <groupId>org.apache.maven.plugins</groupId>
131        <artifactId>maven-javadoc-plugin</artifactId>
132        <configuration>
133          <links>
134            <link>http://objenesis.googlecode.com/svn/docs/apidocs/</link>
135          </links>
136        </configuration>
137      </plugin>
138    </plugins>
139  </build>
140
141  <profiles>
142    <profile>
143      <id>jvm-test</id>
144      <build>
145        <plugins>
146          <plugin>
147            <artifactId>maven-surefire-plugin</artifactId>
148            <executions>
149              <execution>
150                <id>Sun 1.3</id>
151                <goals>
152                  <goal>test</goal>
153                </goals>
154                <phase>test</phase>
155                <configuration>
156                  <jvm>${sun_jdk1_3.jvm}</jvm>
157                </configuration>
158              </execution>
159              <execution>
160                <id>Sun 1.4</id>
161                <goals>
162                  <goal>test</goal>
163                </goals>
164                <phase>test</phase>
165                <configuration>
166                  <jvm>${sun_jdk1_4.jvm}</jvm>
167                </configuration>
168              </execution>
169              <execution>
170                <id>Sun 1.5</id>
171                <goals>
172                  <goal>test</goal>
173                </goals>
174                <phase>test</phase>
175                <configuration>
176                  <jvm>${sun_jdk1_5.jvm}</jvm>
177                </configuration>
178              </execution>
179              <execution>
180                <id>Sun 1.6</id>
181                <goals>
182                  <goal>test</goal>
183                </goals>
184                <phase>test</phase>
185                <configuration>
186                  <jvm>${sun_jdk1_6.jvm}</jvm>
187                </configuration>
188              </execution>
189              <execution>
190                <id>Sun 1.7</id>
191                <goals>
192                  <goal>test</goal>
193                </goals>
194                <phase>test</phase>
195                <configuration>
196                  <jvm>${sun_jdk1_7.jvm}</jvm>
197                </configuration>
198              </execution>
199              <execution>
200                <id>JRockit for Java 1.3</id>
201                <goals>
202                  <goal>test</goal>
203                </goals>
204                <phase>test</phase>
205                <configuration>
206                  <jvm>${jrockit1_3.jvm}</jvm>
207                </configuration>
208              </execution>
209              <execution>
210                <id>JRockit for Java 1.4</id>
211                <goals>
212                  <goal>test</goal>
213                </goals>
214                <phase>test</phase>
215                <configuration>
216                  <jvm>${jrockit1_4.jvm}</jvm>
217                </configuration>
218              </execution>
219              <execution>
220                <id>JRockit for Java 1.5</id>
221                <goals>
222                  <goal>test</goal>
223                </goals>
224                <phase>test</phase>
225                <configuration>
226                  <jvm>${jrockit1_5.jvm}</jvm>
227                </configuration>
228              </execution>
229              <execution>
230                <id>JRockit for Java 1.6</id>
231                <goals>
232                  <goal>test</goal>
233                </goals>
234                <phase>test</phase>
235                <configuration>
236                  <jvm>${jrockit1_6.jvm}</jvm>
237                </configuration>
238              </execution>
239            </executions>
240          </plugin>
241        </plugins>
242      </build>
243    </profile>
244    <profile>
245      <!-- Activate to create a complete release -->
246      <id>release</id>
247      <build>
248        <plugins>
249          <plugin>
250            <groupId>org.codehaus.mojo</groupId>
251            <artifactId>exec-maven-plugin</artifactId>
252            <version>1.2.1</version>
253            <inherited>false</inherited>
254            <configuration>
255              <executable>java</executable>
256              <arguments>
257                <argument>-jar</argument>
258                <argument>${project.build.directory}\${project.build.finalName}.jar</argument>
259              </arguments>
260            </configuration>
261            <executions>
262              <execution>
263                <id>test-release</id>
264                <phase>integration-test</phase>
265                <goals>
266                  <goal>exec</goal>
267                </goals>
268              </execution>
269            </executions>
270          </plugin>
271        </plugins>
272      </build>
273    </profile>
274  </profiles>
275</project>
276