POM文件内容: |
<?xml version="1.0" encoding="UTF-8"?>
<!--
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
Copyright 1997-2010 Sun Microsystems, Inc. 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 https://jersey.dev.java.net/CDDL+GPL.html
or jersey/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 jersey/legal/LICENSE.txt.
Sun designates this particular file as subject to the "Classpath" exception
as provided by Sun in the GPL Version 2 section of the License file that
accompanied this code. If applicable, add the following below the License
Header, with the fields enclosed by brackets [] replaced by your own
identifying information: "Portions Copyrighted [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</groupId>
<artifactId>jersey-project</artifactId>
<version>1.4-ea05</version>
</parent>
<artifactId>jersey-server</artifactId>
<packaging>bundle</packaging>
<name>jersey-server</name>
<dependencies>
<dependency>
<groupId>com.sun.jersey</groupId>
<artifactId>jersey-core</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>asm</groupId>
<artifactId>asm</artifactId>
<version>3.1</version>
</dependency>
<dependency>
<groupId>javax.persistence</groupId>
<artifactId>persistence-api</artifactId>
<version>1.0.2</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>javax.mail</groupId>
<artifactId>mail</artifactId>
<version>1.4</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>javax.xml.bind</groupId>
<artifactId>jaxb-api</artifactId>
<version>2.1</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.glassfish</groupId>
<artifactId>javax.servlet</artifactId>
<version>3.0</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>jsp-api</artifactId>
<version>2.0</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.glassfish</groupId>
<artifactId>javax.ejb</artifactId>
<version>3.0</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.jboss.weld</groupId>
<artifactId>weld-osgi-bundle</artifactId>
<version>1.0.0-CR1-SP1</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>ant</groupId>
<artifactId>ant</artifactId>
<version>1.6.5</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.sun.grizzly</groupId>
<artifactId>grizzly-servlet-webserver</artifactId>
<version>1.9.18-i</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.osgi</groupId>
<artifactId>osgi_R4_core</artifactId>
<version>1.0</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<resources>
<resource>
<directory>${basedir}/src/main/java</directory>
<includes>
<include>META-INF/**/*</include>
</includes>
</resource>
<resource>
<directory>${basedir}/src/main/resources</directory>
<filtering>true</filtering>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
</plugin>
<plugin>
<groupId>com.sun.tools.xjc.maven2</groupId>
<artifactId>maven-jaxb-plugin</artifactId>
<version>1.1.1</version>
<executions>
<execution>
<goals>
<goal>generate</goal>
</goals>
</execution>
</executions>
<configuration>
<generatePackage>com.sun.research.ws.wadl</generatePackage>
<catalog>${basedir}/etc/catalog.xml</catalog>
<schemaDirectory>${basedir}/etc</schemaDirectory>
<includeSchemas>
<includeSchema>wadl.xsd</includeSchema>
</includeSchemas>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<extensions>true</extensions>
<configuration>
<instructions>
<Bundle-Activator>com.sun.jersey.server.osgi.Activator</Bundle-Activator>
<Private-Package>com.sun.jersey.server.osgi</Private-Package>
<Export-Package>
com.sun.jersey.server.*,
com.sun.jersey.spi.scanning,
com.sun.jersey.spi.resource,
com.sun.jersey.spi.template,
com.sun.jersey.spi.dispatch,
com.sun.jersey.spi.uri.*,
com.sun.jersey.spi.container.*,
com.sun.jersey.spi.monitoring,
com.sun.jersey.api,
com.sun.jersey.api.core,
com.sun.jersey.api.wadl.*,
com.sun.jersey.api.model,
com.sun.jersey.api.view,
com.sun.jersey.api.container.*,
com.sun.research.ws.wadl
</Export-Package>
<Import-Package>
com.sun.grizzly.*;resolution:="optional",
com.sun.net.httpserver;resolution:="optional",
javax.ejb;version="3.1";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.apache.tools.ant.*;resolution:="optional",
org.objectweb.asm.*;resolution:="optional",
javax.mail.*;resolution:=optional,
javax.annotation.*;resolution:=optional,
javax.enterprise.*;resolution:=optional,
com.sun.jersey.core.osgi;resolution:=optional,
*
</Import-Package>
<DynamicImport-Package>*</DynamicImport-Package>
</instructions>
<unpackBundle>true</unpackBundle>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<manifestEntries>
<probe-provider-xml-file-names>jersey-gf-bundle-probe-provider.xml</probe-provider-xml-file-names>
</manifestEntries>
</archive>
</configuration>
</plugin>
<plugin>
<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>
<excludePackageNames>com.sun.jersey.server.impl:com.sun.research.ws.wadl</excludePackageNames>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
</plugin>
</plugins>
</build>
<repositories>
<repository>
<id>glassfish-repository</id>
<name>Repository for Glassfish</name>
<url>http://maven.glassfish.org/content/groups/glassfish</url>
</repository>
</repositories>
</project>
|