| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
| 2 |
<!-- |
| 3 |
|
| 4 |
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. |
| 5 |
|
| 6 |
Copyright (c) 2010-2016 Oracle and/or its affiliates. All rights reserved. |
| 7 |
|
| 8 |
The contents of this file are subject to the terms of either the GNU |
| 9 |
General Public License Version 2 only ("GPL") or the Common Development |
| 10 |
and Distribution License("CDDL") (collectively, the "License"). You |
| 11 |
may not use this file except in compliance with the License. You can |
| 12 |
obtain a copy of the License at |
| 13 |
http://glassfish.java.net/public/CDDL+GPL_1_1.html |
| 14 |
or packager/legal/LICENSE.txt. See the License for the specific |
| 15 |
language governing permissions and limitations under the License. |
| 16 |
|
| 17 |
When distributing the software, include this License Header Notice in each |
| 18 |
file and include the License file at packager/legal/LICENSE.txt. |
| 19 |
|
| 20 |
GPL Classpath Exception: |
| 21 |
Oracle designates this particular file as subject to the "Classpath" |
| 22 |
exception as provided by Oracle in the GPL Version 2 section of the License |
| 23 |
file that accompanied this code. |
| 24 |
|
| 25 |
Modifications: |
| 26 |
If applicable, add the following below the License Header, with the fields |
| 27 |
enclosed by brackets [] replaced by your own identifying information: |
| 28 |
"Portions Copyright [year] [name of copyright owner]" |
| 29 |
|
| 30 |
Contributor(s): |
| 31 |
If you wish your version of this file to be governed by only the CDDL or |
| 32 |
only the GPL Version 2, indicate your decision by adding "[Contributor] |
| 33 |
elects to include this software in this distribution under the [CDDL or GPL |
| 34 |
Version 2] license." If you don't indicate a single choice of license, a |
| 35 |
recipient has the option to distribute your version of this file under |
| 36 |
either the CDDL, the GPL Version 2 or to extend the choice of license to |
| 37 |
its licensees as provided above. However, if you add GPL Version 2 code |
| 38 |
and therefore, elected the GPL Version 2 license, then the option applies |
| 39 |
only if the new code is made subject to such option by the copyright |
| 40 |
holder. |
| 41 |
|
| 42 |
--> |
| 43 |
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 44 |
|
| 45 |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> |
| 46 |
<modelVersion>4.0.0</modelVersion> |
| 47 |
<parent> |
| 48 |
<groupId>com.sun.jersey.glassfish.v3.osgi</groupId> |
| 49 |
<artifactId>osgi-modules</artifactId> |
| 50 |
<version>1.20-SNAPSHOT</version> |
| 51 |
</parent> |
| 52 |
<artifactId>jersey-gf-servlet</artifactId> |
| 53 |
<packaging>jar</packaging> |
| 54 |
<name>Jersey servlet library repackaged as OSGi bundle for GlassFish</name> |
| 55 |
<description>Module repackaging of the Jersey servlet library</description> |
| 56 |
|
| 57 |
<build> |
| 58 |
<resources> |
| 59 |
<resource> |
| 60 |
<directory>${basedir}/src/main/resources</directory> |
| 61 |
<filtering>true</filtering> |
| 62 |
</resource> |
| 63 |
</resources> |
| 64 |
<plugins> |
| 65 |
<plugin> |
| 66 |
<groupId>org.apache.felix</groupId> |
| 67 |
<artifactId>maven-bundle-plugin</artifactId> |
| 68 |
<configuration> |
| 69 |
<instructions> |
| 70 |
<Private-Package> |
| 71 |
com.sun.jersey.server.impl.cdi, |
| 72 |
com.sun.jersey.server.impl.managedbeans |
| 73 |
</Private-Package> |
| 74 |
<Export-Package> |
| 75 |
com.sun.jersey.api.container.servlet, |
| 76 |
com.sun.jersey.api.core.servlet, |
| 77 |
com.sun.jersey.spi.container.servlet, |
| 78 |
com.sun.jersey.spi.scanning.servlet, |
| 79 |
<!-- the following is being used internally in GF REST API code! :-( --> |
| 80 |
com.sun.jersey.server.impl.container.servlet, |
| 81 |
<!-- the following must be visible by the jersey-gf-server module |
| 82 |
so that the EJB resource method dispatcher takes precedence over the other dispatchers |
| 83 |
registered by the jersey-gf-server module --> |
| 84 |
com.sun.jersey.server.impl.ejb |
| 85 |
</Export-Package> |
| 86 |
<Import-Package> |
| 87 |
com.sun.jersey.core.osgi;resolution:=optional, |
| 88 |
com.sun.net.httpserver;resolution:="optional", |
| 89 |
javax.annotation.*;resolution:=optional, |
| 90 |
javax.ejb;version="3.1";resolution:="optional", |
| 91 |
javax.enterprise.*;resolution:=optional, |
| 92 |
javax.inject.*;resolution:=optional, |
| 93 |
javax.interceptor;version="3.1";resolution:="optional", |
| 94 |
javax.mail.*;resolution:="optional", |
| 95 |
javax.persistence;resolution:="optional", |
| 96 |
javax.servlet.*;resolution:="optional", |
| 97 |
javax.xml.bind.*;resolution:="optional", |
| 98 |
javax.xml.namespace;resolution:="optional", |
| 99 |
javax.xml.transform.*;resolution:="optional", |
| 100 |
* |
| 101 |
</Import-Package> |
| 102 |
<DynamicImport-Package>*</DynamicImport-Package> |
| 103 |
<Embed-Dependency>jersey-servlet;inline=META-INF/services/**|META-INF/taglib.tld|META-INF/jersey-module-version</Embed-Dependency> |
| 104 |
</instructions> |
| 105 |
<unpackBundle>true</unpackBundle> |
| 106 |
</configuration> |
| 107 |
<executions> |
| 108 |
<execution> |
| 109 |
<id>osgi-bundle</id> |
| 110 |
<phase>package</phase> |
| 111 |
<goals> |
| 112 |
<goal>bundle</goal> |
| 113 |
</goals> |
| 114 |
</execution> |
| 115 |
</executions> |
| 116 |
</plugin> |
| 117 |
</plugins> |
| 118 |
</build> |
| 119 |
|
| 120 |
<profiles> |
| 121 |
<profile> |
| 122 |
<id>release</id> |
| 123 |
<build> |
| 124 |
<plugins> |
| 125 |
<plugin> <!-- want to unpack sources from individual modules --> |
| 126 |
<groupId>org.apache.maven.plugins</groupId> |
| 127 |
<artifactId>maven-dependency-plugin</artifactId> |
| 128 |
<executions> |
| 129 |
<execution> |
| 130 |
<id>unpack</id> |
| 131 |
<phase>generate-sources</phase> |
| 132 |
<goals> |
| 133 |
<goal>unpack</goal> |
| 134 |
</goals> |
| 135 |
<configuration> |
| 136 |
<artifactItems> |
| 137 |
<artifactItem> |
| 138 |
<groupId>com.sun.jersey</groupId> |
| 139 |
<artifactId>jersey-servlet</artifactId> |
| 140 |
<version>${project.version}</version> |
| 141 |
<type>jar</type> |
| 142 |
<classifier>sources</classifier> |
| 143 |
<overWrite>false</overWrite> |
| 144 |
<outputDirectory>${gen-src-dir}</outputDirectory> |
| 145 |
</artifactItem> |
| 146 |
</artifactItems> |
| 147 |
</configuration> |
| 148 |
</execution> |
| 149 |
</executions> |
| 150 |
</plugin> |
| 151 |
<plugin> <!-- generate javadoc from sources unpacked above --> |
| 152 |
<groupId>org.apache.maven.plugins</groupId> |
| 153 |
<artifactId>maven-javadoc-plugin</artifactId> |
| 154 |
<configuration> |
| 155 |
<links> |
| 156 |
<link>https://jsr311.dev.java.net/nonav/releases/1.1</link> |
| 157 |
</links> |
| 158 |
<sourcepath>${gen-src-dir}</sourcepath> |
| 159 |
<!-- excludePackageNames HAS TO be defined as single line --> |
| 160 |
<excludePackageNames>com.sun.jersey.core.impl com.sun.jersey.client.impl com.sun.jersey.server.impl com.sun.jersey.impl com.sun.research.ws.wadl com.sun.jersey.atom.rome.impl com.sun.jersey.fastinfoset.impl com.sun.jersey.json.impl</excludePackageNames> |
| 161 |
<notimestamp>true</notimestamp> |
| 162 |
</configuration> |
| 163 |
</plugin> |
| 164 |
<plugin> |
| 165 |
<artifactId>maven-assembly-plugin</artifactId> |
| 166 |
<configuration> |
| 167 |
<descriptors> |
| 168 |
<descriptor>src/main/assembly/sources.xml</descriptor> |
| 169 |
</descriptors> |
| 170 |
</configuration> |
| 171 |
<executions> |
| 172 |
<execution> |
| 173 |
<id>make-assembly</id> <!-- this is used for inheritance merges --> |
| 174 |
<phase>package</phase> <!-- append to the packaging phase. --> |
| 175 |
<goals> |
| 176 |
<goal>attached</goal> <!-- goals == mojos --> |
| 177 |
</goals> |
| 178 |
</execution> |
| 179 |
</executions> |
| 180 |
</plugin> |
| 181 |
</plugins> |
| 182 |
</build> |
| 183 |
</profile> |
| 184 |
</profiles> |
| 185 |
<dependencies> |
| 186 |
<dependency> |
| 187 |
<groupId>com.sun.jersey</groupId> |
| 188 |
<artifactId>jersey-servlet</artifactId> |
| 189 |
<version>${project.version}</version> |
| 190 |
<optional>true</optional> |
| 191 |
</dependency> |
| 192 |
</dependencies> |
| 193 |
|
| 194 |
<properties> |
| 195 |
<gen-src-dir>${basedir}/target/imported-sources</gen-src-dir> |
| 196 |
</properties> |
| 197 |
</project> |