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