blob: c95f6faa529a46b416d6703cf68429bff871138c [file] [log] [blame]
Karl Paulsdbc43eb2008-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 Pauls4d95e902009-05-10 22:09:56 +000022 <artifactId>felix-parent</artifactId>
Richard S. Hall53b66712010-05-27 18:45:08 +000023 <version>1.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 Pauls275862c2011-03-28 19:54:07 +000030 <version>3.3.0-SNAPSHOT</version>
Alex Karasulu07d20492006-03-06 15:35:44 +000031 <dependencies>
32 <dependency>
33 <groupId>${pom.groupId}</groupId>
34 <artifactId>org.apache.felix.framework</artifactId>
Karl Pauls53fb3122010-02-04 23:19:54 +000035 <version>${framework.version}</version>
Alex Karasulu07d20492006-03-06 15:35:44 +000036 </dependency>
Alex Karasulu07d20492006-03-06 15:35:44 +000037 </dependencies>
Alex Karasuluc15532e2006-03-06 19:42:54 +000038 <properties>
Karl Paulse3e4ac62010-08-18 20:38:51 +000039 <log.level>4</log.level>
Richard S. Hallf3ce0022008-10-09 15:54:32 +000040 <dollar>$</dollar>
Karl Paulsc2a54fd2011-03-28 19:58:24 +000041 <framework.version>3.3.0-SNAPSHOT</framework.version>
Karl Pauls645a8042011-03-28 19:51:21 +000042 <gogo.runtime.version>0.8.0</gogo.runtime.version>
43 <gogo.shell.version>0.8.0</gogo.shell.version>
44 <gogo.command.version>0.8.0</gogo.command.version>
Richard S. Hallcb3466a2010-05-07 18:28:00 +000045 <obr.version>1.6.2</obr.version>
Alex Karasuluc15532e2006-03-06 19:42:54 +000046 </properties>
Stuart McCullochc0a68ae2008-10-22 11:55:02 +000047 <profiles>
48 <profile>
49 <id>release</id>
50 <properties>
Karl Paulsaf293a32009-11-01 19:35:18 +000051 <log.level>1</log.level>
Karl Pauls40cda5f2009-04-26 20:54:43 +000052 <dollar>$</dollar>
Stuart McCullochc0a68ae2008-10-22 11:55:02 +000053 </properties>
54 </profile>
55 </profiles>
Alex Karasulu07d20492006-03-06 15:35:44 +000056 <build>
57 <plugins>
58 <plugin>
Richard S. Hall1da4e542006-11-02 21:45:44 +000059 <groupId>org.apache.felix</groupId>
Richard S. Hall797bc982007-05-21 18:35:07 +000060 <artifactId>maven-bundle-plugin</artifactId>
Karl Pauls993c1dd2009-10-11 19:40:40 +000061 <version>1.4.3</version>
Richard S. Hall1da4e542006-11-02 21:45:44 +000062 <extensions>true</extensions>
Alex Karasulu07d20492006-03-06 15:35:44 +000063 <configuration>
Richard S. Hall1da4e542006-11-02 21:45:44 +000064 <instructions>
Richard S. Hall27305522007-03-28 15:28:25 +000065 <_donotcopy>(CVS|.svn|config.properties)</_donotcopy>
Richard S. Hall1da4e542006-11-02 21:45:44 +000066 <Main-Class>org.apache.felix.main.Main</Main-Class>
Richard S. Hall41d5d332008-09-23 16:25:54 +000067 <Bundle-SymbolicName>org.apache.felix.main</Bundle-SymbolicName>
Richard S. Hall1da4e542006-11-02 21:45:44 +000068 <Bundle-Name>Apache Felix</Bundle-Name>
69 <Bundle-Description>OSGi R4 framework.</Bundle-Description>
Carsten Ziegeler90f0b9f2008-04-17 06:33:59 +000070 <Bundle-Vendor>The Apache Software Foundation</Bundle-Vendor>
Richard S. Hall8155b232008-10-16 20:22:58 +000071 <Embed-Dependency>*;artifactId=org.apache.felix.framework;inline=true</Embed-Dependency>
72 <Private-Package>org.apache.felix.main.*</Private-Package>
Karl Pauls74869f22009-10-02 15:52:43 +000073 <Export-Package>!org.osgi.service.log, !org.osgi.service.obr,org.osgi.*</Export-Package>
Richard S. Hall1da4e542006-11-02 21:45:44 +000074 <Import-Package>!*</Import-Package>
Richard S. Hallfdbc2302010-05-28 18:17:59 +000075 <Include-Resource>META-INF/LICENSE=LICENSE,META-INF/NOTICE=NOTICE,META-INF/DEPENDENCIES=DEPENDENCIES,{src/main/resources/}</Include-Resource>
Richard S. Hall1da4e542006-11-02 21:45:44 +000076 </instructions>
Alex Karasulu07d20492006-03-06 15:35:44 +000077 </configuration>
78 </plugin>
Alex Karasuluc15532e2006-03-06 19:42:54 +000079 <plugin>
Karl Paulsa559c112009-03-31 21:10:19 +000080 <groupId>org.codehaus.mojo</groupId>
81 <artifactId>rat-maven-plugin</artifactId>
82 <configuration>
83 <excludeSubProjects>false</excludeSubProjects>
84 <useEclipseDefaultExcludes>true</useEclipseDefaultExcludes>
85 <useMavenDefaultExcludes>true</useMavenDefaultExcludes>
86 <excludes>
87 <param>doc/*</param>
88 <param>maven-eclipse.xml</param>
89 <param>.checkstyle</param>
90 <param>.externalToolBuilders/*</param>
91 </excludes>
92 </configuration>
93 </plugin>
94 <plugin>
Karl Paulsaa573ad2007-07-19 19:09:54 +000095 <groupId>org.apache.maven.plugins</groupId>
96 <artifactId>maven-dependency-plugin</artifactId>
97 <executions>
98 <execution>
Karl Paulsaa573ad2007-07-19 19:09:54 +000099 <id>copy</id>
Karl Paulsf4ca94b2010-02-04 21:25:09 +0000100 <phase>package</phase>
Karl Paulsaa573ad2007-07-19 19:09:54 +0000101 <goals>
102 <goal>copy</goal>
103 </goals>
104 <configuration>
105 <artifactItems>
106 <artifactItem>
Richard S. Hallc8e35102010-05-24 19:35:19 +0000107 <groupId>${pom.groupId}</groupId>
Richard S. Hall22b907c2010-05-05 15:21:54 +0000108 <artifactId>org.apache.felix.gogo.runtime</artifactId>
109 <version>${gogo.runtime.version}</version>
110 <type>jar</type>
111 <overWrite>true</overWrite>
112 <outputDirectory>${project.basedir}/bundle</outputDirectory>
113 </artifactItem>
114 <artifactItem>
Richard S. Hallc8e35102010-05-24 19:35:19 +0000115 <groupId>${pom.groupId}</groupId>
116 <artifactId>org.apache.felix.gogo.shell</artifactId>
117 <version>${gogo.shell.version}</version>
Karl Paulsaa573ad2007-07-19 19:09:54 +0000118 <type>jar</type>
119 <overWrite>true</overWrite>
Karl Paulsf4ca94b2010-02-04 21:25:09 +0000120 <outputDirectory>${project.basedir}/bundle</outputDirectory>
Karl Paulsaa573ad2007-07-19 19:09:54 +0000121 </artifactItem>
122 <artifactItem>
Richard S. Hallc8e35102010-05-24 19:35:19 +0000123 <groupId>${pom.groupId}</groupId>
124 <artifactId>org.apache.felix.gogo.command</artifactId>
125 <version>${gogo.command.version}</version>
Karl Paulsaa573ad2007-07-19 19:09:54 +0000126 <type>jar</type>
127 <overWrite>true</overWrite>
Karl Paulsf4ca94b2010-02-04 21:25:09 +0000128 <outputDirectory>${project.basedir}/bundle</outputDirectory>
Karl Paulsaa573ad2007-07-19 19:09:54 +0000129 </artifactItem>
130 <artifactItem>
131 <groupId>${pom.groupId}</groupId>
132 <artifactId>org.apache.felix.bundlerepository</artifactId>
Karl Paulsf4ca94b2010-02-04 21:25:09 +0000133 <version>${obr.version}</version>
Karl Paulsaa573ad2007-07-19 19:09:54 +0000134 <type>jar</type>
135 <overWrite>true</overWrite>
Karl Paulsf4ca94b2010-02-04 21:25:09 +0000136 <outputDirectory>${project.basedir}/bundle</outputDirectory>
Karl Paulsaa573ad2007-07-19 19:09:54 +0000137 </artifactItem>
138 </artifactItems>
139 </configuration>
140 </execution>
141 </executions>
142 </plugin>
143 <plugin>
Alex Karasuluc15532e2006-03-06 19:42:54 +0000144 <artifactId>maven-antrun-plugin</artifactId>
145 <executions>
146 <execution>
Karl Paulsf4ca94b2010-02-04 21:25:09 +0000147 <phase>package</phase>
Alex Karasuluc15532e2006-03-06 19:42:54 +0000148 <configuration>
149 <tasks>
Karl Pauls35e237d2008-04-22 13:13:49 +0000150 <delete dir="${basedir}/bin" />
151 <mkdir dir="${basedir}/bin" />
152 <delete dir="${basedir}/conf" />
153 <mkdir dir="${basedir}/conf" />
Karl Pauls35e237d2008-04-22 13:13:49 +0000154 <copy file="${basedir}/target/org.apache.felix.main-${pom.version}.jar" tofile="${basedir}/bin/felix.jar" />
155 <copy file="${basedir}/target/classes/config.properties" todir="${basedir}/conf" />
Alex Karasuluc15532e2006-03-06 19:42:54 +0000156 </tasks>
157 </configuration>
158 <goals>
159 <goal>run</goal>
160 </goals>
161 </execution>
162 </executions>
163 </plugin>
Alex Karasulu07d20492006-03-06 15:35:44 +0000164 </plugins>
Alex Karasuluc15532e2006-03-06 19:42:54 +0000165 <resources>
166 <resource>
167 <directory>src/main/resources</directory>
168 <filtering>true</filtering>
169 </resource>
Richard S. Hall1da4e542006-11-02 21:45:44 +0000170 </resources>
Alex Karasulu07d20492006-03-06 15:35:44 +0000171 </build>
Karl Pauls5066dab2008-04-22 13:27:15 +0000172</project>