blob: 12425ecd8838b402a73dc10a151261131ea99b02 [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 Nodet1df301e2010-05-18 15:47:08 +000026 <version>1.6.0</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 Nodet1df301e2010-05-18 15:47:08 +000032 <version>1.6.0</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>
Chris Custine8764d8f2010-05-16 08:24:14 +000092 <directory>${project.basedir}/src/main/resources</directory>
Guillaume Nodet91fab3b2009-04-27 10:01:58 +000093 <includes>
94 <include>**/*</include>
95 </includes>
96 </resource>
Guillaume Nodet91fab3b2009-04-27 10:01:58 +000097 </resources>
98 <plugins>
99 <plugin>
100 <groupId>org.apache.maven.plugins</groupId>
101 <artifactId>maven-resources-plugin</artifactId>
102 <executions>
103 <execution>
Guillaume Nodet3e9a4282009-05-04 16:30:02 +0000104 <id>copy-config-properties</id>
Guillaume Nodet91fab3b2009-04-27 10:01:58 +0000105 <!-- here the phase you need -->
106 <phase>compile</phase>
107 <goals>
108 <goal>copy-resources</goal>
109 </goals>
110 <configuration>
Guillaume Nodeta11a3ce2009-10-22 18:01:48 +0000111 <outputDirectory>${basedir}/target/classes/org/apache/felix/karaf/admin/etc</outputDirectory>
Guillaume Nodet3e9a4282009-05-04 16:30:02 +0000112 <resources>
Guillaume Nodet91fab3b2009-04-27 10:01:58 +0000113 <resource>
Guillaume Nodet077bac52009-07-09 08:29:14 +0000114 <directory>../../assembly/src/main/distribution/text/etc/</directory>
Guillaume Nodet91fab3b2009-04-27 10:01:58 +0000115 <includes>
Guillaume Nodet077bac52009-07-09 08:29:14 +0000116 <include>*.properties</include>
117 <include>*.cfg</include>
Guillaume Nodet91fab3b2009-04-27 10:01:58 +0000118 </includes>
Guillaume Nodet077bac52009-07-09 08:29:14 +0000119 <excludes>
120 <exclude>org.apache.felix.karaf.shell.cfg</exclude>
121 <exclude>org.ops4j.pax.url.mvn.cfg</exclude>
122 <exclude>system.properties</exclude>
123 </excludes>
Guillaume Nodet91fab3b2009-04-27 10:01:58 +0000124 </resource>
Guillaume Nodet3e9a4282009-05-04 16:30:02 +0000125 </resources>
126 </configuration>
127 </execution>
128 <execution>
129 <id>copy-filtered</id>
130 <!-- here the phase you need -->
131 <phase>compile</phase>
132 <goals>
133 <goal>copy-resources</goal>
134 </goals>
135 <configuration>
Guillaume Nodeta11a3ce2009-10-22 18:01:48 +0000136 <outputDirectory>${basedir}/target/classes/org/apache/felix/karaf/admin/etc</outputDirectory>
Guillaume Nodet3e9a4282009-05-04 16:30:02 +0000137 <resources>
138 <resource>
Guillaume Nodet077bac52009-07-09 08:29:14 +0000139 <directory>../../assembly/src/main/filtered-resources/etc</directory>
Guillaume Nodet3e9a4282009-05-04 16:30:02 +0000140 <filtering>true</filtering>
141 <includes>
Guillaume Nodet077bac52009-07-09 08:29:14 +0000142 <include>*.properties</include>
143 <include>*.cfg</include>
Guillaume Nodet3e9a4282009-05-04 16:30:02 +0000144 </includes>
145 </resource>
146 </resources>
147 </configuration>
Guillaume Nodet91fab3b2009-04-27 10:01:58 +0000148 </execution>
149 </executions>
Guillaume Nodet91fab3b2009-04-27 10:01:58 +0000150 </plugin>
151 <plugin>
152 <groupId>org.apache.felix</groupId>
153 <artifactId>maven-bundle-plugin</artifactId>
154 <configuration>
155 <instructions>
Chris Custine8764d8f2010-05-16 08:24:14 +0000156 <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
Guillaume Nodeta11a3ce2009-10-22 18:01:48 +0000157 <Export-Package>
Chris Custine8764d8f2010-05-16 08:24:14 +0000158 org.apache.felix.karaf.admin;version=${project.version},
159 org.apache.felix.karaf.jpm;version=${project.version}
Guillaume Nodeta11a3ce2009-10-22 18:01:48 +0000160 </Export-Package>
Guillaume Nodet91fab3b2009-04-27 10:01:58 +0000161 <Import-Package>
Guillaume Nodeta11a3ce2009-10-22 18:01:48 +0000162 !org.apache.felix.karaf.admin,
163 !org.apache.felix.karaf.jpm,
164 javax.management,
165 javax.management.loading,
Guillaume Nodet077bac52009-07-09 08:29:14 +0000166 org.osgi.service.command,
167 org.apache.felix.gogo.commands,
Guillaume Nodet91a52c02009-09-18 20:14:54 +0000168 org.apache.felix.karaf.shell.console,
Guillaume Nodet91fab3b2009-04-27 10:01:58 +0000169 *
170 </Import-Package>
Guillaume Nodeta11a3ce2009-10-22 18:01:48 +0000171 <Private-Package>
Guillaume Nodetbf27d1e2009-10-22 18:37:15 +0000172 org.apache.felix.karaf.admin.bin,
173 org.apache.felix.karaf.admin.etc,
Guillaume Nodeta11a3ce2009-10-22 18:01:48 +0000174 org.apache.felix.karaf.admin.internal,
Guillaume Nodetbf27d1e2009-10-22 18:37:15 +0000175 org.apache.felix.karaf.jpm.impl,
Guillaume Nodeta11a3ce2009-10-22 18:01:48 +0000176 </Private-Package>
Guillaume Nodet3e9a4282009-05-04 16:30:02 +0000177 <_versionpolicy>${bnd.version.policy}</_versionpolicy>
Guillaume Nodet91fab3b2009-04-27 10:01:58 +0000178 </instructions>
179 </configuration>
180 </plugin>
Gert Vanthienenc3f669d2009-06-16 11:58:10 +0000181 <plugin>
182 <groupId>org.apache.maven.plugins</groupId>
183 <artifactId>maven-surefire-plugin</artifactId>
184 <configuration>
185 <excludes>
186 <!-- this is not a unit test but an application used for testing -->
187 <exclude>**/MainTest.java</exclude>
188 </excludes>
189 </configuration>
190 </plugin>
Guillaume Nodet91fab3b2009-04-27 10:01:58 +0000191 </plugins>
192 </build>
193</project>