blob: 48df7ec20d49e21b314b2999e5ebc7775c2ff9c3 [file] [log] [blame]
Guillaume Nodetf7b0c812009-08-18 09:38:26 +00001<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">
2
3<!--
4
5 Licensed to the Apache Software Foundation (ASF) under one or more
6 contributor license agreements. See the NOTICE file distributed with
7 this work for additional information regarding copyright ownership.
8 The ASF licenses this file to You under the Apache License, Version 2.0
9 (the "License"); you may not use this file except in compliance with
10 the License. You may obtain a copy of the License at
11
12 http://www.apache.org/licenses/LICENSE-2.0
13
14 Unless required by applicable law or agreed to in writing, software
15 distributed under the License is distributed on an "AS IS" BASIS,
16 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 See the License for the specific language governing permissions and
18 limitations under the License.
19-->
20
21 <modelVersion>4.0.0</modelVersion>
22
23 <parent>
24 <groupId>org.apache.felix.karaf.demos</groupId>
25 <artifactId>demos</artifactId>
Chris Custinea1305132010-02-19 07:49:41 +000026 <version>1.4.0</version>
Guillaume Nodetf7b0c812009-08-18 09:38:26 +000027 </parent>
28
29 <groupId>org.apache.felix.karaf.demos</groupId>
30 <artifactId>web</artifactId>
31 <packaging>war</packaging>
32 <name>Apache Felix Karaf :: Demos :: web</name>
33
34 <properties>
35 <jetty.port>8080</jetty.port>
36 <jetty.version>6.1.12rc1</jetty.version>
37 <geronimo.servlet.version>1.1.2</geronimo.servlet.version>
Guillaume Nodetc0d97722009-09-18 20:25:06 +000038
39 <appendedResourcesDirectory>${basedir}/../../etc/appended-resources</appendedResourcesDirectory>
Guillaume Nodetf7b0c812009-08-18 09:38:26 +000040 </properties>
41
Guillaume Nodetc0d97722009-09-18 20:25:06 +000042
Guillaume Nodetf7b0c812009-08-18 09:38:26 +000043 <dependencies>
44 <dependency>
45 <groupId>org.apache.felix.karaf</groupId>
46 <artifactId>org.apache.felix.karaf.main</artifactId>
47 </dependency>
48 <dependency>
49 <groupId>org.apache.felix.karaf.jaas</groupId>
50 <artifactId>org.apache.felix.karaf.jaas.boot</artifactId>
51 </dependency>
52 <dependency>
53 <groupId>org.apache.felix.karaf</groupId>
54 <artifactId>apache-felix-karaf</artifactId>
55 <type>zip</type>
56 <scope>provided</scope>
57 </dependency>
58 <dependency>
59 <groupId>org.apache.geronimo.specs</groupId>
60 <artifactId>geronimo-servlet_2.5_spec</artifactId>
61 <scope>provided</scope>
62 </dependency>
63 </dependencies>
64
65 <build>
66 <plugins>
67 <plugin>
68 <groupId>org.apache.maven.plugins</groupId>
69 <artifactId>maven-compiler-plugin</artifactId>
70 <configuration>
71 <source>1.5</source>
72 <target>1.5</target>
73 </configuration>
74 </plugin>
75 <plugin>
76 <groupId>org.apache.maven.plugins</groupId>
77 <artifactId>maven-war-plugin</artifactId>
78 <version>2.1-beta-1</version>
79 <configuration>
80 <warSourceDirectory>src/main/webapp/</warSourceDirectory>
81 <webResources>
82 <resource>
83 <directory>target/karaf</directory>
84 </resource>
85 </webResources>
86 </configuration>
87 </plugin>
88 <plugin>
89 <groupId>org.mortbay.jetty</groupId>
90 <artifactId>maven-jetty-plugin</artifactId>
91 <version>${jetty.version}</version>
92 <configuration>
93 <connectors>
94 <connector implementation="org.mortbay.jetty.nio.SelectChannelConnector">
95 <port>${jetty.port}</port>
96 <maxIdleTime>60000</maxIdleTime>
97 </connector>
98 </connectors>
99 <systemProperties>
100 <!-- enable easy connection to JConsole -->
101 <systemProperty>
102 <name>com.sun.management.jmxremote</name>
Guillaume Nodet916f28a2009-09-22 09:11:12 +0000103 <value />
Guillaume Nodetf7b0c812009-08-18 09:38:26 +0000104 </systemProperty>
105 </systemProperties>
106 <scanIntervalSeconds>10</scanIntervalSeconds>
107 <webAppSourceDirectory>${project.build.directory}/${project.build.finalName}</webAppSourceDirectory>
108 </configuration>
109 </plugin>
110 <plugin>
111 <groupId>org.apache.maven.plugins</groupId>
112 <artifactId>maven-dependency-plugin</artifactId>
113 <version>2.0</version>
114 <executions>
115 <execution>
116 <id>unpack-unix</id>
117 <phase>generate-resources</phase>
118 <goals>
119 <goal>unpack</goal>
120 </goals>
121 <configuration>
122 <artifactItems>
123 <artifactItem>
124 <groupId>org.apache.felix.karaf</groupId>
125 <artifactId>apache-felix-karaf</artifactId>
126 <type>zip</type>
127 <overWrite>true</overWrite>
128 <outputDirectory>${project.build.directory}/karaf/WEB-INF</outputDirectory>
129 <excludes>**/lib/*,**/*.txt,**/bin/*,**/demos/**,**/lib,**/bin,**/demos</excludes>
130 </artifactItem>
131 </artifactItems>
132 </configuration>
133 </execution>
134 </executions>
135 </plugin>
136 <plugin>
137 <groupId>org.apache.maven.plugins</groupId>
138 <artifactId>maven-antrun-plugin</artifactId>
Guillaume Nodetf7b0c812009-08-18 09:38:26 +0000139 <executions>
140 <execution>
141 <id>copy-karaf</id>
142 <phase>process-resources</phase>
143 <goals>
144 <goal>run</goal>
145 </goals>
146 <configuration>
147 <tasks>
148 <move todir="${project.build.directory}/karaf/WEB-INF/karaf">
Guillaume Nodet916f28a2009-09-22 09:11:12 +0000149 <fileset dir="${project.build.directory}/karaf/WEB-INF/apache-felix-karaf-${pom.version}" />
Guillaume Nodetf7b0c812009-08-18 09:38:26 +0000150 </move>
151 </tasks>
152 </configuration>
153 </execution>
154 </executions>
155 </plugin>
156 </plugins>
157 </build>
158
Guillaume Nodet916f28a2009-09-22 09:11:12 +0000159</project>