| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| |
| Copyright (c) 1997, 2018 Oracle and/or its affiliates. All rights reserved. |
| |
| This program and the accompanying materials are made available under the |
| terms of the Eclipse Public License v. 2.0, which is available at |
| http://www.eclipse.org/legal/epl-2.0. |
| |
| This Source Code may also be made available under the following Secondary |
| Licenses when the conditions for such availability set forth in the |
| Eclipse Public License v. 2.0 are satisfied: GNU General Public License, |
| version 2 with the GNU Classpath Exception, which is available at |
| https://www.gnu.org/software/classpath/license.html. |
| |
| SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 |
| |
| --> |
| |
| <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> |
| <groupId>org.glassfish.hk2</groupId> |
| <artifactId>external</artifactId> |
| <version>2.5.0-SNAPSHOT</version> |
| </parent> |
| <groupId>org.glassfish.hk2.external</groupId> |
| <artifactId>asm-repackaged</artifactId> |
| |
| <name>ASM library repackaged as OSGi bundle</name> |
| <description>org.objectweb.asm version ${asm.version} repackaged as a module</description> |
| |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-shade-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>step1-shade</id> |
| <phase>package</phase> |
| <goals> |
| <goal>shade</goal> |
| </goals> |
| <configuration> |
| <createSourcesJar>true</createSourcesJar> |
| <shadeSourcesContent>true</shadeSourcesContent> |
| <relocations> |
| <relocation> |
| <pattern>org.objectweb.asm</pattern> |
| <shadedPattern>org.glassfish.hk2.external.org.objectweb.asm</shadedPattern> |
| </relocation> |
| </relocations> |
| <transformers> |
| <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"> |
| <manifestEntries> |
| <Bundle-ManifestVersion>2</Bundle-ManifestVersion> |
| <Bundle-SymbolicName>org.glassfish.hk2.external.asm-repackaged</Bundle-SymbolicName> |
| <Bundle-Version>6.0</Bundle-Version> |
| <Export-Package> |
| org.glassfish.hk2.external.org.objectweb.asm.signature;version="6.0",org.glassfish.hk2.external.org.objectweb.asm.commons;version="6.0",org.glassfish.hk2.external.org.objectweb.asm.attrs;version="6.0",org.glassfish.hk2.external.org.objectweb.asm.util;version="6.0",org.glassfish.hk2.external.org.objectweb.asm.tree.analysis;version="6.0",org.glassfish.hk2.external.org.objectweb.asm;version="6.0",org.glassfish.hk2.external.org.objectweb.asm.xml;version="6.0",org.glassfish.hk2.external.org.objectweb.asm.tree;version="6.0" |
| </Export-Package> |
| <Import-Package> |
| javax.xml.transform;resolution:=optional,javax.xml.transform.sax;resolution:=optional,javax.xml.transform.stream;resolution:=optional,org.xml.sax;resolution:=optional,org.xml.sax.ext;resolution:=optional,org.xml.sax.helpers;resolution:=optional |
| </Import-Package> |
| </manifestEntries> |
| </transformer> |
| </transformers> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-antrun-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>step2-unpack-sources-jar</id> |
| <phase>package</phase> |
| <goals> |
| <goal>run</goal> |
| </goals> |
| <configuration> |
| <target> |
| <unjar src="${project.build.directory}/${project.build.finalName}-sources.jar" dest="${project.build.directory}/alternateLocation" /> |
| </target> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.codehaus.mojo</groupId> |
| <artifactId>build-helper-maven-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>step3-add-source</id> |
| <phase>package</phase> |
| <goals> |
| <goal>add-source</goal> |
| </goals> |
| <configuration> |
| <sources> |
| <source>${project.build.directory}/alternateLocation</source> |
| </sources> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-source-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>create-empty-javadoc-jar</id> |
| <goals> |
| <goal>jar</goal> |
| </goals> |
| <configuration> |
| <classesDirectory> |
| ${project.build.directory}/javadoc |
| </classesDirectory> |
| <classifier>javadoc</classifier> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| |
| <dependencies> |
| <dependency> |
| <groupId>org.ow2.asm</groupId> |
| <artifactId>asm</artifactId> |
| <optional>true</optional> |
| </dependency> |
| </dependencies> |
| </project> |