blob: 4b9b0cb6b2294de8ded455ba6fd56b59e7109a96 [file] [log] [blame]
Guillaume Nodet916f28a2009-09-22 09:11:12 +00001<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 Nodet91fab3b2009-04-27 10:01:58 +00002
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 Nodeta11a3ce2009-10-22 18:01:48 +000024 <groupId>org.apache.felix.karaf.admin</groupId>
25 <artifactId>admin</artifactId>
Guillaume Nodet3b7f8762009-09-22 09:15:21 +000026 <version>1.1.0-SNAPSHOT</version>
Guillaume Nodet91fab3b2009-04-27 10:01:58 +000027 </parent>
28
Guillaume Nodeta11a3ce2009-10-22 18:01:48 +000029 <groupId>org.apache.felix.karaf.admin</groupId>
30 <artifactId>org.apache.felix.karaf.admin.core</artifactId>
Guillaume Nodet91fab3b2009-04-27 10:01:58 +000031 <packaging>bundle</packaging>
Guillaume Nodet3b7f8762009-09-22 09:15:21 +000032 <version>1.1.0-SNAPSHOT</version>
Guillaume Nodeta11a3ce2009-10-22 18:01:48 +000033 <name>Apache Felix Karaf :: Admin Core</name>
Guillaume Nodet91fab3b2009-04-27 10:01:58 +000034
Guillaume Nodetc0d97722009-09-18 20:25:06 +000035 <properties>
36 <appendedResourcesDirectory>${basedir}/../../etc/appended-resources</appendedResourcesDirectory>
37 </properties>
38
Guillaume Nodet91fab3b2009-04-27 10:01:58 +000039 <dependencies>
40 <dependency>
Guillaume Nodet91fab3b2009-04-27 10:01:58 +000041 <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 Nodeta11a3ce2009-10-22 18:01:48 +000053 <groupId>org.apache.felix</groupId>
54 <artifactId>org.apache.felix.bundlerepository</artifactId>
Guillaume Nodet5cd03792009-09-08 18:37:13 +000055 </dependency>
56
57 <dependency>
Guillaume Nodeta11a3ce2009-10-22 18:01:48 +000058 <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 Nodet91fab3b2009-04-27 10:01:58 +000073 <groupId>org.apache.servicemix.bundles</groupId>
74 <artifactId>org.apache.servicemix.bundles.junit</artifactId>
75 <scope>test</scope>
76 </dependency>
Guillaume Nodet5cd03792009-09-08 18:37:13 +000077 <dependency>
78 <groupId>org.easymock</groupId>
Guillaume Nodeta11a3ce2009-10-22 18:01:48 +000079 <artifactId>easymock</artifactId>
80 <scope>test</scope>
81 </dependency>
82 <dependency>
83 <groupId>org.slf4j</groupId>
84 <artifactId>slf4j-jdk14</artifactId>
Guillaume Nodet5cd03792009-09-08 18:37:13 +000085 <scope>test</scope>
86 </dependency>
Guillaume Nodet91fab3b2009-04-27 10:01:58 +000087 </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 Nodet91fab3b2009-04-27 10:01:58 +000097 </resources>
Guillaume Nodetd9936152009-09-08 09:32:55 +000098 <filters>
99 <filter>target/filter.txt</filter>
100 </filters>
Guillaume Nodet91fab3b2009-04-27 10:01:58 +0000101 <plugins>
102 <plugin>
103 <groupId>org.apache.maven.plugins</groupId>
Guillaume Nodetd9936152009-09-08 09:32:55 +0000104 <artifactId>maven-antrun-plugin</artifactId>
Guillaume Nodetd9936152009-09-08 09:32:55 +0000105 <executions>
106 <execution>
107 <id>create-prop</id>
108 <phase>initialize</phase>
109 <configuration>
110 <tasks>
Guillaume Nodet916f28a2009-09-22 09:11:12 +0000111 <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 Nodetd9936152009-09-08 09:32:55 +0000127 </tasks>
128 </configuration>
129 <goals>
130 <goal>run</goal>
131 </goals>
132 </execution>
133 </executions>
Guillaume Nodetd9936152009-09-08 09:32:55 +0000134 </plugin>
135 <plugin>
136 <groupId>org.apache.maven.plugins</groupId>
Guillaume Nodet91fab3b2009-04-27 10:01:58 +0000137 <artifactId>maven-resources-plugin</artifactId>
138 <executions>
139 <execution>
Guillaume Nodet3e9a4282009-05-04 16:30:02 +0000140 <id>copy-config-properties</id>
Guillaume Nodet91fab3b2009-04-27 10:01:58 +0000141 <!-- here the phase you need -->
142 <phase>compile</phase>
143 <goals>
144 <goal>copy-resources</goal>
145 </goals>
146 <configuration>
Guillaume Nodeta11a3ce2009-10-22 18:01:48 +0000147 <outputDirectory>${basedir}/target/classes/org/apache/felix/karaf/admin/etc</outputDirectory>
Guillaume Nodet3e9a4282009-05-04 16:30:02 +0000148 <resources>
Guillaume Nodet91fab3b2009-04-27 10:01:58 +0000149 <resource>
Guillaume Nodet077bac52009-07-09 08:29:14 +0000150 <directory>../../assembly/src/main/distribution/text/etc/</directory>
Guillaume Nodet91fab3b2009-04-27 10:01:58 +0000151 <includes>
Guillaume Nodet077bac52009-07-09 08:29:14 +0000152 <include>*.properties</include>
153 <include>*.cfg</include>
Guillaume Nodet91fab3b2009-04-27 10:01:58 +0000154 </includes>
Guillaume Nodet077bac52009-07-09 08:29:14 +0000155 <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 Nodet91fab3b2009-04-27 10:01:58 +0000160 </resource>
Guillaume Nodet3e9a4282009-05-04 16:30:02 +0000161 </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 Nodeta11a3ce2009-10-22 18:01:48 +0000172 <outputDirectory>${basedir}/target/classes/org/apache/felix/karaf/admin/etc</outputDirectory>
Guillaume Nodet3e9a4282009-05-04 16:30:02 +0000173 <resources>
174 <resource>
Guillaume Nodet077bac52009-07-09 08:29:14 +0000175 <directory>../../assembly/src/main/filtered-resources/etc</directory>
Guillaume Nodet3e9a4282009-05-04 16:30:02 +0000176 <filtering>true</filtering>
177 <includes>
Guillaume Nodet077bac52009-07-09 08:29:14 +0000178 <include>*.properties</include>
179 <include>*.cfg</include>
Guillaume Nodet3e9a4282009-05-04 16:30:02 +0000180 </includes>
181 </resource>
182 </resources>
183 </configuration>
Guillaume Nodet91fab3b2009-04-27 10:01:58 +0000184 </execution>
185 </executions>
Guillaume Nodet91fab3b2009-04-27 10:01:58 +0000186 </plugin>
187 <plugin>
188 <groupId>org.apache.felix</groupId>
189 <artifactId>maven-bundle-plugin</artifactId>
190 <configuration>
191 <instructions>
Guillaume Nodeta11a3ce2009-10-22 18:01:48 +0000192 <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 Nodet91fab3b2009-04-27 10:01:58 +0000197 <Import-Package>
Guillaume Nodeta11a3ce2009-10-22 18:01:48 +0000198 !org.apache.felix.karaf.admin,
199 !org.apache.felix.karaf.jpm,
200 javax.management,
201 javax.management.loading,
Guillaume Nodet077bac52009-07-09 08:29:14 +0000202 org.osgi.service.command,
203 org.apache.felix.gogo.commands,
Guillaume Nodet91a52c02009-09-18 20:14:54 +0000204 org.apache.felix.karaf.shell.console,
Guillaume Nodet91fab3b2009-04-27 10:01:58 +0000205 *
206 </Import-Package>
Guillaume Nodeta11a3ce2009-10-22 18:01:48 +0000207 <Private-Package>
Guillaume Nodetbf27d1e2009-10-22 18:37:15 +0000208 org.apache.felix.karaf.admin.bin,
209 org.apache.felix.karaf.admin.etc,
Guillaume Nodeta11a3ce2009-10-22 18:01:48 +0000210 org.apache.felix.karaf.admin.internal,
Guillaume Nodetbf27d1e2009-10-22 18:37:15 +0000211 org.apache.felix.karaf.jpm.impl,
Guillaume Nodeta11a3ce2009-10-22 18:01:48 +0000212 </Private-Package>
Guillaume Nodet3e9a4282009-05-04 16:30:02 +0000213 <_versionpolicy>${bnd.version.policy}</_versionpolicy>
Guillaume Nodet91fab3b2009-04-27 10:01:58 +0000214 </instructions>
215 </configuration>
216 </plugin>
Gert Vanthienenc3f669d2009-06-16 11:58:10 +0000217 <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 Nodet91fab3b2009-04-27 10:01:58 +0000227 </plugins>
228 </build>
229</project>