blob: f775df210dd15ed953deb2ee453a1bd299f3ad07 [file] [log] [blame]
Karl Pauls5c093752008-04-22 15:36:51 +00001<!--
2 Licensed to the Apache Software Foundation (ASF) under one
3 or more contributor license agreements. See the NOTICE file
4 distributed with this work for additional information
5 regarding copyright ownership. The ASF licenses this file
6 to you under the Apache License, Version 2.0 (the
7 "License"); you may not use this file except in compliance
8 with the License. You may obtain a copy of the License at
9
10 http://www.apache.org/licenses/LICENSE-2.0
11
12 Unless required by applicable law or agreed to in writing,
13 software distributed under the License is distributed on an
14 "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 KIND, either express or implied. See the License for the
16 specific language governing permissions and limitations
17 under the License.
18-->
Carsten Ziegeler4fec0962008-01-11 16:13:31 +000019<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">
Alex Karasuluc15532e2006-03-06 19:42:54 +000020 <parent>
Alex Karasulu07d20492006-03-06 15:35:44 +000021 <groupId>org.apache.felix</groupId>
Karl Pauls040e4322009-05-10 22:09:56 +000022 <artifactId>felix-parent</artifactId>
Karl Paulsa6fc86b2011-09-22 12:46:54 +000023 <version>2.1</version>
Karl Pauls589e2b32007-07-11 18:29:29 +000024 <relativePath>../pom/pom.xml</relativePath>
Alex Karasulu07d20492006-03-06 15:35:44 +000025 </parent>
26 <modelVersion>4.0.0</modelVersion>
Richard S. Hall1da4e542006-11-02 21:45:44 +000027 <packaging>bundle</packaging>
Alex Karasulu07d20492006-03-06 15:35:44 +000028 <name>Apache Felix Main</name>
29 <artifactId>org.apache.felix.main</artifactId>
Karl Pauls2d958662011-09-22 15:33:15 +000030 <version>4.1.0-SNAPSHOT</version>
Karl Paulsac6574f2011-09-22 15:31:25 +000031 <scm>
Karl Pauls2d958662011-09-22 15:33:15 +000032 <connection>scm:svn:http://svn.apache.org/repos/asf/felix/trunk/main</connection>
33 <developerConnection>scm:svn:https://svn.apache.org/repos/asf/felix/trunk/main</developerConnection>
34 <url>http://svn.apache.org/repos/asf/felix/main</url>
Karl Paulsac6574f2011-09-22 15:31:25 +000035 </scm>
Alex Karasulu07d20492006-03-06 15:35:44 +000036 <dependencies>
37 <dependency>
38 <groupId>${pom.groupId}</groupId>
39 <artifactId>org.apache.felix.framework</artifactId>
Karl Pauls911d47b2010-02-04 23:19:54 +000040 <version>${framework.version}</version>
Alex Karasulu07d20492006-03-06 15:35:44 +000041 </dependency>
Alex Karasulu07d20492006-03-06 15:35:44 +000042 </dependencies>
Alex Karasuluc15532e2006-03-06 19:42:54 +000043 <properties>
Karl Paulsa59b6c42010-08-18 20:38:51 +000044 <log.level>4</log.level>
Richard S. Hall726b6162008-10-09 15:54:32 +000045 <dollar>$</dollar>
Karl Paulsac6574f2011-09-22 15:31:25 +000046 <framework.version>4.0.0</framework.version>
Richard S. Hall0eb83c52011-08-11 16:46:31 +000047 <gogo.runtime.version>0.10.0</gogo.runtime.version>
48 <gogo.shell.version>0.10.0</gogo.shell.version>
Karl Paulsac6574f2011-09-22 15:31:25 +000049 <gogo.command.version>0.12.0</gogo.command.version>
Richard S. Halld30eeef2011-09-20 19:43:39 +000050 <obr.version>1.6.6</obr.version>
Alex Karasuluc15532e2006-03-06 19:42:54 +000051 </properties>
Stuart McCullochf202a822008-10-22 11:55:02 +000052 <profiles>
53 <profile>
54 <id>release</id>
55 <properties>
Karl Pauls46d13742009-11-01 19:35:18 +000056 <log.level>1</log.level>
Karl Pauls48d887c2009-04-26 20:54:43 +000057 <dollar>$</dollar>
Stuart McCullochf202a822008-10-22 11:55:02 +000058 </properties>
59 </profile>
60 </profiles>
Alex Karasulu07d20492006-03-06 15:35:44 +000061 <build>
62 <plugins>
63 <plugin>
Richard S. Hall1da4e542006-11-02 21:45:44 +000064 <groupId>org.apache.felix</groupId>
Richard S. Hall797bc982007-05-21 18:35:07 +000065 <artifactId>maven-bundle-plugin</artifactId>
Richard S. Hall2e755502011-09-21 20:35:48 +000066 <version>2.3.5</version>
Richard S. Hall1da4e542006-11-02 21:45:44 +000067 <extensions>true</extensions>
Alex Karasulu07d20492006-03-06 15:35:44 +000068 <configuration>
Richard S. Hall1da4e542006-11-02 21:45:44 +000069 <instructions>
Richard S. Hall27305522007-03-28 15:28:25 +000070 <_donotcopy>(CVS|.svn|config.properties)</_donotcopy>
Richard S. Hall1da4e542006-11-02 21:45:44 +000071 <Main-Class>org.apache.felix.main.Main</Main-Class>
Richard S. Hallf94a18f2008-09-23 16:25:54 +000072 <Bundle-SymbolicName>org.apache.felix.main</Bundle-SymbolicName>
Richard S. Hall1da4e542006-11-02 21:45:44 +000073 <Bundle-Name>Apache Felix</Bundle-Name>
74 <Bundle-Description>OSGi R4 framework.</Bundle-Description>
Carsten Ziegelercf6e51b2008-04-17 06:33:59 +000075 <Bundle-Vendor>The Apache Software Foundation</Bundle-Vendor>
Richard S. Hall42cf9c92008-10-16 20:22:58 +000076 <Embed-Dependency>*;artifactId=org.apache.felix.framework;inline=true</Embed-Dependency>
77 <Private-Package>org.apache.felix.main.*</Private-Package>
Karl Pauls32154c72009-10-02 15:52:43 +000078 <Export-Package>!org.osgi.service.log, !org.osgi.service.obr,org.osgi.*</Export-Package>
Richard S. Hall1da4e542006-11-02 21:45:44 +000079 <Import-Package>!*</Import-Package>
Richard S. Hall1da4e542006-11-02 21:45:44 +000080 </instructions>
Alex Karasulu07d20492006-03-06 15:35:44 +000081 </configuration>
82 </plugin>
Alex Karasuluc15532e2006-03-06 19:42:54 +000083 <plugin>
Karl Paulsaa573ad2007-07-19 19:09:54 +000084 <groupId>org.apache.maven.plugins</groupId>
85 <artifactId>maven-dependency-plugin</artifactId>
86 <executions>
87 <execution>
Karl Paulsaa573ad2007-07-19 19:09:54 +000088 <id>copy</id>
Karl Pauls72502b92010-02-04 21:25:09 +000089 <phase>package</phase>
Karl Paulsaa573ad2007-07-19 19:09:54 +000090 <goals>
91 <goal>copy</goal>
92 </goals>
93 <configuration>
94 <artifactItems>
95 <artifactItem>
Richard S. Hallc0e3ef72010-05-24 19:35:19 +000096 <groupId>${pom.groupId}</groupId>
Richard S. Hallf65896e2010-05-05 15:21:54 +000097 <artifactId>org.apache.felix.gogo.runtime</artifactId>
98 <version>${gogo.runtime.version}</version>
99 <type>jar</type>
100 <overWrite>true</overWrite>
101 <outputDirectory>${project.basedir}/bundle</outputDirectory>
102 </artifactItem>
103 <artifactItem>
Richard S. Hallc0e3ef72010-05-24 19:35:19 +0000104 <groupId>${pom.groupId}</groupId>
105 <artifactId>org.apache.felix.gogo.shell</artifactId>
106 <version>${gogo.shell.version}</version>
Karl Paulsaa573ad2007-07-19 19:09:54 +0000107 <type>jar</type>
108 <overWrite>true</overWrite>
Karl Pauls72502b92010-02-04 21:25:09 +0000109 <outputDirectory>${project.basedir}/bundle</outputDirectory>
Karl Paulsaa573ad2007-07-19 19:09:54 +0000110 </artifactItem>
111 <artifactItem>
Richard S. Hallc0e3ef72010-05-24 19:35:19 +0000112 <groupId>${pom.groupId}</groupId>
113 <artifactId>org.apache.felix.gogo.command</artifactId>
114 <version>${gogo.command.version}</version>
Karl Paulsaa573ad2007-07-19 19:09:54 +0000115 <type>jar</type>
116 <overWrite>true</overWrite>
Karl Pauls72502b92010-02-04 21:25:09 +0000117 <outputDirectory>${project.basedir}/bundle</outputDirectory>
Karl Paulsaa573ad2007-07-19 19:09:54 +0000118 </artifactItem>
119 <artifactItem>
120 <groupId>${pom.groupId}</groupId>
121 <artifactId>org.apache.felix.bundlerepository</artifactId>
Karl Pauls72502b92010-02-04 21:25:09 +0000122 <version>${obr.version}</version>
Karl Paulsaa573ad2007-07-19 19:09:54 +0000123 <type>jar</type>
124 <overWrite>true</overWrite>
Karl Pauls72502b92010-02-04 21:25:09 +0000125 <outputDirectory>${project.basedir}/bundle</outputDirectory>
Karl Paulsaa573ad2007-07-19 19:09:54 +0000126 </artifactItem>
127 </artifactItems>
128 </configuration>
129 </execution>
130 </executions>
131 </plugin>
132 <plugin>
Alex Karasuluc15532e2006-03-06 19:42:54 +0000133 <artifactId>maven-antrun-plugin</artifactId>
134 <executions>
135 <execution>
Karl Pauls72502b92010-02-04 21:25:09 +0000136 <phase>package</phase>
Alex Karasuluc15532e2006-03-06 19:42:54 +0000137 <configuration>
138 <tasks>
Karl Pauls2b8bd372008-04-22 13:13:49 +0000139 <delete dir="${basedir}/bin" />
140 <mkdir dir="${basedir}/bin" />
141 <delete dir="${basedir}/conf" />
142 <mkdir dir="${basedir}/conf" />
Karl Pauls2b8bd372008-04-22 13:13:49 +0000143 <copy file="${basedir}/target/org.apache.felix.main-${pom.version}.jar" tofile="${basedir}/bin/felix.jar" />
144 <copy file="${basedir}/target/classes/config.properties" todir="${basedir}/conf" />
Alex Karasuluc15532e2006-03-06 19:42:54 +0000145 </tasks>
146 </configuration>
147 <goals>
148 <goal>run</goal>
149 </goals>
150 </execution>
151 </executions>
152 </plugin>
Alex Karasulu07d20492006-03-06 15:35:44 +0000153 </plugins>
Alex Karasuluc15532e2006-03-06 19:42:54 +0000154 <resources>
155 <resource>
156 <directory>src/main/resources</directory>
157 <filtering>true</filtering>
158 </resource>
Richard S. Hall1da4e542006-11-02 21:45:44 +0000159 </resources>
Alex Karasulu07d20492006-03-06 15:35:44 +0000160 </build>
Karl Pauls250a7142008-04-22 13:27:15 +0000161</project>