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> |
Guillaume Nodet | 05fac96 | 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 | 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> |
| 33 | <version>1.2.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 | |
| 36 | <dependencies> |
| 37 | <dependency> |
Guillaume Nodet | b417d98 | 2009-05-05 15:46:15 +0000 | [diff] [blame] | 38 | <groupId>org.eclipse</groupId> |
| 39 | <artifactId>osgi</artifactId> |
| 40 | <scope>provided</scope> |
Guillaume Nodet | 05fac96 | 2009-04-27 10:01:58 +0000 | [diff] [blame] | 41 | </dependency> |
| 42 | <dependency> |
| 43 | <groupId>org.apache.felix</groupId> |
Guillaume Nodet | b417d98 | 2009-05-05 15:46:15 +0000 | [diff] [blame] | 44 | <artifactId>org.apache.felix.framework</artifactId> |
| 45 | <scope>provided</scope> |
Guillaume Nodet | 05fac96 | 2009-04-27 10:01:58 +0000 | [diff] [blame] | 46 | </dependency> |
| 47 | <dependency> |
| 48 | <groupId>org.apache.servicemix.bundles</groupId> |
| 49 | <artifactId>org.apache.servicemix.bundles.junit</artifactId> |
| 50 | <scope>test</scope> |
| 51 | </dependency> |
| 52 | </dependencies> |
| 53 | <build> |
| 54 | <plugins> |
| 55 | <plugin> |
| 56 | <groupId>org.apache.felix</groupId> |
| 57 | <artifactId>maven-bundle-plugin</artifactId> |
| 58 | <configuration> |
| 59 | <instructions> |
| 60 | <_donotcopy>(CVS|.svn|config.properties)</_donotcopy> |
Gert Vanthienen | f54a839 | 2009-05-02 19:57:13 +0000 | [diff] [blame] | 61 | <Main-Class>org.apache.felix.karaf.main.Main</Main-Class> |
Guillaume Nodet | 1becb5b | 2009-05-04 07:56:47 +0000 | [diff] [blame] | 62 | <Bundle-Name>Apache Felix Karaf</Bundle-Name> |
Guillaume Nodet | 05fac96 | 2009-04-27 10:01:58 +0000 | [diff] [blame] | 63 | <Bundle-Description>OSGi R4 framework.</Bundle-Description> |
| 64 | <Bundle-SymbolicName>${pom.artifactId}</Bundle-SymbolicName> |
Gert Vanthienen | f54a839 | 2009-05-02 19:57:13 +0000 | [diff] [blame] | 65 | <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] | 66 | <!-- |
Guillaume Nodet | 05fac96 | 2009-04-27 10:01:58 +0000 | [diff] [blame] | 67 | <Private-Package> |
Guillaume Nodet | b417d98 | 2009-05-05 15:46:15 +0000 | [diff] [blame] | 68 | org.apache.felix.*;-split-package:=merge-first, |
| 69 | org.eclipse.*;-split-package:=merge-first, |
| 70 | org.osgi.*;-split-package:=merge-first, |
Guillaume Nodet | 05fac96 | 2009-04-27 10:01:58 +0000 | [diff] [blame] | 71 | META-INF;-split-package:=merge-first |
| 72 | </Private-Package> |
| 73 | <Import-Package>!*</Import-Package> |
Guillaume Nodet | b417d98 | 2009-05-05 15:46:15 +0000 | [diff] [blame] | 74 | --> |
Guillaume Nodet | 05fac96 | 2009-04-27 10:01:58 +0000 | [diff] [blame] | 75 | </instructions> |
| 76 | <unpackBundle>true</unpackBundle> |
| 77 | </configuration> |
| 78 | </plugin> |
Guillaume Nodet | b417d98 | 2009-05-05 15:46:15 +0000 | [diff] [blame] | 79 | <!-- |
Guillaume Nodet | 05fac96 | 2009-04-27 10:01:58 +0000 | [diff] [blame] | 80 | <plugin> |
| 81 | <groupId>org.apache.maven.plugins</groupId> |
| 82 | <artifactId>maven-shade-plugin</artifactId> |
| 83 | <executions> |
| 84 | <execution> |
| 85 | <phase>package</phase> |
| 86 | <goals> |
| 87 | <goal>shade</goal> |
| 88 | </goals> |
| 89 | <configuration> |
| 90 | <artifactSet> |
| 91 | <includes> |
Guillaume Nodet | b417d98 | 2009-05-05 15:46:15 +0000 | [diff] [blame] | 92 | <include>org.eclipse:osgi</include> |
Guillaume Nodet | 05fac96 | 2009-04-27 10:01:58 +0000 | [diff] [blame] | 93 | <include>org.apache.felix:org.apache.felix.framework</include> |
Guillaume Nodet | 05fac96 | 2009-04-27 10:01:58 +0000 | [diff] [blame] | 94 | <include>${project.groupId}:${project.artifactId}</include> |
| 95 | </includes> |
| 96 | </artifactSet> |
| 97 | <filters> |
| 98 | <filter> |
Guillaume Nodet | b417d98 | 2009-05-05 15:46:15 +0000 | [diff] [blame] | 99 | <artifact>org.eclipse:osgi</artifact> |
| 100 | <includes> |
| 101 | <include>org/osgi/**</include> |
| 102 | <include>org/eclipse/**</include> |
| 103 | <include>hookconfigurators.properties</include> |
| 104 | </includes> |
Guillaume Nodet | 05fac96 | 2009-04-27 10:01:58 +0000 | [diff] [blame] | 105 | </filter> |
| 106 | <filter> |
Guillaume Nodet | b417d98 | 2009-05-05 15:46:15 +0000 | [diff] [blame] | 107 | <artifact>org.apache.felix:org.apache.felix.framework</artifact> |
| 108 | <includes> |
| 109 | <include>org/apache/felix/**</include> |
| 110 | </includes> |
Guillaume Nodet | 05fac96 | 2009-04-27 10:01:58 +0000 | [diff] [blame] | 111 | </filter> |
| 112 | </filters> |
| 113 | <createSourcesJar>${createSourcesJar}</createSourcesJar> |
| 114 | <promoteTransitiveDependencies>true</promoteTransitiveDependencies> |
| 115 | <createDependencyReducedPom>true</createDependencyReducedPom> |
| 116 | </configuration> |
| 117 | </execution> |
| 118 | </executions> |
| 119 | </plugin> |
Guillaume Nodet | b417d98 | 2009-05-05 15:46:15 +0000 | [diff] [blame] | 120 | --> |
Guillaume Nodet | 05fac96 | 2009-04-27 10:01:58 +0000 | [diff] [blame] | 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> |
Guillaume Nodet | b417d98 | 2009-05-05 15:46:15 +0000 | [diff] [blame] | 151 | <groupId>org.eclipse</groupId> |
| 152 | <artifactId>osgi</artifactId> |
| 153 | <classifier>sources</classifier> |
| 154 | </artifactItem> |
| 155 | <artifactItem> |
Guillaume Nodet | 05fac96 | 2009-04-27 10:01:58 +0000 | [diff] [blame] | 156 | <groupId>org.apache.felix</groupId> |
| 157 | <artifactId>org.osgi.core</artifactId> |
| 158 | <classifier>sources</classifier> |
| 159 | </artifactItem> |
| 160 | <artifactItem> |
| 161 | <groupId>org.apache.felix</groupId> |
| 162 | <artifactId>org.apache.felix.framework</artifactId> |
| 163 | <classifier>sources</classifier> |
| 164 | </artifactItem> |
| 165 | </artifactItems> |
| 166 | <outputDirectory>${project.build.directory}/sources</outputDirectory> |
| 167 | </configuration> |
| 168 | </execution> |
| 169 | </executions> |
| 170 | </plugin> |
| 171 | <plugin> |
| 172 | <groupId>org.apache.maven.plugins</groupId> |
| 173 | <artifactId>maven-source-plugin</artifactId> |
| 174 | <executions> |
| 175 | <execution> |
| 176 | <id>attach-sources</id> |
| 177 | <phase>process-classes</phase> |
| 178 | <goals> |
| 179 | <goal>jar</goal> |
| 180 | </goals> |
| 181 | </execution> |
| 182 | </executions> |
| 183 | </plugin> |
| 184 | <plugin> |
| 185 | <groupId>org.apache.maven.plugins</groupId> |
| 186 | <artifactId>maven-javadoc-plugin</artifactId> |
| 187 | <executions> |
| 188 | <execution> |
| 189 | <id>package</id> |
| 190 | <phase>package</phase> |
| 191 | <goals> |
| 192 | <goal>jar</goal> |
| 193 | </goals> |
| 194 | </execution> |
| 195 | </executions> |
| 196 | <configuration> |
| 197 | <minmemory>128m</minmemory> |
| 198 | <maxmemory>512m</maxmemory> |
| 199 | <sourcepath>${project.build.directory}/sources</sourcepath> |
| 200 | </configuration> |
| 201 | </plugin> |
| 202 | </plugins> |
| 203 | </build> |
| 204 | </profile> |
| 205 | </profiles> |
| 206 | |
| 207 | </project> |