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