Debian Codegraph @

glassfish/v2-package/main/pom.xml

raw
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 <parent>
47 <groupId>com.sun.jersey.glassfish.v2</groupId>
48 <artifactId>glassfish-packages</artifactId>
49 <version>1.19.3</version>
50 </parent>
51 <artifactId>jersey-gfv2-package</artifactId>
52 <name>Jersey GFv2 UC Main Module</name>
53 <packaging>pom</packaging>
54 <dependencies>
55 <dependency>
56 <groupId>com.sun.jersey.glassfish.v2.internal</groupId>
57 <artifactId>module_jersey</artifactId>
58 <version>${project.version}</version>
59 <type>zip</type>
60 </dependency>
61 </dependencies>
62 <build>
63 <plugins>
64 <plugin>
65 <groupId>org.apache.maven.plugins</groupId>
66 <artifactId>maven-dependency-plugin</artifactId>
67 <executions>
68 <execution>
69 <id>copy</id>
70 <phase>generate-sources</phase>
71 <goals>
72 <goal>copy</goal>
73 </goals>
74 <configuration>
75 <stripVersion>true</stripVersion>
76 <artifactItems>
77 <artifactItem>
78 <groupId>com.sun.jersey.glassfish.v2.internal</groupId>
79 <artifactId>module_jersey</artifactId>
80 <version>${project.version}</version>
81 <type>zip</type>
82 <overWrite>false</overWrite>
83 <outputDirectory>${assembly.directory}/module</outputDirectory>
84 </artifactItem>
85 </artifactItems>
86 </configuration>
87 </execution>
88 </executions>
89 </plugin>
90 <plugin>
91 <artifactId>maven-antrun-plugin</artifactId>
92 <version>1.1</version>
93 <executions>
94 <execution>
95 <phase>generate-sources</phase>
96 <configuration>
97 <tasks>
98 <copy file="${basedir}/src/main/resources/Info/info.xml" tofile="${assembly.directory}/Info/info.xml" />
99 <length file="${assembly.directory}/module/module_jersey.zip" property="uc.module.length" />
100 <replace file="${assembly.directory}/Info/info.xml" token="@@@@DOWNLOAD_SIZE@@@@" value="${uc.module.length}" />
101 <tstamp>
102 <format property="uc.module.timestamp" pattern="ss/mm/hh/dd/MM/yyyy" />
103 <format property="uc.module.release.date" pattern="yyyy/MM/dd" />
104 <format property="uc.module.impl.version" pattern="yyyyMMddhhmm" />
105 </tstamp>
106 <replace file="${assembly.directory}/Info/info.xml" token="@@@@MODULE_TIMESTAMP@@@@" value="${uc.module.timestamp}" />
107 <replace file="${assembly.directory}/Info/info.xml" token="@@@@MODULE_RELEASE_DATE@@@@" value="${uc.module.release.date}" />
108 <replace file="${assembly.directory}/Info/info.xml" token="@@@@MODULE_IMPL_VERSION@@@@" value="${uc.module.impl.version}" />
109 <replace file="${assembly.directory}/Info/info.xml" token="@@@@RELEASE_IMPL_VERSION@@@@" value="${project.version}" />
110 <jar basedir="${assembly.directory}" destfile="${project.build.directory}/module_jersey.nbm" />
111 </tasks>
112 </configuration>
113 <goals>
114 <goal>run</goal>
115 </goals>
116 </execution>
117 </executions>
118 </plugin>
119 <plugin>
120 <artifactId>maven-assembly-plugin</artifactId>
121 <configuration>
122 <descriptors>
123 <descriptor>src/main/assembly/module.xml</descriptor>
124 </descriptors>
125 </configuration>
126 <executions>
127 <execution>
128 <id>make-assembly</id>
129 <phase>package</phase>
130 <goals>
131 <goal>attached</goal>
132 </goals>
133 </execution>
134 </executions>
135 </plugin>
136 </plugins>
137 </build>
138
139 <properties>
140 <assembly.directory>${project.build.directory}/assembly</assembly.directory>
141 </properties>
142
143 </project>