blob: b3b678995662b95cfb34d4e71f1a0304ece2fd91 [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>
Gert Vanthienenf54a8392009-05-02 19:57:13 +000025 <groupId>org.apache.felix.karaf</groupId>
26 <artifactId>org.apache.felix.karaf.demos</artifactId>
Guillaume Nodet05fac962009-04-27 10:01:58 +000027 <version>1.2.0-SNAPSHOT</version>
28 </parent>
29
Gert Vanthienenf54a8392009-05-02 19:57:13 +000030 <groupId>org.apache.felix.karaf.demos</groupId>
Guillaume Nodet05fac962009-04-27 10:01:58 +000031 <artifactId>smx4web</artifactId>
32 <packaging>war</packaging>
Gert Vanthienenf54a8392009-05-02 19:57:13 +000033 <name>Apache Felix Karaf :: Demos :: smx4web</name>
Guillaume Nodet05fac962009-04-27 10:01:58 +000034
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>
Gert Vanthienenf54a8392009-05-02 19:57:13 +000043 <groupId>org.apache.felix.karaf</groupId>
44 <artifactId>org.apache.felix.karaf.main</artifactId>
Guillaume Nodet05fac962009-04-27 10:01:58 +000045 </dependency>
46 <dependency>
Gert Vanthienenf54a8392009-05-02 19:57:13 +000047 <groupId>org.apache.felix.karaf</groupId>
48 <artifactId>apache-felix-karaf</artifactId>
Guillaume Nodet05fac962009-04-27 10:01:58 +000049 <type>zip</type>
50 <exclusions>
51 <exclusion>
Gert Vanthienenf54a8392009-05-02 19:57:13 +000052 <groupId>org.apache.felix.karaf</groupId>
53 <artifactId>org.apache.felix.karaf.client</artifactId>
Guillaume Nodet05fac962009-04-27 10:01:58 +000054 </exclusion>
55 <exclusion>
Gert Vanthienenf54a8392009-05-02 19:57:13 +000056 <groupId>org.apache.felix.karaf</groupId>
57 <artifactId>org.apache.felix.karaf.filemonitor</artifactId>
Guillaume Nodet05fac962009-04-27 10:01:58 +000058 </exclusion>
59 <exclusion>
Gert Vanthienenf54a8392009-05-02 19:57:13 +000060 <groupId>org.apache.felix.karaf</groupId>
61 <artifactId>org.apache.felix.karaf.spring</artifactId>
Guillaume Nodet05fac962009-04-27 10:01:58 +000062 </exclusion>
63 <exclusion>
Gert Vanthienenf54a8392009-05-02 19:57:13 +000064 <groupId>org.apache.felix.karaf.gshell</groupId>
65 <artifactId>org.apache.felix.karaf.gshell.core</artifactId>
Guillaume Nodet05fac962009-04-27 10:01:58 +000066 </exclusion>
67 <exclusion>
Gert Vanthienenf54a8392009-05-02 19:57:13 +000068 <groupId>org.apache.felix.karaf.gshell</groupId>
69 <artifactId>org.apache.felix.karaf.gshell.admin</artifactId>
Guillaume Nodet05fac962009-04-27 10:01:58 +000070 </exclusion>
71 <exclusion>
Gert Vanthienenf54a8392009-05-02 19:57:13 +000072 <groupId>org.apache.felix.karaf.gshell</groupId>
73 <artifactId>org.apache.felix.karaf.gshell.obr</artifactId>
Guillaume Nodet05fac962009-04-27 10:01:58 +000074 </exclusion>
75 <exclusion>
Gert Vanthienenf54a8392009-05-02 19:57:13 +000076 <groupId>org.apache.felix.karaf.gshell</groupId>
77 <artifactId>org.apache.felix.karaf.gshell.osgi</artifactId>
Guillaume Nodet05fac962009-04-27 10:01:58 +000078 </exclusion>
79 <exclusion>
Gert Vanthienenf54a8392009-05-02 19:57:13 +000080 <groupId>org.apache.felix.karaf.gshell</groupId>
81 <artifactId>org.apache.felix.karaf.gshell.log</artifactId>
Guillaume Nodet05fac962009-04-27 10:01:58 +000082 </exclusion>
83 <exclusion>
Gert Vanthienenf54a8392009-05-02 19:57:13 +000084 <groupId>org.apache.felix.karaf.gshell</groupId>
85 <artifactId>org.apache.felix.karaf.gshell.features</artifactId>
Guillaume Nodet05fac962009-04-27 10:01:58 +000086 </exclusion>
87 <exclusion>
Gert Vanthienenf54a8392009-05-02 19:57:13 +000088 <groupId>org.apache.felix.karaf.gshell</groupId>
89 <artifactId>org.apache.felix.karaf.gshell.config</artifactId>
Guillaume Nodet05fac962009-04-27 10:01:58 +000090 </exclusion>
91 <exclusion>
Gert Vanthienenf54a8392009-05-02 19:57:13 +000092 <groupId>org.apache.felix.karaf.gshell</groupId>
93 <artifactId>org.apache.felix.karaf.gshell.packages</artifactId>
Guillaume Nodet05fac962009-04-27 10:01:58 +000094 </exclusion>
95 <exclusion>
Gert Vanthienenf54a8392009-05-02 19:57:13 +000096 <groupId>org.apache.felix.karaf.jaas</groupId>
97 <artifactId>org.apache.felix.karaf.jaas.config</artifactId>
Guillaume Nodet05fac962009-04-27 10:01:58 +000098 </exclusion>
99 <exclusion>
Gert Vanthienenf54a8392009-05-02 19:57:13 +0000100 <groupId>org.apache.felix.karaf.jaas</groupId>
101 <artifactId>org.apache.felix.karaf.jaas.keystore</artifactId>
Guillaume Nodet05fac962009-04-27 10:01:58 +0000102 </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>
Gert Vanthienenf54a8392009-05-02 19:57:13 +0000247 <groupId>org.apache.felix.karaf</groupId>
248 <artifactId>apache-felix-karaf</artifactId>
Guillaume Nodet05fac962009-04-27 10:01:58 +0000249 <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">
Gert Vanthienenf54a8392009-05-02 19:57:13 +0000273 <fileset dir="${project.build.directory}/kernel/WEB-INF/apache-felix-karaf-${pom.version}"/>
Guillaume Nodet05fac962009-04-27 10:01:58 +0000274 </move>
275 </tasks>
276 </configuration>
277 </execution>
278 </executions>
279 </plugin>
280 </plugins>
281 </build>
282
283</project>