Skip to content
This repository has been archived by the owner on Nov 18, 2022. It is now read-only.

Commit

Permalink
Merge pull request #91 from qivicon/jersey-min-contribution
Browse files Browse the repository at this point in the history
Add jersey-min build that only contains jersey-container-servlet, jers...
  • Loading branch information
hstaudacher committed Mar 22, 2015
2 parents 4be5e3c + 677f64d commit 1f2f90b
Show file tree
Hide file tree
Showing 2 changed files with 146 additions and 0 deletions.
11 changes: 11 additions & 0 deletions build/com.eclipsesource.jaxrs.jersey.min/.project
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>com.eclipsesource.jaxrs.jersey.min</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
</buildSpec>
<natures>
</natures>
</projectDescription>
135 changes: 135 additions & 0 deletions build/com.eclipsesource.jaxrs.jersey.min/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,135 @@
<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>
<groupId>com.eclipsesource.jaxrs</groupId>
<artifactId>jersey-min</artifactId>
<version>2.16.1</version>

<properties>
<maven.compiler.source>1.7</maven.compiler.source>
<maven.compiler.target>1.7</maven.compiler.target>
<jersey.version>2.16</jersey.version>
<jaxrs.version>2.0</jaxrs.version>
</properties>

<build>
<plugins>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>2.4</version>
<configuration>
<archive>
<index>false</index>
<manifest>
<addClasspath>false</addClasspath>
</manifest>
<manifestEntries>
<Built-By>EclipseSource</Built-By>
</manifestEntries>
</archive>
</configuration>
</plugin>

<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>2.3.7</version>
<extensions>true</extensions>
<configuration>
<instructions>
<Bundle-SymbolicName>${project.groupId}.${project.artifactId}</Bundle-SymbolicName>
<Bundle-Version>${project.version}</Bundle-Version>
<Bundle-Vendor>EclipseSource</Bundle-Vendor>
<_exportcontents>
javax.ws.*,
javax.annotation.*,
org.glassfish.*,
javax.inject.*
</_exportcontents>
<Import-Package>
!com.sun.jdi.*,
!sun.misc,
!javax.persistence,
!scala.*,
!org.jruby.*,
!com.twitter.util.*,
!jersey.repackaged.*,
javax.servlet.*;version="[2.3.0,4.0.0)";resolution:=optional,
*
</Import-Package>
<Bundle-RequiredExecutionEnvironment>JavaSE-1.7</Bundle-RequiredExecutionEnvironment>
<Embed-Dependency>*;scope=compile|runtime;inline=true</Embed-Dependency>
<Embed-Directory>dependencies</Embed-Directory>
<Embed-StripGroup>true</Embed-StripGroup>
<Embed-Transitive>true</Embed-Transitive>
</instructions>
</configuration>
<executions>
<execution>
<id>osgi-bundle</id>
<phase>package</phase>
<goals>
<goal>bundle</goal>
</goals>
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>2.2</version>
<configuration>
<finalName>shaded-DO-NOT-USE</finalName>
<createSourcesJar>true</createSourcesJar>
<transformers>
<transformer
implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<manifestEntries>
<Bundle-SymbolicName>${project.groupId}.${project.artifactId}.source</Bundle-SymbolicName>
<Eclipse-SourceBundle>${project.groupId}.${project.artifactId};version="${project.version}"</Eclipse-SourceBundle>
<Export-Package></Export-Package>
<Import-Package></Import-Package>
<Bundle-ClassPath></Bundle-ClassPath>
<Embedded-Artifacts></Embedded-Artifacts>
<Embed-Directory></Embed-Directory>
<Ignore-Package></Ignore-Package>
<Embed-Dependency></Embed-Dependency>
</manifestEntries>
</transformer>
</transformers>
</configuration>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
</execution>
</executions>
</plugin>

</plugins>
</build>

<dependencies>
<dependency>
<groupId>org.glassfish.jersey.containers</groupId>
<artifactId>jersey-container-servlet</artifactId>
<version>${jersey.version}</version>
</dependency>
<dependency>
<groupId>org.glassfish.jersey.media</groupId>
<artifactId>jersey-media-sse</artifactId>
<version>${jersey.version}</version>
</dependency>
<dependency>
<groupId>org.glassfish.jersey.media</groupId>
<artifactId>jersey-media-multipart</artifactId>
<version>${jersey.version}</version>
</dependency>
</dependencies>

</project>

0 comments on commit 1f2f90b

Please sign in to comment.