Guillaume Nodet | 916f28a | 2009-09-22 09:11:12 +0000 | [diff] [blame] | 1 | <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 Nodet | 91fab3b | 2009-04-27 10:01:58 +0000 | [diff] [blame] | 2 | |
| 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> |
Gert Vanthienen | 607b852 | 2009-05-02 19:57:13 +0000 | [diff] [blame] | 24 | <groupId>org.apache.felix.karaf</groupId> |
Freeman Yue Fang | 3eb6d29 | 2009-05-14 06:16:32 +0000 | [diff] [blame] | 25 | <artifactId>karaf</artifactId> |
Guillaume Nodet | 3107d11 | 2010-05-20 20:08:17 +0000 | [diff] [blame] | 26 | <version>1.7.0-SNAPSHOT</version> |
Guillaume Nodet | 91fab3b | 2009-04-27 10:01:58 +0000 | [diff] [blame] | 27 | </parent> |
| 28 | |
Gert Vanthienen | 607b852 | 2009-05-02 19:57:13 +0000 | [diff] [blame] | 29 | <groupId>org.apache.felix.karaf</groupId> |
| 30 | <artifactId>org.apache.felix.karaf.main</artifactId> |
Guillaume Nodet | 91fab3b | 2009-04-27 10:01:58 +0000 | [diff] [blame] | 31 | <packaging>bundle</packaging> |
Guillaume Nodet | 3107d11 | 2010-05-20 20:08:17 +0000 | [diff] [blame] | 32 | <version>1.7.0-SNAPSHOT</version> |
Gert Vanthienen | 607b852 | 2009-05-02 19:57:13 +0000 | [diff] [blame] | 33 | <name>Apache Felix Karaf :: Main</name> |
Guillaume Nodet | 91fab3b | 2009-04-27 10:01:58 +0000 | [diff] [blame] | 34 | |
Guillaume Nodet | 91a52c0 | 2009-09-18 20:14:54 +0000 | [diff] [blame] | 35 | <properties> |
| 36 | <appendedResourcesDirectory>${basedir}/../etc/appended-resources</appendedResourcesDirectory> |
| 37 | </properties> |
| 38 | |
Guillaume Nodet | 91fab3b | 2009-04-27 10:01:58 +0000 | [diff] [blame] | 39 | <dependencies> |
| 40 | <dependency> |
Guillaume Nodet | 350b150 | 2009-05-05 15:46:15 +0000 | [diff] [blame] | 41 | <groupId>org.eclipse</groupId> |
| 42 | <artifactId>osgi</artifactId> |
| 43 | <scope>provided</scope> |
Guillaume Nodet | 91fab3b | 2009-04-27 10:01:58 +0000 | [diff] [blame] | 44 | </dependency> |
| 45 | <dependency> |
| 46 | <groupId>org.apache.felix</groupId> |
Guillaume Nodet | 350b150 | 2009-05-05 15:46:15 +0000 | [diff] [blame] | 47 | <artifactId>org.apache.felix.framework</artifactId> |
| 48 | <scope>provided</scope> |
Guillaume Nodet | 91fab3b | 2009-04-27 10:01:58 +0000 | [diff] [blame] | 49 | </dependency> |
| 50 | <dependency> |
| 51 | <groupId>org.apache.servicemix.bundles</groupId> |
| 52 | <artifactId>org.apache.servicemix.bundles.junit</artifactId> |
| 53 | <scope>test</scope> |
| 54 | </dependency> |
| 55 | </dependencies> |
| 56 | <build> |
| 57 | <plugins> |
| 58 | <plugin> |
| 59 | <groupId>org.apache.felix</groupId> |
| 60 | <artifactId>maven-bundle-plugin</artifactId> |
| 61 | <configuration> |
| 62 | <instructions> |
| 63 | <_donotcopy>(CVS|.svn|config.properties)</_donotcopy> |
Gert Vanthienen | 607b852 | 2009-05-02 19:57:13 +0000 | [diff] [blame] | 64 | <Main-Class>org.apache.felix.karaf.main.Main</Main-Class> |
Guillaume Nodet | 874ecc8 | 2009-05-04 07:56:47 +0000 | [diff] [blame] | 65 | <Bundle-Name>Apache Felix Karaf</Bundle-Name> |
Guillaume Nodet | 91fab3b | 2009-04-27 10:01:58 +0000 | [diff] [blame] | 66 | <Bundle-Description>OSGi R4 framework.</Bundle-Description> |
Chris Custine | 8764d8f | 2010-05-16 08:24:14 +0000 | [diff] [blame] | 67 | <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName> |
| 68 | <Export-Package>org.apache.felix.karaf.main.spi.*;version=${project.version}</Export-Package> |
Guillaume Nodet | 350b150 | 2009-05-05 15:46:15 +0000 | [diff] [blame] | 69 | <!-- |
Guillaume Nodet | 91fab3b | 2009-04-27 10:01:58 +0000 | [diff] [blame] | 70 | <Private-Package> |
Guillaume Nodet | 350b150 | 2009-05-05 15:46:15 +0000 | [diff] [blame] | 71 | org.apache.felix.*;-split-package:=merge-first, |
| 72 | org.eclipse.*;-split-package:=merge-first, |
| 73 | org.osgi.*;-split-package:=merge-first, |
Guillaume Nodet | 91fab3b | 2009-04-27 10:01:58 +0000 | [diff] [blame] | 74 | META-INF;-split-package:=merge-first |
| 75 | </Private-Package> |
| 76 | <Import-Package>!*</Import-Package> |
Guillaume Nodet | 350b150 | 2009-05-05 15:46:15 +0000 | [diff] [blame] | 77 | --> |
Guillaume Nodet | 91fab3b | 2009-04-27 10:01:58 +0000 | [diff] [blame] | 78 | </instructions> |
| 79 | <unpackBundle>true</unpackBundle> |
| 80 | </configuration> |
| 81 | </plugin> |
Guillaume Nodet | 350b150 | 2009-05-05 15:46:15 +0000 | [diff] [blame] | 82 | <!-- |
Guillaume Nodet | 91fab3b | 2009-04-27 10:01:58 +0000 | [diff] [blame] | 83 | <plugin> |
| 84 | <groupId>org.apache.maven.plugins</groupId> |
| 85 | <artifactId>maven-shade-plugin</artifactId> |
| 86 | <executions> |
| 87 | <execution> |
| 88 | <phase>package</phase> |
| 89 | <goals> |
| 90 | <goal>shade</goal> |
| 91 | </goals> |
| 92 | <configuration> |
| 93 | <artifactSet> |
| 94 | <includes> |
Guillaume Nodet | 350b150 | 2009-05-05 15:46:15 +0000 | [diff] [blame] | 95 | <include>org.eclipse:osgi</include> |
Guillaume Nodet | 91fab3b | 2009-04-27 10:01:58 +0000 | [diff] [blame] | 96 | <include>org.apache.felix:org.apache.felix.framework</include> |
Guillaume Nodet | 91fab3b | 2009-04-27 10:01:58 +0000 | [diff] [blame] | 97 | <include>${project.groupId}:${project.artifactId}</include> |
| 98 | </includes> |
| 99 | </artifactSet> |
| 100 | <filters> |
| 101 | <filter> |
Guillaume Nodet | 350b150 | 2009-05-05 15:46:15 +0000 | [diff] [blame] | 102 | <artifact>org.eclipse:osgi</artifact> |
| 103 | <includes> |
| 104 | <include>org/osgi/**</include> |
| 105 | <include>org/eclipse/**</include> |
| 106 | <include>hookconfigurators.properties</include> |
| 107 | </includes> |
Guillaume Nodet | 91fab3b | 2009-04-27 10:01:58 +0000 | [diff] [blame] | 108 | </filter> |
| 109 | <filter> |
Guillaume Nodet | 350b150 | 2009-05-05 15:46:15 +0000 | [diff] [blame] | 110 | <artifact>org.apache.felix:org.apache.felix.framework</artifact> |
| 111 | <includes> |
| 112 | <include>org/apache/felix/**</include> |
| 113 | </includes> |
Guillaume Nodet | 91fab3b | 2009-04-27 10:01:58 +0000 | [diff] [blame] | 114 | </filter> |
| 115 | </filters> |
| 116 | <createSourcesJar>${createSourcesJar}</createSourcesJar> |
| 117 | <promoteTransitiveDependencies>true</promoteTransitiveDependencies> |
| 118 | <createDependencyReducedPom>true</createDependencyReducedPom> |
| 119 | </configuration> |
| 120 | </execution> |
| 121 | </executions> |
| 122 | </plugin> |
Guillaume Nodet | 350b150 | 2009-05-05 15:46:15 +0000 | [diff] [blame] | 123 | --> |
Guillaume Nodet | 91fab3b | 2009-04-27 10:01:58 +0000 | [diff] [blame] | 124 | </plugins> |
| 125 | <resources> |
| 126 | <resource> |
| 127 | <directory>src/main/resources</directory> |
| 128 | <filtering>true</filtering> |
| 129 | </resource> |
| 130 | </resources> |
| 131 | </build> |
| 132 | |
| 133 | <profiles> |
| 134 | <profile> |
| 135 | <id>deploy</id> |
| 136 | <properties> |
| 137 | <createSourcesJar>true</createSourcesJar> |
| 138 | </properties> |
| 139 | <build> |
| 140 | <plugins> |
| 141 | <plugin> |
| 142 | <groupId>org.apache.maven.plugins</groupId> |
| 143 | <artifactId>maven-dependency-plugin</artifactId> |
| 144 | <executions> |
| 145 | <execution> |
| 146 | <id>unpack-sources</id> |
| 147 | <phase>generate-sources</phase> |
| 148 | <goals> |
| 149 | <goal>unpack</goal> |
| 150 | </goals> |
| 151 | <configuration> |
| 152 | <artifactItems> |
| 153 | <artifactItem> |
Guillaume Nodet | 350b150 | 2009-05-05 15:46:15 +0000 | [diff] [blame] | 154 | <groupId>org.eclipse</groupId> |
| 155 | <artifactId>osgi</artifactId> |
| 156 | <classifier>sources</classifier> |
| 157 | </artifactItem> |
| 158 | <artifactItem> |
Guillaume Nodet | 91fab3b | 2009-04-27 10:01:58 +0000 | [diff] [blame] | 159 | <groupId>org.apache.felix</groupId> |
| 160 | <artifactId>org.osgi.core</artifactId> |
| 161 | <classifier>sources</classifier> |
| 162 | </artifactItem> |
| 163 | <artifactItem> |
| 164 | <groupId>org.apache.felix</groupId> |
| 165 | <artifactId>org.apache.felix.framework</artifactId> |
| 166 | <classifier>sources</classifier> |
| 167 | </artifactItem> |
| 168 | </artifactItems> |
| 169 | <outputDirectory>${project.build.directory}/sources</outputDirectory> |
| 170 | </configuration> |
| 171 | </execution> |
| 172 | </executions> |
| 173 | </plugin> |
| 174 | <plugin> |
| 175 | <groupId>org.apache.maven.plugins</groupId> |
| 176 | <artifactId>maven-source-plugin</artifactId> |
| 177 | <executions> |
| 178 | <execution> |
| 179 | <id>attach-sources</id> |
| 180 | <phase>process-classes</phase> |
| 181 | <goals> |
| 182 | <goal>jar</goal> |
| 183 | </goals> |
| 184 | </execution> |
| 185 | </executions> |
| 186 | </plugin> |
| 187 | <plugin> |
| 188 | <groupId>org.apache.maven.plugins</groupId> |
| 189 | <artifactId>maven-javadoc-plugin</artifactId> |
| 190 | <executions> |
| 191 | <execution> |
| 192 | <id>package</id> |
| 193 | <phase>package</phase> |
| 194 | <goals> |
| 195 | <goal>jar</goal> |
| 196 | </goals> |
| 197 | </execution> |
| 198 | </executions> |
| 199 | <configuration> |
| 200 | <minmemory>128m</minmemory> |
| 201 | <maxmemory>512m</maxmemory> |
| 202 | <sourcepath>${project.build.directory}/sources</sourcepath> |
| 203 | </configuration> |
| 204 | </plugin> |
| 205 | </plugins> |
| 206 | </build> |
| 207 | </profile> |
| 208 | </profiles> |
| 209 | |
| 210 | </project> |