| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| |
| Licensed to the Apache Software Foundation (ASF) under one or more |
| contributor license agreements. See the NOTICE file distributed with |
| this work for additional information regarding copyright ownership. |
| The ASF licenses this file to You under the Apache License, Version 2.0 |
| (the "License"); you may not use this file except in compliance with |
| the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| |
| --> |
| |
| <!-- $Rev$ $Date$ --> |
| |
| <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> |
| <modelVersion>4.0.0</modelVersion> |
| <parent> |
| <artifactId>xbean</artifactId> |
| <groupId>org.apache.xbean</groupId> |
| <version>4.3-SNAPSHOT</version> |
| </parent> |
| <artifactId>xbean-finder-shaded</artifactId> |
| <packaging>jar</packaging> |
| <name>Apache XBean :: Finder shaded (repackaged)</name> |
| |
| <properties> |
| <xbean.osgi.export>org.apache.xbean.finder;version=${project.version}</xbean.osgi.export> |
| <xbean.osgi.import>org.apache.xbean.finder;version=${project.version},org.apache.xbean.asm5;version=5,org.apache.xbean.asm5.shade.commons;version=5</xbean.osgi.import> |
| </properties> |
| |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-shade-plugin</artifactId> |
| <executions> |
| <execution> |
| <phase>package</phase> |
| <goals> |
| <goal>shade</goal> |
| </goals> |
| <configuration> |
| <createSourcesJar>true</createSourcesJar> |
| <relocations> |
| <relocation> |
| <pattern>org.apache.xbean.asm5.original.commons.EmptyVisitor</pattern> |
| <shadedPattern>org.apache.xbean.asm5.shade.commons.EmptyVisitor</shadedPattern> |
| </relocation> |
| <relocation> |
| <pattern>org.objectweb.asm</pattern> |
| <shadedPattern>org.apache.xbean.asm5</shadedPattern> |
| </relocation> |
| </relocations> |
| <artifactSet> |
| <includes> |
| <include>org.apache.xbean:xbean-finder</include> |
| </includes> |
| <excludes> |
| <exclude>*:*:sources</exclude> |
| <exclude>org.apache.xbean:xbean-asm5-shaded</exclude> |
| <exclude>org.apache.xbean:xbean-asm-util</exclude> |
| <exclude>junit:junit</exclude> |
| </excludes> |
| </artifactSet> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-antrun-plugin</artifactId> |
| <executions> |
| <execution> |
| <phase>package</phase> |
| <goals> |
| <goal>run</goal> |
| </goals> |
| <configuration> |
| <tasks> |
| <delete dir="${project.build.directory}/classes" /> |
| <unzip src="${project.build.directory}/xbean-finder-shaded-${project.version}.jar" dest="${project.build.directory}/classes" /> |
| </tasks> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.felix</groupId> |
| <artifactId>maven-bundle-plugin</artifactId> |
| <configuration> |
| <instructions> |
| <Export-Package> |
| org.apache.xbean.finder.*;version=${project.version};-noimport:=true |
| </Export-Package> |
| <Import-Package> |
| org.apache.xbean.asm5.*;version="[5.0,6.0)", |
| * |
| </Import-Package> |
| <Private-Package /> |
| <_removeheaders> |
| Ignore-Package,Private-Package,Include-Resource,Embed-Dependency |
| </_removeheaders> |
| </instructions> |
| </configuration> |
| <executions> |
| <execution> |
| <id>bundle-manifest</id> |
| <phase>package</phase> |
| <goals> |
| <goal>bundle</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| <dependencies> |
| <dependency> |
| <groupId>org.apache.xbean</groupId> |
| <artifactId>xbean-finder</artifactId> |
| <version>${project.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.xbean</groupId> |
| <artifactId>xbean-asm5-shaded</artifactId> |
| <version>${project.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.osgi</groupId> |
| <artifactId>org.osgi.core</artifactId> |
| <version>4.3.1</version> |
| <scope>provided</scope> |
| </dependency> |
| </dependencies> |
| </project> |