blob: ae8a45afba5d4153086b5afd7fb78f921584b59d [file] [log] [blame]
Guillaume Nodet05fac962009-04-27 10:01:58 +00001<?xml version="1.0" encoding="UTF-8"?>
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
4<!--
5
6 Licensed to the Apache Software Foundation (ASF) under one or more
7 contributor license agreements. See the NOTICE file distributed with
8 this work for additional information regarding copyright ownership.
9 The ASF licenses this file to You under the Apache License, Version 2.0
10 (the "License"); you may not use this file except in compliance with
11 the License. You may obtain a copy of the License at
12
13 http://www.apache.org/licenses/LICENSE-2.0
14
15 Unless required by applicable law or agreed to in writing, software
16 distributed under the License is distributed on an "AS IS" BASIS,
17 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 See the License for the specific language governing permissions and
19 limitations under the License.
20-->
21
22 <modelVersion>4.0.0</modelVersion>
23
24 <parent>
25 <groupId>org.apache.servicemix.kernel</groupId>
26 <artifactId>org.apache.servicemix.kernel.demos</artifactId>
27 <version>1.2.0-SNAPSHOT</version>
28 </parent>
29
30 <groupId>org.apache.servicemix.kernel.demos</groupId>
31 <artifactId>smx4web</artifactId>
32 <packaging>war</packaging>
33 <name>Apache ServiceMix Kernel :: Demos :: smx4web</name>
34
35 <properties>
36 <jetty.port>8080</jetty.port>
37 <jetty.version>6.1.12rc1</jetty.version>
38 <geronimo.servlet.version>1.1.2</geronimo.servlet.version>
39 </properties>
40
41 <dependencies>
42 <dependency>
43 <groupId>org.apache.servicemix.kernel</groupId>
44 <artifactId>org.apache.servicemix.kernel.main</artifactId>
45 </dependency>
46 <dependency>
47 <groupId>org.apache.servicemix.kernel</groupId>
48 <artifactId>apache-servicemix-kernel</artifactId>
49 <type>zip</type>
50 <exclusions>
51 <exclusion>
52 <groupId>org.apache.servicemix.kernel</groupId>
53 <artifactId>org.apache.servicemix.kernel.client</artifactId>
54 </exclusion>
55 <exclusion>
56 <groupId>org.apache.servicemix.kernel</groupId>
57 <artifactId>org.apache.servicemix.kernel.filemonitor</artifactId>
58 </exclusion>
59 <exclusion>
60 <groupId>org.apache.servicemix.kernel</groupId>
61 <artifactId>org.apache.servicemix.kernel.spring</artifactId>
62 </exclusion>
63 <exclusion>
64 <groupId>org.apache.servicemix.kernel.gshell</groupId>
65 <artifactId>org.apache.servicemix.kernel.gshell.core</artifactId>
66 </exclusion>
67 <exclusion>
68 <groupId>org.apache.servicemix.kernel.gshell</groupId>
69 <artifactId>org.apache.servicemix.kernel.gshell.admin</artifactId>
70 </exclusion>
71 <exclusion>
72 <groupId>org.apache.servicemix.kernel.gshell</groupId>
73 <artifactId>org.apache.servicemix.kernel.gshell.obr</artifactId>
74 </exclusion>
75 <exclusion>
76 <groupId>org.apache.servicemix.kernel.gshell</groupId>
77 <artifactId>org.apache.servicemix.kernel.gshell.osgi</artifactId>
78 </exclusion>
79 <exclusion>
80 <groupId>org.apache.servicemix.kernel.gshell</groupId>
81 <artifactId>org.apache.servicemix.kernel.gshell.log</artifactId>
82 </exclusion>
83 <exclusion>
84 <groupId>org.apache.servicemix.kernel.gshell</groupId>
85 <artifactId>org.apache.servicemix.kernel.gshell.features</artifactId>
86 </exclusion>
87 <exclusion>
88 <groupId>org.apache.servicemix.kernel.gshell</groupId>
89 <artifactId>org.apache.servicemix.kernel.gshell.config</artifactId>
90 </exclusion>
91 <exclusion>
92 <groupId>org.apache.servicemix.kernel.gshell</groupId>
93 <artifactId>org.apache.servicemix.kernel.gshell.packages</artifactId>
94 </exclusion>
95 <exclusion>
96 <groupId>org.apache.servicemix.kernel.jaas</groupId>
97 <artifactId>org.apache.servicemix.kernel.jaas.config</artifactId>
98 </exclusion>
99 <exclusion>
100 <groupId>org.apache.servicemix.kernel.jaas</groupId>
101 <artifactId>org.apache.servicemix.kernel.jaas.keystore</artifactId>
102 </exclusion>
103 <exclusion>
104 <groupId>org.springframework.osgi</groupId>
105 <artifactId>spring-osgi-extender</artifactId>
106 </exclusion>
107 <exclusion>
108 <groupId>org.springframework.osgi</groupId>
109 <artifactId>spring-osgi-core</artifactId>
110 </exclusion>
111 <exclusion>
112 <groupId>org.springframework.osgi</groupId>
113 <artifactId>spring-osgi-io</artifactId>
114 </exclusion>
115 <exclusion>
116 <groupId>org.springframework</groupId>
117 <artifactId>spring-context</artifactId>
118 </exclusion>
119 <exclusion>
120 <groupId>org.springframework</groupId>
121 <artifactId>spring-beans</artifactId>
122 </exclusion>
123 <exclusion>
124 <groupId>org.springframework</groupId>
125 <artifactId>spring-core</artifactId>
126 </exclusion>
127 <exclusion>
128 <groupId>org.springframework</groupId>
129 <artifactId>spring-aop</artifactId>
130 </exclusion>
131 <exclusion>
132 <groupId>org.apache.felix</groupId>
133 <artifactId>org.apache.felix.bundlerepository</artifactId>
134 </exclusion>
135 <exclusion>
136 <groupId>org.apache.felix</groupId>
137 <artifactId>org.apache.felix.configadmin</artifactId>
138 </exclusion>
139 <exclusion>
140 <groupId>org.apache.felix</groupId>
141 <artifactId>org.apache.felix.prefs</artifactId>
142 </exclusion>
143 <exclusion>
144 <groupId>org.apache.felix</groupId>
145 <artifactId>org.osgi.compendium</artifactId>
146 </exclusion>
147 <exclusion>
148 <groupId>org.apache.servicemix.bundles</groupId>
149 <artifactId>org.apache.servicemix.bundles.mina</artifactId>
150 </exclusion>
151 <exclusion>
152 <groupId>org.apache.servicemix.bundles</groupId>
153 <artifactId>org.apache.servicemix.bundles.aopalliance</artifactId>
154 </exclusion>
155 <exclusion>
156 <groupId>org.apache.servicemix.bundles</groupId>
157 <artifactId>org.apache.servicemix.bundles.asm</artifactId>
158 </exclusion>
159 <exclusion>
160 <groupId>org.apache.servicemix.bundles</groupId>
161 <artifactId>org.apache.servicemix.bundles.cglib</artifactId>
162 </exclusion>
163 <exclusion>
164 <groupId>org.apache.servicemix.bundles</groupId>
165 <artifactId>org.apache.servicemix.bundles.ant</artifactId>
166 </exclusion>
167 <exclusion>
168 <groupId>org.ops4j.pax.logging</groupId>
169 <artifactId>pax-logging-service</artifactId>
170 </exclusion>
171 <exclusion>
172 <groupId>org.ops4j.pax.logging</groupId>
173 <artifactId>pax-logging-api</artifactId>
174 </exclusion>
175 <exclusion>
176 <groupId>org.ops4j.pax.url</groupId>
177 <artifactId>pax-url-mvn</artifactId>
178 </exclusion>
179 </exclusions>
180 </dependency>
181 <dependency>
182 <groupId>org.apache.geronimo.specs</groupId>
183 <artifactId>geronimo-servlet_2.5_spec</artifactId>
184 <scope>provided</scope>
185 </dependency>
186 </dependencies>
187
188 <build>
189 <plugins>
190 <plugin>
191 <groupId>org.apache.maven.plugins</groupId>
192 <artifactId>maven-compiler-plugin</artifactId>
193 <configuration>
194 <source>1.5</source>
195 <target>1.5</target>
196 </configuration>
197 </plugin>
198 <plugin>
199 <groupId>org.apache.maven.plugins</groupId>
200 <artifactId>maven-war-plugin</artifactId>
201 <version>2.1-beta-1</version>
202 <configuration>
203 <warSourceDirectory>src/main/webapp/</warSourceDirectory>
204 <webResources>
205 <resource>
206 <directory>target/kernel</directory>
207 </resource>
208 </webResources>
209 </configuration>
210 </plugin>
211 <plugin>
212 <groupId>org.mortbay.jetty</groupId>
213 <artifactId>maven-jetty-plugin</artifactId>
214 <version>${jetty.version}</version>
215 <configuration>
216 <connectors>
217 <connector implementation="org.mortbay.jetty.nio.SelectChannelConnector">
218 <port>${jetty.port}</port>
219 <maxIdleTime>60000</maxIdleTime>
220 </connector>
221 </connectors>
222 <systemProperties>
223 <!-- enable easy connection to JConsole -->
224 <systemProperty>
225 <name>com.sun.management.jmxremote</name>
226 <value></value>
227 </systemProperty>
228 </systemProperties>
229 <scanIntervalSeconds>10</scanIntervalSeconds>
230 <webAppSourceDirectory>${project.build.directory}/${project.build.finalName}</webAppSourceDirectory>
231 </configuration>
232 </plugin>
233 <plugin>
234 <groupId>org.apache.maven.plugins</groupId>
235 <artifactId>maven-dependency-plugin</artifactId>
236 <version>2.0</version>
237 <executions>
238 <execution>
239 <id>unpack-unix</id>
240 <phase>generate-resources</phase>
241 <goals>
242 <goal>unpack</goal>
243 </goals>
244 <configuration>
245 <artifactItems>
246 <artifactItem>
247 <groupId>org.apache.servicemix.kernel</groupId>
248 <artifactId>apache-servicemix-kernel</artifactId>
249 <type>zip</type>
250 <overWrite>true</overWrite>
251 <outputDirectory>${project.build.directory}/kernel/WEB-INF</outputDirectory>
252 <excludes>**/lib/*,**/*.txt,**/bin/*,**/demos/**,**/lib,**/bin,**/demos</excludes>
253 </artifactItem>
254 </artifactItems>
255 </configuration>
256 </execution>
257 </executions>
258 </plugin>
259 <plugin>
260 <groupId>org.apache.maven.plugins</groupId>
261 <artifactId>maven-antrun-plugin</artifactId>
262 <version>1.3</version>
263 <executions>
264 <execution>
265 <id>copy-kernel</id>
266 <phase>process-resources</phase>
267 <goals>
268 <goal>run</goal>
269 </goals>
270 <configuration>
271 <tasks>
272 <move todir="${project.build.directory}/kernel/WEB-INF/servicemix">
273 <fileset dir="${project.build.directory}/kernel/WEB-INF/apache-servicemix-kernel-${pom.version}"/>
274 </move>
275 </tasks>
276 </configuration>
277 </execution>
278 </executions>
279 </plugin>
280 </plugins>
281 </build>
282
283</project>