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> |
| 25 | <groupId>org.apache.servicemix.kernel</groupId> |
| 26 | <artifactId>kernel</artifactId> |
| 27 | <version>1.2.0-SNAPSHOT</version> |
| 28 | </parent> |
| 29 | |
| 30 | <groupId>org.apache.servicemix.kernel</groupId> |
| 31 | <artifactId>org.apache.servicemix.kernel.client</artifactId> |
| 32 | <packaging>bundle</packaging> |
| 33 | <version>1.2.0-SNAPSHOT</version> |
| 34 | <name>Apache ServiceMix Kernel :: Client</name> |
| 35 | |
| 36 | <dependencies> |
| 37 | <dependency> |
| 38 | <groupId>org.apache.servicemix.kernel.gshell</groupId> |
| 39 | <artifactId>org.apache.servicemix.kernel.gshell.core</artifactId> |
| 40 | <exclusions> |
| 41 | <exclusion> |
| 42 | <groupId>org.slf4j</groupId> |
| 43 | <artifactId>slf4j-jdk14</artifactId> |
| 44 | </exclusion> |
| 45 | </exclusions> |
| 46 | </dependency> |
| 47 | <dependency> |
| 48 | <groupId>org.slf4j</groupId> |
| 49 | <artifactId>slf4j-api</artifactId> |
| 50 | </dependency> |
| 51 | <dependency> |
| 52 | <groupId>org.slf4j</groupId> |
| 53 | <artifactId>slf4j-nop</artifactId> |
| 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> |
| 64 | <Main-Class>org.apache.servicemix.kernel.client.Main</Main-Class> |
| 65 | <Class-Path> |
| 66 | ../system/com/google/code/sshd/sshd/${sshd.version}/sshd-${sshd.version}.jar |
| 67 | ../system/org/apache/servicemix/kernel/gshell/org.apache.servicemix.kernel.gshell.core/${pom.version}/org.apache.servicemix.kernel.gshell.core-${pom.version}.jar |
| 68 | ../system/org/apache/servicemix/bundles/org.apache.servicemix.bundles.mina/${mina.version}/org.apache.servicemix.bundles.mina-${mina.version}.jar |
| 69 | ../system/org/apache/servicemix/bundles/org.apache.servicemix.bundles.jline/${jline.version}/org.apache.servicemix.bundles.jline-${jline.version}.jar |
| 70 | </Class-Path> |
| 71 | <Bundle-Name>Apache ServiceMix Shell Client</Bundle-Name> |
| 72 | <Bundle-Description>Shell client bundle for Apache ServiceMix Kernel.</Bundle-Description> |
| 73 | <Bundle-SymbolicName>${pom.artifactId}</Bundle-SymbolicName> |
| 74 | <Export-Package>org.apache.servicemix.kernel.client</Export-Package> |
| 75 | <Private-Package> |
| 76 | org.apache.servicemix.kernel.client;-split-package:=merge-first, |
| 77 | org.slf4j;-split-package:=merge-first, |
| 78 | org.slf4j.spi;-split-package:=merge-first, |
| 79 | org.slf4j.helpers;-split-package:=merge-first, |
| 80 | org.slf4j.impl;-split-package:=merge-first, |
| 81 | META-INF;-split-package:=merge-first |
| 82 | </Private-Package> |
| 83 | <Import-Package>!*</Import-Package> |
| 84 | </instructions> |
| 85 | <unpackBundle>true</unpackBundle> |
| 86 | </configuration> |
| 87 | </plugin> |
| 88 | <plugin> |
| 89 | <groupId>org.apache.maven.plugins</groupId> |
| 90 | <artifactId>maven-shade-plugin</artifactId> |
| 91 | <executions> |
| 92 | <execution> |
| 93 | <phase>package</phase> |
| 94 | <goals> |
| 95 | <goal>shade</goal> |
| 96 | </goals> |
| 97 | <configuration> |
| 98 | <artifactSet> |
| 99 | <includes> |
| 100 | <include>${project.groupId}:${project.artifactId}</include> |
| 101 | <include>org.slf4j:slf4j-api</include> |
| 102 | <include>org.slf4j:slf4j-nop</include> |
| 103 | </includes> |
| 104 | </artifactSet> |
| 105 | <filters> |
| 106 | <filter> |
| 107 | <artifact>org.slf4j:slf4j-api</artifact> |
| 108 | <excludes> |
| 109 | <exclude>org/slf4j/**</exclude> |
| 110 | </excludes> |
| 111 | </filter> |
| 112 | <filter> |
| 113 | <artifact>org.slf4j:slf4j-nop</artifact> |
| 114 | <excludes> |
| 115 | <exclude>org/slf4j/**</exclude> |
| 116 | </excludes> |
| 117 | </filter> |
| 118 | </filters> |
| 119 | <createSourcesJar>${createSourcesJar}</createSourcesJar> |
| 120 | <promoteTransitiveDependencies>true</promoteTransitiveDependencies> |
| 121 | <createDependencyReducedPom>true</createDependencyReducedPom> |
| 122 | </configuration> |
| 123 | </execution> |
| 124 | </executions> |
| 125 | </plugin> |
| 126 | </plugins> |
| 127 | <resources> |
| 128 | <resource> |
| 129 | <directory>src/main/resources</directory> |
| 130 | <filtering>true</filtering> |
| 131 | </resource> |
| 132 | </resources> |
| 133 | </build> |
| 134 | |
| 135 | |
| 136 | </project> |