| 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 |
|
| 44 |
<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"> |
| 45 |
<modelVersion>4.0.0</modelVersion> |
| 46 |
|
| 47 |
<parent> |
| 48 |
<groupId>com.sun.jersey.samples</groupId> |
| 49 |
<artifactId>atompub-contacts</artifactId> |
| 50 |
<version>1.19.3</version> |
| 51 |
</parent> |
| 52 |
|
| 53 |
<groupId>com.sun.jersey.samples.atompub-contacts</groupId> |
| 54 |
<artifactId>atompub-contacts-client</artifactId> |
| 55 |
<packaging>jar</packaging> |
| 56 |
|
| 57 |
<name>AtomPub Contacts Client - jersey sample</name> |
| 58 |
|
| 59 |
<dependencies> |
| 60 |
<dependency> |
| 61 |
<groupId>junit</groupId> |
| 62 |
<artifactId>junit</artifactId> |
| 63 |
<scope>test</scope> |
| 64 |
</dependency> |
| 65 |
</dependencies> |
| 66 |
|
| 67 |
<profiles> |
| 68 |
<profile> |
| 69 |
<id>release</id> |
| 70 |
<build> |
| 71 |
<plugins> |
| 72 |
<plugin> |
| 73 |
<groupId>org.apache.maven.plugins</groupId> |
| 74 |
<artifactId>maven-javadoc-plugin</artifactId> |
| 75 |
<configuration> |
| 76 |
<excludePackageNames>com.sun.jersey.samples.contacts.client.impl</excludePackageNames> |
| 77 |
</configuration> |
| 78 |
<executions> |
| 79 |
<execution> |
| 80 |
<id>attach-javadocs</id> |
| 81 |
<goals> |
| 82 |
<goal>jar</goal> |
| 83 |
</goals> |
| 84 |
</execution> |
| 85 |
</executions> |
| 86 |
</plugin> |
| 87 |
</plugins> |
| 88 |
</build> |
| 89 |
</profile> |
| 90 |
<!-- To use this profile, must first build Jersey source with "mvn clean install -Dcobertura" --> |
| 91 |
<profile> |
| 92 |
<id>cobertura</id> |
| 93 |
<activation> |
| 94 |
<property> |
| 95 |
<name>cobertura</name> |
| 96 |
</property> |
| 97 |
</activation> |
| 98 |
<dependencies> |
| 99 |
<dependency> |
| 100 |
<groupId>com.sun.jersey.contribs</groupId> |
| 101 |
<artifactId>jersey-atom-abdera</artifactId> |
| 102 |
<version>${project.version}</version> |
| 103 |
<classifier>cobertura</classifier> |
| 104 |
</dependency> |
| 105 |
<dependency> |
| 106 |
<groupId>com.sun.jersey</groupId> |
| 107 |
<artifactId>jersey-client</artifactId> |
| 108 |
<version>${project.version}</version> |
| 109 |
<classifier>cobertura</classifier> |
| 110 |
</dependency> |
| 111 |
<dependency> |
| 112 |
<groupId>com.sun.jersey</groupId> |
| 113 |
<artifactId>jersey-json</artifactId> |
| 114 |
<version>${project.version}</version> |
| 115 |
<classifier>cobertura</classifier> |
| 116 |
</dependency> |
| 117 |
<dependency> |
| 118 |
<groupId>com.sun.jersey</groupId> |
| 119 |
<artifactId>jersey-servlet</artifactId> |
| 120 |
<version>${project.version}</version> |
| 121 |
<classifier>cobertura</classifier> |
| 122 |
<scope>test</scope> |
| 123 |
</dependency> |
| 124 |
<dependency> |
| 125 |
<groupId>com.sun.jersey.samples.atompub-contacts</groupId> |
| 126 |
<artifactId>atompub-contacts-models</artifactId> |
| 127 |
<version>${project.version}</version> |
| 128 |
<classifier>cobertura</classifier> |
| 129 |
</dependency> |
| 130 |
<dependency> |
| 131 |
<groupId>com.sun.jersey.samples.atompub-contacts</groupId> |
| 132 |
<artifactId>atompub-contacts-server</artifactId> |
| 133 |
<version>${project.version}</version> |
| 134 |
<classifier>cobertura</classifier> |
| 135 |
<scope>test</scope> |
| 136 |
</dependency> |
| 137 |
</dependencies> |
| 138 |
</profile> |
| 139 |
<profile> |
| 140 |
<id>default</id> |
| 141 |
<activation> |
| 142 |
<activeByDefault>true</activeByDefault> |
| 143 |
</activation> |
| 144 |
<dependencies> |
| 145 |
<dependency> |
| 146 |
<groupId>com.sun.jersey.contribs</groupId> |
| 147 |
<artifactId>jersey-atom-abdera</artifactId> |
| 148 |
<version>${project.version}</version> |
| 149 |
</dependency> |
| 150 |
<dependency> |
| 151 |
<groupId>com.sun.jersey</groupId> |
| 152 |
<artifactId>jersey-client</artifactId> |
| 153 |
<version>${project.version}</version> |
| 154 |
</dependency> |
| 155 |
<dependency> |
| 156 |
<groupId>com.sun.jersey</groupId> |
| 157 |
<artifactId>jersey-json</artifactId> |
| 158 |
<version>${project.version}</version> |
| 159 |
</dependency> |
| 160 |
<dependency> |
| 161 |
<groupId>com.sun.jersey</groupId> |
| 162 |
<artifactId>jersey-servlet</artifactId> |
| 163 |
<version>${project.version}</version> |
| 164 |
<scope>test</scope> |
| 165 |
</dependency> |
| 166 |
<dependency> |
| 167 |
<groupId>com.sun.jersey.samples.atompub-contacts</groupId> |
| 168 |
<artifactId>atompub-contacts-models</artifactId> |
| 169 |
<version>${project.version}</version> |
| 170 |
</dependency> |
| 171 |
<dependency> |
| 172 |
<groupId>com.sun.jersey.samples.atompub-contacts</groupId> |
| 173 |
<artifactId>atompub-contacts-server</artifactId> |
| 174 |
<version>${project.version}</version> |
| 175 |
<scope>test</scope> |
| 176 |
</dependency> |
| 177 |
</dependencies> |
| 178 |
</profile> |
| 179 |
</profiles> |
| 180 |
|
| 181 |
<build> |
| 182 |
<resources> |
| 183 |
<resource> |
| 184 |
<directory>src/main/resources</directory> |
| 185 |
<filtering>true</filtering> |
| 186 |
</resource> |
| 187 |
</resources> |
| 188 |
<plugins> |
| 189 |
<!-- Maven Exec Plug-In: http://mojo.codehaus.org/exec-maven-plugin/ --> |
| 190 |
<plugin> |
| 191 |
<groupId>org.codehaus.mojo</groupId> |
| 192 |
<artifactId>exec-maven-plugin</artifactId> |
| 193 |
<version>1.1</version> |
| 194 |
<executions> |
| 195 |
<execution> |
| 196 |
<goals> |
| 197 |
<goal>java</goal> |
| 198 |
</goals> |
| 199 |
</execution> |
| 200 |
</executions> |
| 201 |
<configuration> |
| 202 |
<mainClass>com.sun.jersey.samples.contacts.client.ContactsClient</mainClass> |
| 203 |
</configuration> |
| 204 |
</plugin> |
| 205 |
<plugin> |
| 206 |
<artifactId>maven-assembly-plugin</artifactId> |
| 207 |
<configuration> |
| 208 |
<descriptors> |
| 209 |
<descriptor>src/main/assembly/src.xml</descriptor> |
| 210 |
</descriptors> |
| 211 |
</configuration> |
| 212 |
<executions> |
| 213 |
<execution> |
| 214 |
<id>make-assembly</id> <!-- this is used for inheritance merges --> |
| 215 |
<phase>package</phase> <!-- append to the packaging phase. --> |
| 216 |
<goals> |
| 217 |
<goal>attached</goal> <!-- goals == mojos --> |
| 218 |
</goals> |
| 219 |
</execution> |
| 220 |
</executions> |
| 221 |
</plugin> |
| 222 |
<plugin> |
| 223 |
<groupId>org.apache.maven.plugins</groupId> |
| 224 |
<artifactId>maven-compiler-plugin</artifactId> |
| 225 |
<inherited>true</inherited> |
| 226 |
<configuration> |
| 227 |
<source>1.6</source> |
| 228 |
<target>1.6</target> |
| 229 |
</configuration> |
| 230 |
</plugin> |
| 231 |
<plugin> |
| 232 |
<groupId>org.apache.maven.plugins</groupId> |
| 233 |
<artifactId>maven-source-plugin</artifactId> |
| 234 |
<executions> |
| 235 |
<execution> |
| 236 |
<id>attach-sources</id> |
| 237 |
<phase>package</phase> |
| 238 |
<goals> |
| 239 |
<goal>jar</goal> |
| 240 |
</goals> |
| 241 |
</execution> |
| 242 |
</executions> |
| 243 |
</plugin> |
| 244 |
</plugins> |
| 245 |
</build> |
| 246 |
</project> |