Guillaume Nodet | f7b0c81 | 2009-08-18 09:38:26 +0000 | [diff] [blame] | 1 | <?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.felix.karaf.demos</groupId> |
| 26 | <artifactId>demos</artifactId> |
Guillaume Nodet | abe5600 | 2009-08-25 09:03:55 +0000 | [diff] [blame] | 27 | <version>0.9.0-SNAPSHOT</version> |
Guillaume Nodet | f7b0c81 | 2009-08-18 09:38:26 +0000 | [diff] [blame] | 28 | </parent> |
| 29 | |
| 30 | <groupId>org.apache.felix.karaf.demos</groupId> |
| 31 | <artifactId>web</artifactId> |
| 32 | <packaging>war</packaging> |
| 33 | <name>Apache Felix Karaf :: Demos :: web</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> |
Guillaume Nodet | c0d9772 | 2009-09-18 20:25:06 +0000 | [diff] [blame] | 39 | |
| 40 | <appendedResourcesDirectory>${basedir}/../../etc/appended-resources</appendedResourcesDirectory> |
Guillaume Nodet | f7b0c81 | 2009-08-18 09:38:26 +0000 | [diff] [blame] | 41 | </properties> |
| 42 | |
Guillaume Nodet | c0d9772 | 2009-09-18 20:25:06 +0000 | [diff] [blame] | 43 | |
Guillaume Nodet | f7b0c81 | 2009-08-18 09:38:26 +0000 | [diff] [blame] | 44 | <dependencies> |
| 45 | <dependency> |
| 46 | <groupId>org.apache.felix.karaf</groupId> |
| 47 | <artifactId>org.apache.felix.karaf.main</artifactId> |
| 48 | </dependency> |
| 49 | <dependency> |
| 50 | <groupId>org.apache.felix.karaf.jaas</groupId> |
| 51 | <artifactId>org.apache.felix.karaf.jaas.boot</artifactId> |
| 52 | </dependency> |
| 53 | <dependency> |
| 54 | <groupId>org.apache.felix.karaf</groupId> |
| 55 | <artifactId>apache-felix-karaf</artifactId> |
| 56 | <type>zip</type> |
| 57 | <scope>provided</scope> |
| 58 | </dependency> |
| 59 | <dependency> |
| 60 | <groupId>org.apache.geronimo.specs</groupId> |
| 61 | <artifactId>geronimo-servlet_2.5_spec</artifactId> |
| 62 | <scope>provided</scope> |
| 63 | </dependency> |
| 64 | </dependencies> |
| 65 | |
| 66 | <build> |
| 67 | <plugins> |
| 68 | <plugin> |
| 69 | <groupId>org.apache.maven.plugins</groupId> |
| 70 | <artifactId>maven-compiler-plugin</artifactId> |
| 71 | <configuration> |
| 72 | <source>1.5</source> |
| 73 | <target>1.5</target> |
| 74 | </configuration> |
| 75 | </plugin> |
| 76 | <plugin> |
| 77 | <groupId>org.apache.maven.plugins</groupId> |
| 78 | <artifactId>maven-war-plugin</artifactId> |
| 79 | <version>2.1-beta-1</version> |
| 80 | <configuration> |
| 81 | <warSourceDirectory>src/main/webapp/</warSourceDirectory> |
| 82 | <webResources> |
| 83 | <resource> |
| 84 | <directory>target/karaf</directory> |
| 85 | </resource> |
| 86 | </webResources> |
| 87 | </configuration> |
| 88 | </plugin> |
| 89 | <plugin> |
| 90 | <groupId>org.mortbay.jetty</groupId> |
| 91 | <artifactId>maven-jetty-plugin</artifactId> |
| 92 | <version>${jetty.version}</version> |
| 93 | <configuration> |
| 94 | <connectors> |
| 95 | <connector implementation="org.mortbay.jetty.nio.SelectChannelConnector"> |
| 96 | <port>${jetty.port}</port> |
| 97 | <maxIdleTime>60000</maxIdleTime> |
| 98 | </connector> |
| 99 | </connectors> |
| 100 | <systemProperties> |
| 101 | <!-- enable easy connection to JConsole --> |
| 102 | <systemProperty> |
| 103 | <name>com.sun.management.jmxremote</name> |
| 104 | <value></value> |
| 105 | </systemProperty> |
| 106 | </systemProperties> |
| 107 | <scanIntervalSeconds>10</scanIntervalSeconds> |
| 108 | <webAppSourceDirectory>${project.build.directory}/${project.build.finalName}</webAppSourceDirectory> |
| 109 | </configuration> |
| 110 | </plugin> |
| 111 | <plugin> |
| 112 | <groupId>org.apache.maven.plugins</groupId> |
| 113 | <artifactId>maven-dependency-plugin</artifactId> |
| 114 | <version>2.0</version> |
| 115 | <executions> |
| 116 | <execution> |
| 117 | <id>unpack-unix</id> |
| 118 | <phase>generate-resources</phase> |
| 119 | <goals> |
| 120 | <goal>unpack</goal> |
| 121 | </goals> |
| 122 | <configuration> |
| 123 | <artifactItems> |
| 124 | <artifactItem> |
| 125 | <groupId>org.apache.felix.karaf</groupId> |
| 126 | <artifactId>apache-felix-karaf</artifactId> |
| 127 | <type>zip</type> |
| 128 | <overWrite>true</overWrite> |
| 129 | <outputDirectory>${project.build.directory}/karaf/WEB-INF</outputDirectory> |
| 130 | <excludes>**/lib/*,**/*.txt,**/bin/*,**/demos/**,**/lib,**/bin,**/demos</excludes> |
| 131 | </artifactItem> |
| 132 | </artifactItems> |
| 133 | </configuration> |
| 134 | </execution> |
| 135 | </executions> |
| 136 | </plugin> |
| 137 | <plugin> |
| 138 | <groupId>org.apache.maven.plugins</groupId> |
| 139 | <artifactId>maven-antrun-plugin</artifactId> |
Guillaume Nodet | f7b0c81 | 2009-08-18 09:38:26 +0000 | [diff] [blame] | 140 | <executions> |
| 141 | <execution> |
| 142 | <id>copy-karaf</id> |
| 143 | <phase>process-resources</phase> |
| 144 | <goals> |
| 145 | <goal>run</goal> |
| 146 | </goals> |
| 147 | <configuration> |
| 148 | <tasks> |
| 149 | <move todir="${project.build.directory}/karaf/WEB-INF/karaf"> |
| 150 | <fileset dir="${project.build.directory}/karaf/WEB-INF/apache-felix-karaf-${pom.version}"/> |
| 151 | </move> |
| 152 | </tasks> |
| 153 | </configuration> |
| 154 | </execution> |
| 155 | </executions> |
| 156 | </plugin> |
| 157 | </plugins> |
| 158 | </build> |
| 159 | |
| 160 | </project> |