blob: 65252e75ba1b7a06580775b71f949702529e01cd [file] [log] [blame]
Guillaume Nodet05fac962009-04-27 10:01:58 +00001<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 Nodet23a0f3d2009-09-18 20:14:54 +000025 <groupId>org.apache.felix.karaf.shell</groupId>
26 <artifactId>shell</artifactId>
Guillaume Nodetadc9d282009-08-25 09:03:55 +000027 <version>0.9.0-SNAPSHOT</version>
Guillaume Nodet05fac962009-04-27 10:01:58 +000028 </parent>
29
Guillaume Nodet23a0f3d2009-09-18 20:14:54 +000030 <groupId>org.apache.felix.karaf.shell</groupId>
31 <artifactId>org.apache.felix.karaf.shell.admin</artifactId>
Guillaume Nodet05fac962009-04-27 10:01:58 +000032 <packaging>bundle</packaging>
Guillaume Nodetadc9d282009-08-25 09:03:55 +000033 <version>0.9.0-SNAPSHOT</version>
Guillaume Nodet23a0f3d2009-09-18 20:14:54 +000034 <name>Apache Felix Karaf :: Shell Admin</name>
Guillaume Nodet05fac962009-04-27 10:01:58 +000035
36 <description>
37 Provides administration commands
38 </description>
39
Guillaume Nodete73545e2009-09-18 20:25:06 +000040 <properties>
41 <appendedResourcesDirectory>${basedir}/../../etc/appended-resources</appendedResourcesDirectory>
42 </properties>
43
Guillaume Nodet05fac962009-04-27 10:01:58 +000044 <dependencies>
45 <dependency>
Guillaume Nodet23a0f3d2009-09-18 20:14:54 +000046 <groupId>org.apache.felix.karaf.shell</groupId>
47 <artifactId>org.apache.felix.karaf.shell.console</artifactId>
Guillaume Nodet05fac962009-04-27 10:01:58 +000048 </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 Nodete1a12572009-09-08 18:37:13 +000063 <groupId>org.ops4j.pax.logging</groupId>
64 <artifactId>pax-logging-api</artifactId>
65 <scope>test</scope>
66 </dependency>
67
68 <dependency>
Guillaume Nodet05fac962009-04-27 10:01:58 +000069 <groupId>org.apache.servicemix.bundles</groupId>
70 <artifactId>org.apache.servicemix.bundles.junit</artifactId>
71 <scope>test</scope>
72 </dependency>
Guillaume Nodete1a12572009-09-08 18:37:13 +000073
74 <dependency>
75 <groupId>org.easymock</groupId>
76 <artifactId>easymockclassextension</artifactId>
77 <version>${easymock.version}</version>
78 <scope>test</scope>
79 </dependency>
Guillaume Nodet05fac962009-04-27 10:01:58 +000080 </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 Nodet4e32cd62009-05-04 16:30:02 +000090 <!--
Guillaume Nodet05fac962009-04-27 10:01:58 +000091 <resource>
92 <directory>${pom.basedir}/src/main/filtered-resources</directory>
93 <filtering>true</filtering>
94 <includes>
95 <include>**/*</include>
96 </includes>
97 </resource>
Guillaume Nodet4e32cd62009-05-04 16:30:02 +000098 -->
Guillaume Nodet05fac962009-04-27 10:01:58 +000099 </resources>
Guillaume Nodetcd946bb2009-09-08 09:32:55 +0000100 <filters>
101 <filter>target/filter.txt</filter>
102 </filters>
Guillaume Nodet05fac962009-04-27 10:01:58 +0000103 <plugins>
104 <plugin>
105 <groupId>org.apache.maven.plugins</groupId>
Guillaume Nodetcd946bb2009-09-08 09:32:55 +0000106 <artifactId>maven-antrun-plugin</artifactId>
Guillaume Nodetcd946bb2009-09-08 09:32:55 +0000107 <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 Nodetcd946bb2009-09-08 09:32:55 +0000136 </plugin>
137 <plugin>
138 <groupId>org.apache.maven.plugins</groupId>
Guillaume Nodet05fac962009-04-27 10:01:58 +0000139 <artifactId>maven-resources-plugin</artifactId>
140 <executions>
141 <execution>
Guillaume Nodet4e32cd62009-05-04 16:30:02 +0000142 <id>copy-config-properties</id>
Guillaume Nodet05fac962009-04-27 10:01:58 +0000143 <!-- here the phase you need -->
144 <phase>compile</phase>
145 <goals>
146 <goal>copy-resources</goal>
147 </goals>
148 <configuration>
Guillaume Nodet23a0f3d2009-09-18 20:14:54 +0000149 <outputDirectory>${basedir}/target/classes/org/apache/felix/karaf/shell/admin/etc</outputDirectory>
Guillaume Nodet4e32cd62009-05-04 16:30:02 +0000150 <resources>
Guillaume Nodet05fac962009-04-27 10:01:58 +0000151 <resource>
Guillaume Nodet129433d2009-07-09 08:29:14 +0000152 <directory>../../assembly/src/main/distribution/text/etc/</directory>
Guillaume Nodet05fac962009-04-27 10:01:58 +0000153 <includes>
Guillaume Nodet129433d2009-07-09 08:29:14 +0000154 <include>*.properties</include>
155 <include>*.cfg</include>
Guillaume Nodet05fac962009-04-27 10:01:58 +0000156 </includes>
Guillaume Nodet129433d2009-07-09 08:29:14 +0000157 <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 Nodet05fac962009-04-27 10:01:58 +0000162 </resource>
Guillaume Nodet4e32cd62009-05-04 16:30:02 +0000163 </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 Nodet23a0f3d2009-09-18 20:14:54 +0000174 <outputDirectory>${basedir}/target/classes/org/apache/felix/karaf/shell/admin/etc</outputDirectory>
Guillaume Nodet4e32cd62009-05-04 16:30:02 +0000175 <resources>
176 <resource>
Guillaume Nodet129433d2009-07-09 08:29:14 +0000177 <directory>../../assembly/src/main/filtered-resources/etc</directory>
Guillaume Nodet4e32cd62009-05-04 16:30:02 +0000178 <filtering>true</filtering>
179 <includes>
Guillaume Nodet129433d2009-07-09 08:29:14 +0000180 <include>*.properties</include>
181 <include>*.cfg</include>
Guillaume Nodet4e32cd62009-05-04 16:30:02 +0000182 </includes>
183 </resource>
184 </resources>
185 </configuration>
Guillaume Nodet05fac962009-04-27 10:01:58 +0000186 </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 Nodet4e32cd62009-05-04 16:30:02 +0000202 <Export-Package>${pom.artifactId}*;version=${project.version}</Export-Package>
Guillaume Nodet05fac962009-04-27 10:01:58 +0000203 <Import-Package>
Guillaume Nodete73545e2009-09-18 20:25:06 +0000204 !${pom.artifactId}*,
Guillaume Nodet129433d2009-07-09 08:29:14 +0000205 org.osgi.service.command,
206 org.apache.felix.gogo.commands,
Guillaume Nodet23a0f3d2009-09-18 20:14:54 +0000207 org.apache.felix.karaf.shell.console,
Guillaume Nodet05fac962009-04-27 10:01:58 +0000208 *
209 </Import-Package>
Guillaume Nodet5be92962009-05-04 07:02:13 +0000210 <Private-Package>org.apache.felix.karaf.jpm.*</Private-Package>
Guillaume Nodet4e32cd62009-05-04 16:30:02 +0000211 <_versionpolicy>${bnd.version.policy}</_versionpolicy>
Guillaume Nodet05fac962009-04-27 10:01:58 +0000212 </instructions>
213 </configuration>
214 </plugin>
Gert Vanthienenabed2af2009-06-16 11:58:10 +0000215 <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 Nodet05fac962009-04-27 10:01:58 +0000225 </plugins>
226 </build>
227</project>