Debian Codegraph @

contribs/bill-burke-book/ex11_1/ear/pom.xml

raw
1 <!--
2 This library is free software; you can redistribute it and/or modify it under the terms of
3 the GNU Lesser General Public License as published by the Free Software Foundation;
4 either version 2.1 of the License, or (at your option) any later version.
5
6 This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
7 without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
8 PURPOSE. See the GNU Lesser General Public License for more details.
9
10 You should have received a copy of the GNU Lesser General Public License along with this
11 library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
12 Boston, MA 02110-1301 USA
13 -->
14 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
15 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
16 <parent>
17 <groupId>com.sun.jersey.contribs.bill-burke-book</groupId>
18 <artifactId>ex11_1_pom</artifactId>
19 <version>1.20-SNAPSHOT</version>
20 </parent>
21 <modelVersion>4.0.0</modelVersion>
22 <artifactId>ex11_1-ear</artifactId>
23 <packaging>jar</packaging>
24 <name>ex11_1 EAR</name>
25 <url>http://maven.apache.org</url>
26 <profiles>
27 <profile>
28 <id>cobertura</id>
29 <activation>
30 <property>
31 <name>cobertura</name>
32 </property>
33 </activation>
34 <dependencies>
35 <dependency>
36 <groupId>com.sun.jersey.contribs.bill-burke-book</groupId>
37 <artifactId>ex11_1</artifactId>
38 <version>${project.version}</version>
39 <type>ejb</type>
40 <classifier>cobertura</classifier>
41 </dependency>
42 <dependency>
43 <groupId>com.sun.jersey.contribs.bill-burke-book</groupId>
44 <artifactId>ex11_1-war</artifactId>
45 <version>${project.version}</version>
46 <type>war</type>
47 <classifier>cobertura</classifier>
48 </dependency>
49 <!-- Adding explicit (yet "provided") dependencies to Jersey runtime -->
50 <dependency>
51 <groupId>com.sun.jersey</groupId>
52 <artifactId>jersey-servlet</artifactId>
53 <version>${project.version}</version>
54 <scope>provided</scope>
55 <classifier>cobertura</classifier>
56 </dependency>
57 <dependency>
58 <groupId>com.sun.jersey</groupId>
59 <artifactId>jersey-client</artifactId>
60 <version>${project.version}</version>
61 <scope>provided</scope>
62 <classifier>cobertura</classifier>
63 </dependency>
64 </dependencies>
65 </profile>
66 <profile>
67 <id>default</id>
68 <activation>
69 <activeByDefault>true</activeByDefault>
70 </activation>
71 <dependencies>
72 <dependency>
73 <groupId>com.sun.jersey.contribs.bill-burke-book</groupId>
74 <artifactId>ex11_1</artifactId>
75 <version>${project.version}</version>
76 <type>ejb</type>
77 </dependency>
78 <dependency>
79 <groupId>com.sun.jersey.contribs.bill-burke-book</groupId>
80 <artifactId>ex11_1-war</artifactId>
81 <version>${project.version}</version>
82 <type>war</type>
83 </dependency>
84 <!-- Adding explicit (yet "provided") dependencies to Jersey runtime -->
85 <dependency>
86 <groupId>com.sun.jersey</groupId>
87 <artifactId>jersey-servlet</artifactId>
88 <version>${project.version}</version>
89 <scope>provided</scope>
90 </dependency>
91 <dependency>
92 <groupId>com.sun.jersey</groupId>
93 <artifactId>jersey-client</artifactId>
94 <version>${project.version}</version>
95 <scope>provided</scope>
96 </dependency>
97 </dependencies>
98 </profile>
99
100 <!--
101 Hack to avoid having to run the tests which require a running
102 JavaDB instance (not having one would break the Hudson build).
103 Running "mvn clean install" will not run the tests.
104 To run the tests, use "mvn -P test clean install".
105 -->
106 <profile>
107 <id>test</id>
108 </profile>
109
110 <profile>
111 <id>skip-test</id>
112 <activation>
113 <activeByDefault>true</activeByDefault>
114 </activation>
115 <properties>
116 <maven.test.skip>true</maven.test.skip>
117 </properties>
118 </profile>
119 </profiles>
120 <dependencies>
121 <dependency>
122 <groupId>junit</groupId>
123 <artifactId>junit</artifactId>
124 <scope>test</scope>
125 </dependency>
126 </dependencies>
127 <build>
128 <plugins>
129 <plugin>
130 <artifactId>maven-ear-plugin</artifactId>
131 <configuration>
132 <defaultJavaBundleDir>lib/</defaultJavaBundleDir>
133 <finalName>ex11_1</finalName>
134 </configuration>
135 <executions>
136 <execution>
137 <id>yomama</id>
138 <phase>package</phase>
139 <goals>
140 <goal>generate-application-xml</goal>
141 <goal>ear</goal>
142 </goals>
143 </execution>
144 </executions>
145 </plugin>
146
147 <plugin>
148 <groupId>org.glassfish</groupId>
149 <artifactId>maven-embedded-glassfish-plugin</artifactId>
150 <version>${gf.embedded.version}</version>
151 <configuration>
152 <goalPrefix>embedded-glassfish</goalPrefix>
153 <app>${basedir}/target/ex11_1.ear</app>
154 <autoDelete>true</autoDelete>
155 <port>8080</port>
156 </configuration>
157
158 <executions>
159 <execution>
160 <id>start-glassfish</id>
161 <phase>pre-integration-test</phase>
162 <goals>
163 <goal>start</goal>
164 </goals>
165 </execution>
166 <execution>
167 <id>glassfish-deploy</id>
168 <phase>pre-integration-test</phase>
169 <goals>
170 <goal>deploy</goal>
171 </goals>
172 </execution>
173 <execution>
174 <id>glassfish-undeploy</id>
175 <phase>post-integration-test</phase>
176 <goals>
177 <goal>undeploy</goal>
178 </goals>
179 </execution>
180 <execution>
181 <id>stop-glassfish</id>
182 <phase>post-integration-test</phase>
183 <goals>
184 <goal>stop</goal>
185 </goals>
186 </execution>
187 </executions>
188 </plugin>
189
190 <plugin>
191 <groupId>org.apache.maven.plugins</groupId>
192 <artifactId>maven-surefire-plugin</artifactId>
193 <configuration>
194 <skip>true</skip>
195 </configuration>
196 <executions>
197 <execution>
198 <id>surefire-it</id>
199 <phase>integration-test</phase>
200 <goals>
201 <goal>test</goal>
202 </goals>
203 <configuration>
204 <skip>false</skip>
205 </configuration>
206 </execution>
207 </executions>
208 </plugin>
209
210 </plugins>
211 </build>
212
213 </project>