Source code file content

Revision: 5829

1.17-SNAPSHOT -> 1.18-SNAPSHOT
» Project Revision History

» Checkout URL

svn / trunk / jersey / glassfish / v3.2-packages / osgi-modules / jersey-gf-servlet / pom.xml

Size: 10041 bytes, 1 line
<?xml version="1.0" encoding="UTF-8"?>
<!--

    DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.

    Copyright (c) 2010-2012 Oracle and/or its affiliates. All rights reserved.

    The contents of this file are subject to the terms of either the GNU
    General Public License Version 2 only ("GPL") or the Common Development
    and Distribution License("CDDL") (collectively, the "License").  You
    may not use this file except in compliance with the License.  You can
    obtain a copy of the License at
    http://glassfish.java.net/public/CDDL+GPL_1_1.html
    or packager/legal/LICENSE.txt.  See the License for the specific
    language governing permissions and limitations under the License.

    When distributing the software, include this License Header Notice in each
    file and include the License file at packager/legal/LICENSE.txt.

    GPL Classpath Exception:
    Oracle designates this particular file as subject to the "Classpath"
    exception as provided by Oracle in the GPL Version 2 section of the License
    file that accompanied this code.

    Modifications:
    If applicable, add the following below the License Header, with the fields
    enclosed by brackets [] replaced by your own identifying information:
    "Portions Copyright [year] [name of copyright owner]"

    Contributor(s):
    If you wish your version of this file to be governed by only the CDDL or
    only the GPL Version 2, indicate your decision by adding "[Contributor]
    elects to include this software in this distribution under the [CDDL or GPL
    Version 2] license."  If you don't indicate a single choice of license, a
    recipient has the option to distribute your version of this file under
    either the CDDL, the GPL Version 2 or to extend the choice of license to
    its licensees as provided above.  However, if you add GPL Version 2 code
    and therefore, elected the GPL Version 2 license, then the option applies
    only if the new code is made subject to such option by the copyright
    holder.

-->
<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>com.sun.jersey.glassfish.v3.osgi</groupId>
      <artifactId>osgi-modules</artifactId>
      <version>1.18-SNAPSHOT</version>
    </parent>
    <artifactId>jersey-gf-servlet</artifactId>
    <packaging>jar</packaging>
    <name>Jersey servlet library repackaged as OSGi bundle for GlassFish</name>
    <description>Module repackaging of the Jersey servlet library</description>

    <build>
        <resources>
            <resource>
                <directory>${basedir}/src/main/resources</directory>
                <filtering>true</filtering>
            </resource>
        </resources>
        <plugins>
            <plugin>
                <groupId>org.apache.felix</groupId>
                <artifactId>maven-bundle-plugin</artifactId>
                <configuration>
                    <instructions>
                        <Private-Package>
                            com.sun.jersey.server.impl.cdi,
                            com.sun.jersey.server.impl.managedbeans
                        </Private-Package>
                        <Export-Package>
                            com.sun.jersey.api.container.servlet,
                            com.sun.jersey.api.core.servlet,
                            com.sun.jersey.spi.container.servlet,
                            com.sun.jersey.spi.scanning.servlet,
                            <!-- the following is being used internally in GF REST API code! :-( -->
			    com.sun.jersey.server.impl.container.servlet,
                            <!-- the following must be visible by the jersey-gf-server module
                               so that the EJB resource method dispatcher takes precedence over the other dispatchers
                               registered by the jersey-gf-server module -->
                            com.sun.jersey.server.impl.ejb
                        </Export-Package>
                       <Import-Package>
                            com.sun.jersey.core.osgi;resolution:=optional,
                            com.sun.net.httpserver;resolution:="optional",
                            javax.annotation.*;resolution:=optional,
                            javax.ejb;version="3.1";resolution:="optional",
                            javax.enterprise.*;resolution:=optional,
                            javax.inject.*;resolution:=optional,
                            javax.interceptor;version="3.1";resolution:="optional",
                            javax.mail.*;resolution:="optional",
                            javax.persistence;resolution:="optional",
                            javax.servlet.*;resolution:="optional",
                            javax.xml.bind.*;resolution:="optional",
                            javax.xml.namespace;resolution:="optional",
                            javax.xml.transform.*;resolution:="optional",
                            org.objectweb.asm.*;password=GlassFish;version="3.1",
                            *
                        </Import-Package>
                        <DynamicImport-Package>*</DynamicImport-Package>
                        <Embed-Dependency>jersey-servlet;inline=META-INF/services/**|META-INF/taglib.tld|META-INF/jersey-module-version</Embed-Dependency>
                    </instructions>
                    <unpackBundle>true</unpackBundle>
                </configuration>
                <executions>
                    <execution>
                        <id>osgi-bundle</id>
                        <phase>package</phase>
                        <goals>
                            <goal>bundle</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>

    <profiles>
        <profile>
            <id>release</id>
            <build>
                <plugins>
                    <plugin> <!-- want to unpack sources from individual modules -->
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-dependency-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>unpack</id>
                                <phase>generate-sources</phase>
                                <goals>
                                    <goal>unpack</goal>
                                </goals>
                                <configuration>
                                    <artifactItems>
                                        <artifactItem>
                                            <groupId>com.sun.jersey</groupId>
                                            <artifactId>jersey-servlet</artifactId>
                                            <version>${project.version}</version>
                                            <type>jar</type>
                                            <classifier>sources</classifier>
                                            <overWrite>false</overWrite>
                                            <outputDirectory>${gen-src-dir}</outputDirectory>
                                        </artifactItem>
                                    </artifactItems>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>
                    <plugin> <!-- generate javadoc from sources unpacked above -->
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-javadoc-plugin</artifactId>
                        <configuration>
                            <links>
                                <link>https://jsr311.dev.java.net/nonav/releases/1.1</link>
                            </links>
                            <sourcepath>${gen-src-dir}</sourcepath>
                            <!-- excludePackageNames HAS TO be defined as single line -->
                            <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>
                            <notimestamp>true</notimestamp>
                        </configuration>
                    </plugin>
                    <plugin>
                        <artifactId>maven-assembly-plugin</artifactId>
                        <configuration>
                            <descriptors>
                                <descriptor>src/main/assembly/sources.xml</descriptor>
                            </descriptors>
                        </configuration>
                        <executions>
                            <execution>
                                <id>make-assembly</id> <!-- this is used for inheritance merges -->
                                <phase>package</phase> <!-- append to the packaging phase. -->
                                <goals>
                                    <goal>attached</goal> <!-- goals == mojos -->
                                </goals>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>
    </profiles>
    <dependencies>
        <dependency>
            <groupId>com.sun.jersey</groupId>
            <artifactId>jersey-servlet</artifactId>
            <version>${project.version}</version>
            <optional>true</optional>
        </dependency>
    </dependencies>

    <properties>
        <gen-src-dir>${basedir}/target/imported-sources</gen-src-dir>
    </properties>
</project>
Terms of Use; Privacy Policy; Copyright ©2013-2015 (revision 20150626.29986a4)
 
 
Close
loading
Please Confirm
Close