blob: 4c6b459669513652120245e3a6254646ab00e5d7 [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 Nodet91fab3b2009-04-27 10:01:58 +000059 <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 Nodet3e9a4282009-05-04 16:30:02 +000073 <!--
Guillaume Nodet91fab3b2009-04-27 10:01:58 +000074 <resource>
75 <directory>${pom.basedir}/src/main/filtered-resources</directory>
76 <filtering>true</filtering>
77 <includes>
78 <include>**/*</include>
79 </includes>
80 </resource>
Guillaume Nodet3e9a4282009-05-04 16:30:02 +000081 -->
Guillaume Nodet91fab3b2009-04-27 10:01:58 +000082 </resources>
Guillaume Nodetd9936152009-09-08 09:32:55 +000083 <filters>
84 <filter>target/filter.txt</filter>
85 </filters>
Guillaume Nodet91fab3b2009-04-27 10:01:58 +000086 <plugins>
87 <plugin>
88 <groupId>org.apache.maven.plugins</groupId>
Guillaume Nodetd9936152009-09-08 09:32:55 +000089 <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 Nodet91fab3b2009-04-27 10:01:58 +0000135 <artifactId>maven-resources-plugin</artifactId>
136 <executions>
137 <execution>
Guillaume Nodet3e9a4282009-05-04 16:30:02 +0000138 <id>copy-config-properties</id>
Guillaume Nodet91fab3b2009-04-27 10:01:58 +0000139 <!-- here the phase you need -->
140 <phase>compile</phase>
141 <goals>
142 <goal>copy-resources</goal>
143 </goals>
144 <configuration>
Gert Vanthienen607b8522009-05-02 19:57:13 +0000145 <outputDirectory>${basedir}/target/classes/org/apache/felix/karaf/gshell/admin/etc</outputDirectory>
Guillaume Nodet3e9a4282009-05-04 16:30:02 +0000146 <resources>
Guillaume Nodet91fab3b2009-04-27 10:01:58 +0000147 <resource>
Guillaume Nodet077bac52009-07-09 08:29:14 +0000148 <directory>../../assembly/src/main/distribution/text/etc/</directory>
Guillaume Nodet91fab3b2009-04-27 10:01:58 +0000149 <includes>
Guillaume Nodet077bac52009-07-09 08:29:14 +0000150 <include>*.properties</include>
151 <include>*.cfg</include>
Guillaume Nodet91fab3b2009-04-27 10:01:58 +0000152 </includes>
Guillaume Nodet077bac52009-07-09 08:29:14 +0000153 <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 Nodet91fab3b2009-04-27 10:01:58 +0000158 </resource>
Guillaume Nodet3e9a4282009-05-04 16:30:02 +0000159 </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 Nodet077bac52009-07-09 08:29:14 +0000170 <outputDirectory>${basedir}/target/classes/org/apache/felix/karaf/gshell/admin/etc</outputDirectory>
Guillaume Nodet3e9a4282009-05-04 16:30:02 +0000171 <resources>
172 <resource>
Guillaume Nodet077bac52009-07-09 08:29:14 +0000173 <directory>../../assembly/src/main/filtered-resources/etc</directory>
Guillaume Nodet3e9a4282009-05-04 16:30:02 +0000174 <filtering>true</filtering>
175 <includes>
Guillaume Nodet077bac52009-07-09 08:29:14 +0000176 <include>*.properties</include>
177 <include>*.cfg</include>
Guillaume Nodet3e9a4282009-05-04 16:30:02 +0000178 </includes>
179 </resource>
180 </resources>
181 </configuration>
Guillaume Nodet91fab3b2009-04-27 10:01:58 +0000182 </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 Nodet3e9a4282009-05-04 16:30:02 +0000198 <Export-Package>${pom.artifactId}*;version=${project.version}</Export-Package>
Guillaume Nodet91fab3b2009-04-27 10:01:58 +0000199 <Import-Package>
Guillaume Nodet077bac52009-07-09 08:29:14 +0000200 org.osgi.service.command,
201 org.apache.felix.gogo.commands,
202 org.apache.felix.karaf.gshell.console,
Guillaume Nodet91fab3b2009-04-27 10:01:58 +0000203 *
204 </Import-Package>
Guillaume Nodet4713c732009-05-04 07:02:13 +0000205 <Private-Package>org.apache.felix.karaf.jpm.*</Private-Package>
Guillaume Nodet3e9a4282009-05-04 16:30:02 +0000206 <_versionpolicy>${bnd.version.policy}</_versionpolicy>
Guillaume Nodet91fab3b2009-04-27 10:01:58 +0000207 </instructions>
208 </configuration>
209 </plugin>
Gert Vanthienenc3f669d2009-06-16 11:58:10 +0000210 <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 Nodet91fab3b2009-04-27 10:01:58 +0000220 </plugins>
221 </build>
222</project>