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