Debian Codegraph @

contribs/bill-burke-book/ex04_1/pom.xml

raw
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3 This library is free software; you can redistribute it and/or modify it under the terms of
4 the GNU Lesser General Public License as published by the Free Software Foundation;
5 either version 2.1 of the License, or (at your option) any later version.
6
7 This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
8 without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
9 PURPOSE. See the GNU Lesser General Public License for more details.
10
11 You should have received a copy of the GNU Lesser General Public License along with this
12 library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
13 Boston, MA 02110-1301 USA
14 -->
15 <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">
16 <modelVersion>4.0.0</modelVersion>
17 <artifactId>ex04_1</artifactId>
18 <parent>
19 <groupId>com.sun.jersey.contribs.bill-burke-book</groupId>
20 <artifactId>bill-burke-book-examples</artifactId>
21 <version>1.19.3</version>
22 </parent>
23 <packaging>war</packaging>
24 <name>ex04_1</name>
25 <description />
26
27 <profiles>
28 <profile>
29 <id>cobertura</id>
30 <activation>
31 <property>
32 <name>cobertura</name>
33 </property>
34 </activation>
35 <dependencies>
36 <dependency>
37 <groupId>com.sun.jersey</groupId>
38 <artifactId>jersey-servlet</artifactId>
39 <version>${project.version}</version>
40 <classifier>cobertura</classifier>
41 </dependency>
42 <dependency>
43 <groupId>com.sun.jersey</groupId>
44 <artifactId>jersey-client</artifactId>
45 <version>${project.version}</version>
46 <scope>test</scope>
47 <classifier>cobertura</classifier>
48 </dependency>
49 <dependency>
50 <groupId>com.sun.jersey.contribs</groupId>
51 <artifactId>jersey-apache-client</artifactId>
52 <version>${project.version}</version>
53 <classifier>cobertura</classifier>
54 </dependency>
55 </dependencies>
56 </profile>
57 <profile>
58 <id>default</id>
59 <activation>
60 <activeByDefault>true</activeByDefault>
61 </activation>
62 <dependencies>
63 <dependency>
64 <groupId>com.sun.jersey</groupId>
65 <artifactId>jersey-servlet</artifactId>
66 <version>${project.version}</version>
67 </dependency>
68 <dependency>
69 <groupId>com.sun.jersey</groupId>
70 <artifactId>jersey-client</artifactId>
71 <version>${project.version}</version>
72 <scope>test</scope>
73 </dependency>
74 <dependency>
75 <groupId>com.sun.jersey.contribs</groupId>
76 <artifactId>jersey-apache-client</artifactId>
77 <version>${project.version}</version>
78 </dependency>
79 </dependencies>
80 </profile>
81 </profiles>
82
83 <dependencies>
84 <dependency>
85 <groupId>org.apache.httpcomponents</groupId>
86 <artifactId>httpclient</artifactId>
87 <version>4.0-beta2</version>
88 </dependency>
89 <dependency>
90 <groupId>junit</groupId>
91 <artifactId>junit</artifactId>
92 <scope>test</scope>
93 </dependency>
94 </dependencies>
95
96 <build>
97 <plugins>
98 <plugin>
99 <groupId>org.apache.maven.plugins</groupId>
100 <artifactId>maven-surefire-plugin</artifactId>
101 <configuration>
102 <skip>true</skip>
103 </configuration>
104 <executions>
105 <execution>
106 <id>surefire-it</id>
107 <phase>integration-test</phase>
108 <goals>
109 <goal>test</goal>
110 </goals>
111 <configuration>
112 <skip>false</skip>
113 </configuration>
114 </execution>
115 </executions>
116 </plugin>
117 <plugin>
118 <groupId>org.mortbay.jetty</groupId>
119 <artifactId>maven-jetty-plugin</artifactId>
120 <version>6.1.15</version>
121 <configuration>
122 <!-- By default the artifactId is taken, override it with something simple -->
123 <contextPath>/</contextPath>
124 <scanIntervalSeconds>2</scanIntervalSeconds>
125 <stopKey>foo</stopKey>
126 <stopPort>${my.jetty.stop.port}</stopPort>
127 <connectors>
128 <connector implementation="org.mortbay.jetty.nio.SelectChannelConnector">
129 <port>${my.jetty.port}</port>
130 <maxIdleTime>60000</maxIdleTime>
131 </connector>
132 </connectors>
133 </configuration>
134 <executions>
135 <execution>
136 <id>start-jetty</id>
137 <phase>pre-integration-test</phase>
138 <goals>
139 <goal>run</goal>
140 </goals>
141 <configuration>
142 <scanIntervalSeconds>0</scanIntervalSeconds>
143 <daemon>true</daemon>
144 </configuration>
145 </execution>
146 <execution>
147 <id>stop-jetty</id>
148 <phase>post-integration-test</phase>
149 <goals>
150 <goal>stop</goal>
151 </goals>
152 </execution>
153 </executions>
154 </plugin>
155 </plugins>
156 </build>
157 </project>