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