Skip to content
This repository has been archived by the owner on May 28, 2018. It is now read-only.

Commit

Permalink
JERSEY-1148: apidocs added to GF Jersey IPS package
Browse files Browse the repository at this point in the history
Change-Id: Ie2475a9fb8d57e6a4ada57bd8f1ff3d945cf42ae
  • Loading branch information
japod authored and mmatula committed Jun 18, 2012
1 parent 409f0c6 commit 2c20917
Show file tree
Hide file tree
Showing 4 changed files with 209 additions and 3 deletions.
164 changes: 164 additions & 0 deletions bundles/apidocs/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,164 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
Copyright (c) 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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.glassfish.jersey.bundles</groupId>
<artifactId>project</artifactId>
<version>2.0-SNAPSHOT</version>
</parent>

<artifactId>apidocs</artifactId>
<name>jersey-bundles-apidocs</name>
<packaging>jar</packaging>

<dependencies>
<!-- CORE -->
<dependency>
<groupId>org.glassfish.jersey.core</groupId>
<artifactId>jersey-server</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.glassfish.jersey.core</groupId>
<artifactId>jersey-client</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.glassfish.jersey.core</groupId>
<artifactId>jersey-common</artifactId>
<version>${project.version}</version>
</dependency>
<!-- need to explicitly include the osgi dependency here
as it is scoped as provided in the jersey-common module -->
<dependency>
<groupId>org.osgi</groupId>
<artifactId>org.osgi.core</artifactId>
</dependency>
<!-- CONTAINERS -->
<dependency>
<groupId>org.glassfish.jersey.containers</groupId>
<artifactId>jersey-container-servlet</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.glassfish.jersey.containers</groupId>
<artifactId>jersey-container-servlet-core</artifactId>
<version>${project.version}</version>
</dependency>
<!-- need to explicitly include the servlet dependency here
as it is scoped as provided in the jersey-servet modules -->
<dependency>
<groupId>org.glassfish</groupId>
<artifactId>javax.servlet</artifactId>
<version>3.1</version>
</dependency>
<dependency>
<groupId>org.glassfish.jersey.containers</groupId>
<artifactId>jersey-container-jdk-http</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.glassfish.jersey.containers</groupId>
<artifactId>jersey-container-grizzly2-http</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.glassfish.jersey.containers</groupId>
<artifactId>jersey-container-grizzly2-servlet</artifactId>
<version>${project.version}</version>
</dependency>
<!-- MEDIA -->
<dependency>
<groupId>org.glassfish.jersey.media</groupId>
<artifactId>jersey-media-json</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.glassfish.jersey.media</groupId>
<artifactId>jersey-media-multipart</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.glassfish.jersey.media</groupId>
<artifactId>jersey-media-sse</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<artifactId>maven-javadoc-plugin</artifactId>
<executions>
<execution>
<id>javadoc-jar</id>
<!--phase>package</phase-->
<goals>
<goal>jar</goal>
</goals>
<configuration>
<includeDependencySources>true</includeDependencySources>
<dependencySourceIncludes>
<dependencySourceInclude>org.glassfish.jersey.*:*</dependencySourceInclude>
</dependencySourceIncludes>
<excludePackageNames>*.internal.*</excludePackageNames>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<executions>
<execution>
<id>exclude-jar</id>
<goals>
<goal>remove-project-artifact</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
21 changes: 20 additions & 1 deletion bundles/glassfish/v4.0/docs-and-examples/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,20 @@
<classifier>gf-project-src</classifier>
<type>zip</type>
</dependency>
<dependency>
<dependency>
<groupId>org.glassfish.jersey.examples</groupId>
<artifactId>multipart-webapp</artifactId>
<version>${project.version}</version>
<classifier>gf-project-src</classifier>
<type>zip</type>
</dependency>
<dependency>
<groupId>org.glassfish.jersey.bundles</groupId>
<artifactId>apidocs</artifactId>
<version>${project.version}</version>
<classifier>javadoc</classifier>
<type>jar</type>
</dependency>
</dependencies>
<build>
<plugins>
Expand All @@ -84,6 +91,18 @@
<outputDirectory>${project.build.directory}/dependency/examples</outputDirectory>
</configuration>
</execution>
<execution>
<id>unpack-apidocs</id>
<phase>generate-sources</phase>
<goals>
<goal>unpack-dependencies</goal>
</goals>
<configuration>
<stripVersion>true</stripVersion>
<includeGroupIds>org.glassfish.jersey.bundles</includeGroupIds>
<outputDirectory>${project.build.directory}/dependency/apidocs</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
Expand Down
12 changes: 11 additions & 1 deletion bundles/glassfish/v4.0/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,16 @@
<packaging>pom</packaging>
<modules>
<module>core</module>
<module>docs-and-examples</module>
</modules>
<profiles>
<profile>
<id>attach-src-and-docs</id>
<activation>
<activeByDefault>false</activeByDefault>
</activation>
<modules>
<module>docs-and-examples</module>
</modules>
</profile>
</profiles>
</project>
15 changes: 14 additions & 1 deletion bundles/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,17 @@
<module>jax-rs-ri</module>
<module>glassfish</module>
</modules>
</project>

<profiles>
<profile>
<id>attach-src-and-docs</id>
<activation>
<activeByDefault>false</activeByDefault>
</activation>
<modules>
<module>apidocs</module>
</modules>
</profile>
</profiles>

</project>

0 comments on commit 2c20917

Please sign in to comment.