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