Guillaume Nodet | 916f28a | 2009-09-22 09:11:12 +0000 | [diff] [blame] | 1 | <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"> |
Guillaume Nodet | 91fab3b | 2009-04-27 10:01:58 +0000 | [diff] [blame] | 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> |
Guillaume Nodet | a11a3ce | 2009-10-22 18:01:48 +0000 | [diff] [blame] | 24 | <groupId>org.apache.felix.karaf.admin</groupId> |
| 25 | <artifactId>admin</artifactId> |
Guillaume Nodet | 3b7f876 | 2009-09-22 09:15:21 +0000 | [diff] [blame] | 26 | <version>1.1.0-SNAPSHOT</version> |
Guillaume Nodet | 91fab3b | 2009-04-27 10:01:58 +0000 | [diff] [blame] | 27 | </parent> |
| 28 | |
Guillaume Nodet | a11a3ce | 2009-10-22 18:01:48 +0000 | [diff] [blame] | 29 | <groupId>org.apache.felix.karaf.admin</groupId> |
| 30 | <artifactId>org.apache.felix.karaf.admin.core</artifactId> |
Guillaume Nodet | 91fab3b | 2009-04-27 10:01:58 +0000 | [diff] [blame] | 31 | <packaging>bundle</packaging> |
Guillaume Nodet | 3b7f876 | 2009-09-22 09:15:21 +0000 | [diff] [blame] | 32 | <version>1.1.0-SNAPSHOT</version> |
Guillaume Nodet | a11a3ce | 2009-10-22 18:01:48 +0000 | [diff] [blame] | 33 | <name>Apache Felix Karaf :: Admin Core</name> |
Guillaume Nodet | 91fab3b | 2009-04-27 10:01:58 +0000 | [diff] [blame] | 34 | |
Guillaume Nodet | c0d9772 | 2009-09-18 20:25:06 +0000 | [diff] [blame] | 35 | <properties> |
| 36 | <appendedResourcesDirectory>${basedir}/../../etc/appended-resources</appendedResourcesDirectory> |
| 37 | </properties> |
| 38 | |
Guillaume Nodet | 91fab3b | 2009-04-27 10:01:58 +0000 | [diff] [blame] | 39 | <dependencies> |
| 40 | <dependency> |
Guillaume Nodet | 91fab3b | 2009-04-27 10:01:58 +0000 | [diff] [blame] | 41 | <groupId>org.apache.felix</groupId> |
| 42 | <artifactId>org.osgi.core</artifactId> |
| 43 | <scope>provided</scope> |
| 44 | </dependency> |
| 45 | |
| 46 | <dependency> |
| 47 | <groupId>org.apache.felix</groupId> |
| 48 | <artifactId>org.osgi.compendium</artifactId> |
| 49 | <scope>provided</scope> |
| 50 | </dependency> |
| 51 | |
| 52 | <dependency> |
Guillaume Nodet | a11a3ce | 2009-10-22 18:01:48 +0000 | [diff] [blame] | 53 | <groupId>org.apache.felix</groupId> |
| 54 | <artifactId>org.apache.felix.bundlerepository</artifactId> |
Guillaume Nodet | 5cd0379 | 2009-09-08 18:37:13 +0000 | [diff] [blame] | 55 | </dependency> |
| 56 | |
| 57 | <dependency> |
Guillaume Nodet | a11a3ce | 2009-10-22 18:01:48 +0000 | [diff] [blame] | 58 | <groupId>org.apache.felix.karaf.shell</groupId> |
| 59 | <artifactId>org.apache.felix.karaf.shell.console</artifactId> |
| 60 | </dependency> |
| 61 | |
| 62 | <dependency> |
| 63 | <groupId>org.apache.felix.karaf.shell</groupId> |
| 64 | <artifactId>org.apache.felix.karaf.shell.obr</artifactId> |
| 65 | </dependency> |
| 66 | |
| 67 | <dependency> |
| 68 | <groupId>org.springframework.osgi</groupId> |
| 69 | <artifactId>spring-osgi-core</artifactId> |
| 70 | <scope>test</scope> |
| 71 | </dependency> |
| 72 | <dependency> |
Guillaume Nodet | 91fab3b | 2009-04-27 10:01:58 +0000 | [diff] [blame] | 73 | <groupId>org.apache.servicemix.bundles</groupId> |
| 74 | <artifactId>org.apache.servicemix.bundles.junit</artifactId> |
| 75 | <scope>test</scope> |
| 76 | </dependency> |
Guillaume Nodet | 5cd0379 | 2009-09-08 18:37:13 +0000 | [diff] [blame] | 77 | <dependency> |
| 78 | <groupId>org.easymock</groupId> |
Guillaume Nodet | a11a3ce | 2009-10-22 18:01:48 +0000 | [diff] [blame] | 79 | <artifactId>easymock</artifactId> |
| 80 | <scope>test</scope> |
| 81 | </dependency> |
| 82 | <dependency> |
| 83 | <groupId>org.slf4j</groupId> |
| 84 | <artifactId>slf4j-jdk14</artifactId> |
Guillaume Nodet | 5cd0379 | 2009-09-08 18:37:13 +0000 | [diff] [blame] | 85 | <scope>test</scope> |
| 86 | </dependency> |
Guillaume Nodet | 91fab3b | 2009-04-27 10:01:58 +0000 | [diff] [blame] | 87 | </dependencies> |
| 88 | |
| 89 | <build> |
| 90 | <resources> |
| 91 | <resource> |
| 92 | <directory>${pom.basedir}/src/main/resources</directory> |
| 93 | <includes> |
| 94 | <include>**/*</include> |
| 95 | </includes> |
| 96 | </resource> |
Guillaume Nodet | 91fab3b | 2009-04-27 10:01:58 +0000 | [diff] [blame] | 97 | </resources> |
Guillaume Nodet | d993615 | 2009-09-08 09:32:55 +0000 | [diff] [blame] | 98 | <filters> |
| 99 | <filter>target/filter.txt</filter> |
| 100 | </filters> |
Guillaume Nodet | 91fab3b | 2009-04-27 10:01:58 +0000 | [diff] [blame] | 101 | <plugins> |
| 102 | <plugin> |
| 103 | <groupId>org.apache.maven.plugins</groupId> |
Guillaume Nodet | d993615 | 2009-09-08 09:32:55 +0000 | [diff] [blame] | 104 | <artifactId>maven-antrun-plugin</artifactId> |
Guillaume Nodet | d993615 | 2009-09-08 09:32:55 +0000 | [diff] [blame] | 105 | <executions> |
| 106 | <execution> |
| 107 | <id>create-prop</id> |
| 108 | <phase>initialize</phase> |
| 109 | <configuration> |
| 110 | <tasks> |
Guillaume Nodet | 916f28a | 2009-09-22 09:11:12 +0000 | [diff] [blame] | 111 | <taskdef resource="net/sf/antcontrib/antcontrib.properties" classpathref="maven.plugin.classpath" /> |
| 112 | <property name="ant.regexp.regexpimpl" value="org.apache.tools.ant.util.regexp.Jdk14RegexpRegexp" /> |
| 113 | <property name="mv" value="${project.version}" /> |
| 114 | <echo message="Maven version: ${mv}" /> |
| 115 | <propertyregex property="ov.p1" input="${mv}" regexp="(\d+)(?:\.(\d+)(?:\.(\d+))?)?(?:[^a-zA-Z0-9](.*))?" replace="\1" defaultValue="0" /> |
| 116 | <propertyregex property="ov.p2" input="${mv}" regexp="(\d+)(?:\.(\d+)(?:\.(\d+))?)?(?:[^a-zA-Z0-9](.*))?" replace=".\2" defaultValue=".0" /> |
| 117 | <propertyregex property="ov.p3" input="${mv}" regexp="(\d+)(?:\.(\d+)(?:\.(\d+))?)?(?:[^a-zA-Z0-9](.*))?" replace=".\3" defaultValue=".0" /> |
| 118 | <propertyregex property="ov.p4" input="${mv}" regexp="(\d+)(?:\.(\d+)(?:\.(\d+))?)?(?:[^a-zA-Z0-9](.*))?" replace=".\4" defaultValue="" /> |
| 119 | <propertyregex property="ov.p1a" input="${ov.p1}" regexp="(.+)" replace="\1" defaultValue="0" /> |
| 120 | <propertyregex property="ov.p2a" input="${ov.p2}" regexp="(\..+)" replace="\1" defaultValue=".0" /> |
| 121 | <propertyregex property="ov.p3a" input="${ov.p3}" regexp="(\..+)" replace="\1" defaultValue=".0" /> |
| 122 | <propertyregex property="ov.p4a" input="${ov.p4}" regexp="(\..+)" replace="\1" defaultValue="" /> |
| 123 | <property name="ov" value="${ov.p1a}${ov.p2a}${ov.p3a}${ov.p4a}" /> |
| 124 | <echo message="OSGi version: ${ov}" /> |
| 125 | <mkdir dir="target" /> |
| 126 | <echo message="karaf.osgi.version = ${ov}" file="target/filter.txt" /> |
Guillaume Nodet | d993615 | 2009-09-08 09:32:55 +0000 | [diff] [blame] | 127 | </tasks> |
| 128 | </configuration> |
| 129 | <goals> |
| 130 | <goal>run</goal> |
| 131 | </goals> |
| 132 | </execution> |
| 133 | </executions> |
Guillaume Nodet | d993615 | 2009-09-08 09:32:55 +0000 | [diff] [blame] | 134 | </plugin> |
| 135 | <plugin> |
| 136 | <groupId>org.apache.maven.plugins</groupId> |
Guillaume Nodet | 91fab3b | 2009-04-27 10:01:58 +0000 | [diff] [blame] | 137 | <artifactId>maven-resources-plugin</artifactId> |
| 138 | <executions> |
| 139 | <execution> |
Guillaume Nodet | 3e9a428 | 2009-05-04 16:30:02 +0000 | [diff] [blame] | 140 | <id>copy-config-properties</id> |
Guillaume Nodet | 91fab3b | 2009-04-27 10:01:58 +0000 | [diff] [blame] | 141 | <!-- here the phase you need --> |
| 142 | <phase>compile</phase> |
| 143 | <goals> |
| 144 | <goal>copy-resources</goal> |
| 145 | </goals> |
| 146 | <configuration> |
Guillaume Nodet | a11a3ce | 2009-10-22 18:01:48 +0000 | [diff] [blame] | 147 | <outputDirectory>${basedir}/target/classes/org/apache/felix/karaf/admin/etc</outputDirectory> |
Guillaume Nodet | 3e9a428 | 2009-05-04 16:30:02 +0000 | [diff] [blame] | 148 | <resources> |
Guillaume Nodet | 91fab3b | 2009-04-27 10:01:58 +0000 | [diff] [blame] | 149 | <resource> |
Guillaume Nodet | 077bac5 | 2009-07-09 08:29:14 +0000 | [diff] [blame] | 150 | <directory>../../assembly/src/main/distribution/text/etc/</directory> |
Guillaume Nodet | 91fab3b | 2009-04-27 10:01:58 +0000 | [diff] [blame] | 151 | <includes> |
Guillaume Nodet | 077bac5 | 2009-07-09 08:29:14 +0000 | [diff] [blame] | 152 | <include>*.properties</include> |
| 153 | <include>*.cfg</include> |
Guillaume Nodet | 91fab3b | 2009-04-27 10:01:58 +0000 | [diff] [blame] | 154 | </includes> |
Guillaume Nodet | 077bac5 | 2009-07-09 08:29:14 +0000 | [diff] [blame] | 155 | <excludes> |
| 156 | <exclude>org.apache.felix.karaf.shell.cfg</exclude> |
| 157 | <exclude>org.ops4j.pax.url.mvn.cfg</exclude> |
| 158 | <exclude>system.properties</exclude> |
| 159 | </excludes> |
Guillaume Nodet | 91fab3b | 2009-04-27 10:01:58 +0000 | [diff] [blame] | 160 | </resource> |
Guillaume Nodet | 3e9a428 | 2009-05-04 16:30:02 +0000 | [diff] [blame] | 161 | </resources> |
| 162 | </configuration> |
| 163 | </execution> |
| 164 | <execution> |
| 165 | <id>copy-filtered</id> |
| 166 | <!-- here the phase you need --> |
| 167 | <phase>compile</phase> |
| 168 | <goals> |
| 169 | <goal>copy-resources</goal> |
| 170 | </goals> |
| 171 | <configuration> |
Guillaume Nodet | a11a3ce | 2009-10-22 18:01:48 +0000 | [diff] [blame] | 172 | <outputDirectory>${basedir}/target/classes/org/apache/felix/karaf/admin/etc</outputDirectory> |
Guillaume Nodet | 3e9a428 | 2009-05-04 16:30:02 +0000 | [diff] [blame] | 173 | <resources> |
| 174 | <resource> |
Guillaume Nodet | 077bac5 | 2009-07-09 08:29:14 +0000 | [diff] [blame] | 175 | <directory>../../assembly/src/main/filtered-resources/etc</directory> |
Guillaume Nodet | 3e9a428 | 2009-05-04 16:30:02 +0000 | [diff] [blame] | 176 | <filtering>true</filtering> |
| 177 | <includes> |
Guillaume Nodet | 077bac5 | 2009-07-09 08:29:14 +0000 | [diff] [blame] | 178 | <include>*.properties</include> |
| 179 | <include>*.cfg</include> |
Guillaume Nodet | 3e9a428 | 2009-05-04 16:30:02 +0000 | [diff] [blame] | 180 | </includes> |
| 181 | </resource> |
| 182 | </resources> |
| 183 | </configuration> |
Guillaume Nodet | 91fab3b | 2009-04-27 10:01:58 +0000 | [diff] [blame] | 184 | </execution> |
| 185 | </executions> |
Guillaume Nodet | 91fab3b | 2009-04-27 10:01:58 +0000 | [diff] [blame] | 186 | </plugin> |
| 187 | <plugin> |
| 188 | <groupId>org.apache.felix</groupId> |
| 189 | <artifactId>maven-bundle-plugin</artifactId> |
| 190 | <configuration> |
| 191 | <instructions> |
Guillaume Nodet | a11a3ce | 2009-10-22 18:01:48 +0000 | [diff] [blame] | 192 | <Bundle-SymbolicName>${pom.artifactId}</Bundle-SymbolicName> |
| 193 | <Export-Package> |
| 194 | org.apache.felix.karaf.admin;version=${pom.version}, |
| 195 | org.apache.felix.karaf.jpm;version=${pom.version} |
| 196 | </Export-Package> |
Guillaume Nodet | 91fab3b | 2009-04-27 10:01:58 +0000 | [diff] [blame] | 197 | <Import-Package> |
Guillaume Nodet | a11a3ce | 2009-10-22 18:01:48 +0000 | [diff] [blame] | 198 | !org.apache.felix.karaf.admin, |
| 199 | !org.apache.felix.karaf.jpm, |
| 200 | javax.management, |
| 201 | javax.management.loading, |
Guillaume Nodet | 077bac5 | 2009-07-09 08:29:14 +0000 | [diff] [blame] | 202 | org.osgi.service.command, |
| 203 | org.apache.felix.gogo.commands, |
Guillaume Nodet | 91a52c0 | 2009-09-18 20:14:54 +0000 | [diff] [blame] | 204 | org.apache.felix.karaf.shell.console, |
Guillaume Nodet | 91fab3b | 2009-04-27 10:01:58 +0000 | [diff] [blame] | 205 | * |
| 206 | </Import-Package> |
Guillaume Nodet | a11a3ce | 2009-10-22 18:01:48 +0000 | [diff] [blame] | 207 | <Private-Package> |
Guillaume Nodet | bf27d1e | 2009-10-22 18:37:15 +0000 | [diff] [blame] | 208 | org.apache.felix.karaf.admin.bin, |
| 209 | org.apache.felix.karaf.admin.etc, |
Guillaume Nodet | a11a3ce | 2009-10-22 18:01:48 +0000 | [diff] [blame] | 210 | org.apache.felix.karaf.admin.internal, |
Guillaume Nodet | bf27d1e | 2009-10-22 18:37:15 +0000 | [diff] [blame] | 211 | org.apache.felix.karaf.jpm.impl, |
Guillaume Nodet | a11a3ce | 2009-10-22 18:01:48 +0000 | [diff] [blame] | 212 | </Private-Package> |
Guillaume Nodet | 3e9a428 | 2009-05-04 16:30:02 +0000 | [diff] [blame] | 213 | <_versionpolicy>${bnd.version.policy}</_versionpolicy> |
Guillaume Nodet | 91fab3b | 2009-04-27 10:01:58 +0000 | [diff] [blame] | 214 | </instructions> |
| 215 | </configuration> |
| 216 | </plugin> |
Gert Vanthienen | c3f669d | 2009-06-16 11:58:10 +0000 | [diff] [blame] | 217 | <plugin> |
| 218 | <groupId>org.apache.maven.plugins</groupId> |
| 219 | <artifactId>maven-surefire-plugin</artifactId> |
| 220 | <configuration> |
| 221 | <excludes> |
| 222 | <!-- this is not a unit test but an application used for testing --> |
| 223 | <exclude>**/MainTest.java</exclude> |
| 224 | </excludes> |
| 225 | </configuration> |
| 226 | </plugin> |
Guillaume Nodet | 91fab3b | 2009-04-27 10:01:58 +0000 | [diff] [blame] | 227 | </plugins> |
| 228 | </build> |
| 229 | </project> |