| 20434 |
alitokmen |
1 |
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
2 |
<!--
|
|
|
3 |
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
|
|
4 |
- JOnAS: Java(TM) Open Application Server
|
|
|
5 |
- Copyright (C) 2010 Bull S.A.S.
|
|
|
6 |
- Contact: jonas-team@ow2.org
|
|
|
7 |
-
|
|
|
8 |
- This library is free software; you can redistribute it and/or
|
|
|
9 |
- modify it under the terms of the GNU Lesser General Public
|
|
|
10 |
- License as published by the Free Software Foundation; either
|
|
|
11 |
- version 2.1 of the License, or any later version.
|
|
|
12 |
-
|
|
|
13 |
- This library is distributed in the hope that it will be useful,
|
|
|
14 |
- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
15 |
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
16 |
- Lesser General Public License for more details.
|
|
|
17 |
-
|
|
|
18 |
- You should have received a copy of the GNU Lesser General Public
|
|
|
19 |
- License along with this library; if not, write to the Free Software
|
|
|
20 |
- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
|
|
21 |
- USA
|
|
|
22 |
-
|
|
|
23 |
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
|
|
24 |
- $Id: pom.xml 20458 2010-10-13 14:13:29Z alitokmen $
|
|
|
25 |
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
|
|
26 |
-->
|
|
|
27 |
<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">
|
|
|
28 |
|
|
|
29 |
<parent>
|
|
|
30 |
<groupId>org.ow2</groupId>
|
|
|
31 |
<artifactId>ow2</artifactId>
|
|
|
32 |
<version>1.1</version>
|
|
|
33 |
</parent>
|
|
|
34 |
<modelVersion>4.0.0</modelVersion>
|
|
|
35 |
<groupId>org.ow2.jonas</groupId>
|
|
|
36 |
<artifactId>jonas-versions-servlet</artifactId>
|
|
|
37 |
<packaging>bundle</packaging>
|
| 20458 |
alitokmen |
38 |
<version>1.0.3</version>
|
| 20434 |
alitokmen |
39 |
<name>JOnAS versions OSGi servlet</name>
|
|
|
40 |
|
|
|
41 |
<properties>
|
|
|
42 |
<osgi.version>4.2.0</osgi.version>
|
|
|
43 |
<ipojo.version>1.6.0</ipojo.version>
|
|
|
44 |
<servlet.version>2.5</servlet.version>
|
|
|
45 |
<ow2-util.version>1.0.24</ow2-util.version>
|
|
|
46 |
<bundle-plugin.version>2.1.0</bundle-plugin.version>
|
| 20455 |
alitokmen |
47 |
|
|
|
48 |
<!-- Used for tests -->
|
|
|
49 |
<junit.version>4.7</junit.version>
|
|
|
50 |
<jonas.version>5.2.0-M2</jonas.version>
|
|
|
51 |
<cargo.version>1.0.3</cargo.version>
|
|
|
52 |
<build-helper.version>1.4</build-helper.version>
|
| 20434 |
alitokmen |
53 |
</properties>
|
|
|
54 |
|
| 20455 |
alitokmen |
55 |
<dependencies>
|
|
|
56 |
<dependency>
|
|
|
57 |
<groupId>javax.servlet</groupId>
|
|
|
58 |
<artifactId>servlet-api</artifactId>
|
|
|
59 |
<version>${servlet.version}</version>
|
|
|
60 |
</dependency>
|
|
|
61 |
<dependency>
|
|
|
62 |
<groupId>org.osgi</groupId>
|
|
|
63 |
<artifactId>org.osgi.compendium</artifactId>
|
|
|
64 |
<version>${osgi.version}</version>
|
|
|
65 |
</dependency>
|
|
|
66 |
<dependency>
|
|
|
67 |
<groupId>org.apache.felix</groupId>
|
|
|
68 |
<artifactId>org.apache.felix.ipojo.annotations</artifactId>
|
|
|
69 |
<version>${ipojo.version}</version>
|
|
|
70 |
</dependency>
|
|
|
71 |
<dependency>
|
|
|
72 |
<groupId>org.ow2.util</groupId>
|
|
|
73 |
<artifactId>util-ee-deploy-impl</artifactId>
|
|
|
74 |
<version>${ow2-util.version}</version>
|
|
|
75 |
</dependency>
|
|
|
76 |
|
|
|
77 |
<dependency>
|
|
|
78 |
<groupId>commons-io</groupId>
|
|
|
79 |
<artifactId>commons-io</artifactId>
|
|
|
80 |
<version>1.4</version>
|
|
|
81 |
<scope>test</scope>
|
|
|
82 |
</dependency>
|
|
|
83 |
<dependency>
|
|
|
84 |
<groupId>junit</groupId>
|
|
|
85 |
<artifactId>junit</artifactId>
|
|
|
86 |
<version>${junit.version}</version>
|
|
|
87 |
<scope>test</scope>
|
|
|
88 |
</dependency>
|
|
|
89 |
</dependencies>
|
|
|
90 |
|
| 20434 |
alitokmen |
91 |
<build>
|
|
|
92 |
<plugins>
|
|
|
93 |
<plugin>
|
|
|
94 |
<artifactId>maven-compiler-plugin</artifactId>
|
|
|
95 |
<configuration>
|
|
|
96 |
<source>1.5</source>
|
|
|
97 |
<target>1.5</target>
|
|
|
98 |
</configuration>
|
|
|
99 |
</plugin>
|
| 20457 |
alitokmen |
100 |
|
| 20434 |
alitokmen |
101 |
<plugin>
|
|
|
102 |
<groupId>org.apache.felix</groupId>
|
|
|
103 |
<artifactId>maven-bundle-plugin</artifactId>
|
|
|
104 |
<version>${bundle-plugin.version}</version>
|
|
|
105 |
<extensions>true</extensions>
|
| 20457 |
alitokmen |
106 |
<configuration>
|
|
|
107 |
<instructions>
|
|
|
108 |
<Implementation-Version>${project.version}</Implementation-Version>
|
|
|
109 |
</instructions>
|
|
|
110 |
</configuration>
|
| 20434 |
alitokmen |
111 |
</plugin>
|
| 20457 |
alitokmen |
112 |
|
| 20434 |
alitokmen |
113 |
<plugin>
|
|
|
114 |
<groupId>org.apache.felix</groupId>
|
|
|
115 |
<artifactId>maven-ipojo-plugin</artifactId>
|
|
|
116 |
<version>${ipojo.version}</version>
|
|
|
117 |
<configuration>
|
|
|
118 |
<ignoreAnnotations>false</ignoreAnnotations>
|
|
|
119 |
</configuration>
|
|
|
120 |
<executions>
|
|
|
121 |
<execution>
|
|
|
122 |
<goals>
|
|
|
123 |
<goal>ipojo-bundle</goal>
|
|
|
124 |
</goals>
|
|
|
125 |
</execution>
|
|
|
126 |
</executions>
|
|
|
127 |
</plugin>
|
| 20455 |
alitokmen |
128 |
|
|
|
129 |
<!--
|
|
|
130 |
Make sure tests always use randomly assigned and available ports
|
|
|
131 |
-->
|
|
|
132 |
<plugin>
|
|
|
133 |
<groupId>org.codehaus.mojo</groupId>
|
|
|
134 |
<artifactId>build-helper-maven-plugin</artifactId>
|
|
|
135 |
<version>${build-helper.version}</version>
|
|
|
136 |
<executions>
|
|
|
137 |
<execution>
|
|
|
138 |
<id>generate-port-numbers</id>
|
|
|
139 |
<phase>generate-test-sources</phase>
|
|
|
140 |
<goals>
|
|
|
141 |
<goal>reserve-network-port</goal>
|
|
|
142 |
</goals>
|
|
|
143 |
<configuration>
|
|
|
144 |
<portNames>
|
|
|
145 |
<portName>webcontainer.port</portName>
|
|
|
146 |
<portName>carol.port</portName>
|
|
|
147 |
</portNames>
|
|
|
148 |
</configuration>
|
|
|
149 |
</execution>
|
|
|
150 |
</executions>
|
|
|
151 |
</plugin>
|
|
|
152 |
|
|
|
153 |
<!-- Unpack the JOnAS assembly -->
|
|
|
154 |
<plugin>
|
|
|
155 |
<artifactId>maven-dependency-plugin</artifactId>
|
|
|
156 |
<executions>
|
|
|
157 |
<execution>
|
|
|
158 |
<id>unpack-assembly</id>
|
|
|
159 |
<phase>generate-test-resources</phase>
|
|
|
160 |
<goals>
|
|
|
161 |
<goal>unpack</goal>
|
|
|
162 |
</goals>
|
|
|
163 |
<configuration>
|
|
|
164 |
<artifactItems>
|
|
|
165 |
<artifactItem>
|
|
|
166 |
<groupId>org.ow2.jonas.assemblies.profiles</groupId>
|
|
|
167 |
<artifactId>jonas-full</artifactId>
|
|
|
168 |
<version>${jonas.version}</version>
|
|
|
169 |
<classifier>bin</classifier>
|
|
|
170 |
<type>zip</type>
|
|
|
171 |
<outputDirectory>${project.build.directory}</outputDirectory>
|
|
|
172 |
</artifactItem>
|
|
|
173 |
<artifactItem>
|
|
|
174 |
<groupId>org.ow2.jonas</groupId>
|
|
|
175 |
<artifactId>jonas-itests-applications-versioning</artifactId>
|
|
|
176 |
<version>${jonas.version}</version>
|
|
|
177 |
<outputDirectory>${project.build.directory}</outputDirectory>
|
|
|
178 |
</artifactItem>
|
|
|
179 |
</artifactItems>
|
|
|
180 |
<overWriteReleases>true</overWriteReleases>
|
|
|
181 |
<overWriteSnapshots>true</overWriteSnapshots>
|
|
|
182 |
</configuration>
|
|
|
183 |
</execution>
|
|
|
184 |
</executions>
|
|
|
185 |
</plugin>
|
|
|
186 |
|
|
|
187 |
<!-- Start and stop JOnAS with CARGO -->
|
|
|
188 |
<plugin>
|
|
|
189 |
<groupId>org.codehaus.cargo</groupId>
|
|
|
190 |
<artifactId>cargo-maven2-plugin</artifactId>
|
|
|
191 |
<version>${cargo.version}</version>
|
|
|
192 |
<executions>
|
|
|
193 |
<execution>
|
|
|
194 |
<id>start-jonas</id>
|
|
|
195 |
<phase>pre-integration-test</phase>
|
|
|
196 |
<goals>
|
|
|
197 |
<goal>start</goal>
|
|
|
198 |
</goals>
|
|
|
199 |
</execution>
|
|
|
200 |
<execution>
|
|
|
201 |
<id>stop-jonas</id>
|
|
|
202 |
<phase>post-integration-test</phase>
|
|
|
203 |
<goals>
|
|
|
204 |
<goal>stop</goal>
|
|
|
205 |
</goals>
|
|
|
206 |
</execution>
|
|
|
207 |
</executions>
|
|
|
208 |
<configuration>
|
|
|
209 |
<wait>false</wait>
|
|
|
210 |
<container>
|
|
|
211 |
<containerId>jonas5x</containerId>
|
|
|
212 |
<type>installed</type>
|
|
|
213 |
<home>${project.build.directory}/jonas-full-${jonas.version}</home>
|
|
|
214 |
</container>
|
|
|
215 |
<configuration>
|
|
|
216 |
<type>standalone</type>
|
|
|
217 |
<home>${project.build.directory}/jonas-base</home>
|
|
|
218 |
<properties>
|
|
|
219 |
<cargo.hostname>localhost</cargo.hostname>
|
|
|
220 |
<cargo.rmi.port>${carol.port}</cargo.rmi.port>
|
|
|
221 |
<cargo.servlet.port>${webcontainer.port}</cargo.servlet.port>
|
|
|
222 |
<cargo.protocol>http</cargo.protocol>
|
|
|
223 |
<cargo.jonas.services.list>web,versioning,depmonitor</cargo.jonas.services.list>
|
|
|
224 |
</properties>
|
|
|
225 |
<!--
|
|
|
226 |
We cannot yet use <deployables> yet for the own project's bundle.
|
|
|
227 |
That'll be available as of CARGO 1.0.4.
|
|
|
228 |
-->
|
|
|
229 |
<files>
|
|
|
230 |
<file>
|
| 20458 |
alitokmen |
231 |
<file>${project.build.directory}/${project.artifactId}-${project.version}.jar</file>
|
| 20455 |
alitokmen |
232 |
<todir>deploy</todir>
|
|
|
233 |
</file>
|
|
|
234 |
<file>
|
|
|
235 |
<file>${project.build.directory}/version1.0.0/test-versioning.ear</file>
|
|
|
236 |
<todir>deploy</todir>
|
|
|
237 |
</file>
|
|
|
238 |
<file>
|
|
|
239 |
<file>${project.build.directory}/version2.0.0/test-versioning.ear</file>
|
| 20458 |
alitokmen |
240 |
<tofile>deploy/test-versioning-version2.0.0.ear</tofile>
|
| 20455 |
alitokmen |
241 |
</file>
|
|
|
242 |
</files>
|
|
|
243 |
</configuration>
|
|
|
244 |
</configuration>
|
|
|
245 |
</plugin>
|
|
|
246 |
|
|
|
247 |
<!-- Run integration tests -->
|
|
|
248 |
<plugin>
|
|
|
249 |
<artifactId>maven-surefire-plugin</artifactId>
|
|
|
250 |
<configuration>
|
|
|
251 |
<skip>true</skip>
|
|
|
252 |
</configuration>
|
|
|
253 |
<executions>
|
|
|
254 |
<execution>
|
|
|
255 |
<id>surefire-it</id>
|
|
|
256 |
<phase>integration-test</phase>
|
|
|
257 |
<goals>
|
|
|
258 |
<goal>test</goal>
|
|
|
259 |
</goals>
|
|
|
260 |
<configuration>
|
|
|
261 |
<systemProperties>
|
|
|
262 |
<property>
|
|
|
263 |
<name>jonas.version</name>
|
|
|
264 |
<value>${jonas.version}</value>
|
|
|
265 |
</property>
|
|
|
266 |
<property>
|
|
|
267 |
<name>project.version</name>
|
|
|
268 |
<value>${project.version}</value>
|
|
|
269 |
</property>
|
|
|
270 |
<property>
|
|
|
271 |
<name>webcontainer.port</name>
|
|
|
272 |
<value>${webcontainer.port}</value>
|
|
|
273 |
</property>
|
|
|
274 |
</systemProperties>
|
|
|
275 |
<skip>false</skip>
|
|
|
276 |
</configuration>
|
|
|
277 |
</execution>
|
|
|
278 |
</executions>
|
|
|
279 |
</plugin>
|
| 20434 |
alitokmen |
280 |
</plugins>
|
|
|
281 |
</build>
|
|
|
282 |
|
| 20456 |
alitokmen |
283 |
<prerequisites>
|
|
|
284 |
<maven>2.1.0</maven>
|
|
|
285 |
</prerequisites>
|
|
|
286 |
|
| 20434 |
alitokmen |
287 |
<scm>
|
| 20458 |
alitokmen |
288 |
<connection>scm:svn:svn://svn.forge.objectweb.org/svnroot/jonas/sub-projects/jonas-versions-servlet/tags/jonas-versions-servlet-1.0.3</connection>
|
|
|
289 |
<developerConnection>scm:svn:svn+ssh://${maven.username}@svn.forge.objectweb.org/svnroot/jonas/sub-projects/jonas-versions-servlet/tags/jonas-versions-servlet-1.0.3</developerConnection>
|
|
|
290 |
<url>http://websvn.ow2.org/listing.php?repname=jonas&path=/sub-projects/jonas-versions-servlet/tags/jonas-versions-servlet-1.0.3?repname=jonas&path=/sub-projects/jonas-versions-servlet/trunk</url>
|
| 20434 |
alitokmen |
291 |
</scm>
|
|
|
292 |
</project>
|