blob: c0c13000c648babd5d8fdecac2e27b2b466f3432 [file] [log] [blame]
Guillaume Nodet91fab3b2009-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>
Gert Vanthienen607b8522009-05-02 19:57:13 +000025 <groupId>org.apache.felix.karaf.gshell</groupId>
Guillaume Nodet91fab3b2009-04-27 10:01:58 +000026 <artifactId>gshell</artifactId>
Guillaume Nodetabe56002009-08-25 09:03:55 +000027 <version>0.9.0-SNAPSHOT</version>
Guillaume Nodet91fab3b2009-04-27 10:01:58 +000028 </parent>
29
Gert Vanthienen607b8522009-05-02 19:57:13 +000030 <groupId>org.apache.felix.karaf.gshell</groupId>
31 <artifactId>org.apache.felix.karaf.gshell.admin</artifactId>
Guillaume Nodet91fab3b2009-04-27 10:01:58 +000032 <packaging>bundle</packaging>
Guillaume Nodetabe56002009-08-25 09:03:55 +000033 <version>0.9.0-SNAPSHOT</version>
Gert Vanthienen607b8522009-05-02 19:57:13 +000034 <name>Apache Felix Karaf :: GShell Admin</name>
Guillaume Nodet91fab3b2009-04-27 10:01:58 +000035
36 <description>
37 Provides administration commands
38 </description>
39
Guillaume Nodet91fab3b2009-04-27 10:01:58 +000040 <dependencies>
41 <dependency>
Gert Vanthienen607b8522009-05-02 19:57:13 +000042 <groupId>org.apache.felix.karaf.gshell</groupId>
Guillaume Nodet077bac52009-07-09 08:29:14 +000043 <artifactId>org.apache.felix.karaf.gshell.console</artifactId>
Guillaume Nodet91fab3b2009-04-27 10:01:58 +000044 </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 Nodet5cd03792009-09-08 18:37:13 +000059 <groupId>org.ops4j.pax.logging</groupId>
60 <artifactId>pax-logging-api</artifactId>
61 <scope>test</scope>
62 </dependency>
63
64 <dependency>
Guillaume Nodet91fab3b2009-04-27 10:01:58 +000065 <groupId>org.apache.servicemix.bundles</groupId>
66 <artifactId>org.apache.servicemix.bundles.junit</artifactId>
67 <scope>test</scope>
68 </dependency>
Guillaume Nodet5cd03792009-09-08 18:37:13 +000069
70 <dependency>
71 <groupId>org.easymock</groupId>
72 <artifactId>easymockclassextension</artifactId>
73 <version>${easymock.version}</version>
74 <scope>test</scope>
75 </dependency>
Guillaume Nodet91fab3b2009-04-27 10:01:58 +000076 </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 Nodet3e9a4282009-05-04 16:30:02 +000086 <!--
Guillaume Nodet91fab3b2009-04-27 10:01:58 +000087 <resource>
88 <directory>${pom.basedir}/src/main/filtered-resources</directory>
89 <filtering>true</filtering>
90 <includes>
91 <include>**/*</include>
92 </includes>
93 </resource>
Guillaume Nodet3e9a4282009-05-04 16:30:02 +000094 -->
Guillaume Nodet91fab3b2009-04-27 10:01:58 +000095 </resources>
Guillaume Nodetd9936152009-09-08 09:32:55 +000096 <filters>
97 <filter>target/filter.txt</filter>
98 </filters>
Guillaume Nodet91fab3b2009-04-27 10:01:58 +000099 <plugins>
100 <plugin>
101 <groupId>org.apache.maven.plugins</groupId>
Guillaume Nodetd9936152009-09-08 09:32:55 +0000102 <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 Nodet91fab3b2009-04-27 10:01:58 +0000148 <artifactId>maven-resources-plugin</artifactId>
149 <executions>
150 <execution>
Guillaume Nodet3e9a4282009-05-04 16:30:02 +0000151 <id>copy-config-properties</id>
Guillaume Nodet91fab3b2009-04-27 10:01:58 +0000152 <!-- here the phase you need -->
153 <phase>compile</phase>
154 <goals>
155 <goal>copy-resources</goal>
156 </goals>
157 <configuration>
Gert Vanthienen607b8522009-05-02 19:57:13 +0000158 <outputDirectory>${basedir}/target/classes/org/apache/felix/karaf/gshell/admin/etc</outputDirectory>
Guillaume Nodet3e9a4282009-05-04 16:30:02 +0000159 <resources>
Guillaume Nodet91fab3b2009-04-27 10:01:58 +0000160 <resource>
Guillaume Nodet077bac52009-07-09 08:29:14 +0000161 <directory>../../assembly/src/main/distribution/text/etc/</directory>
Guillaume Nodet91fab3b2009-04-27 10:01:58 +0000162 <includes>
Guillaume Nodet077bac52009-07-09 08:29:14 +0000163 <include>*.properties</include>
164 <include>*.cfg</include>
Guillaume Nodet91fab3b2009-04-27 10:01:58 +0000165 </includes>
Guillaume Nodet077bac52009-07-09 08:29:14 +0000166 <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 Nodet91fab3b2009-04-27 10:01:58 +0000171 </resource>
Guillaume Nodet3e9a4282009-05-04 16:30:02 +0000172 </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 Nodet077bac52009-07-09 08:29:14 +0000183 <outputDirectory>${basedir}/target/classes/org/apache/felix/karaf/gshell/admin/etc</outputDirectory>
Guillaume Nodet3e9a4282009-05-04 16:30:02 +0000184 <resources>
185 <resource>
Guillaume Nodet077bac52009-07-09 08:29:14 +0000186 <directory>../../assembly/src/main/filtered-resources/etc</directory>
Guillaume Nodet3e9a4282009-05-04 16:30:02 +0000187 <filtering>true</filtering>
188 <includes>
Guillaume Nodet077bac52009-07-09 08:29:14 +0000189 <include>*.properties</include>
190 <include>*.cfg</include>
Guillaume Nodet3e9a4282009-05-04 16:30:02 +0000191 </includes>
192 </resource>
193 </resources>
194 </configuration>
Guillaume Nodet91fab3b2009-04-27 10:01:58 +0000195 </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 Nodet3e9a4282009-05-04 16:30:02 +0000211 <Export-Package>${pom.artifactId}*;version=${project.version}</Export-Package>
Guillaume Nodet91fab3b2009-04-27 10:01:58 +0000212 <Import-Package>
Guillaume Nodet077bac52009-07-09 08:29:14 +0000213 org.osgi.service.command,
214 org.apache.felix.gogo.commands,
215 org.apache.felix.karaf.gshell.console,
Guillaume Nodet91fab3b2009-04-27 10:01:58 +0000216 *
217 </Import-Package>
Guillaume Nodet4713c732009-05-04 07:02:13 +0000218 <Private-Package>org.apache.felix.karaf.jpm.*</Private-Package>
Guillaume Nodet3e9a4282009-05-04 16:30:02 +0000219 <_versionpolicy>${bnd.version.policy}</_versionpolicy>
Guillaume Nodet91fab3b2009-04-27 10:01:58 +0000220 </instructions>
221 </configuration>
222 </plugin>
Gert Vanthienenc3f669d2009-06-16 11:58:10 +0000223 <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 Nodet91fab3b2009-04-27 10:01:58 +0000233 </plugins>
234 </build>
235</project>