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