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