Debian Codegraph @

contribs/bill-burke-book/ex05_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 <parent>
18 <groupId>com.sun.jersey.contribs.bill-burke-book</groupId>
19 <artifactId>bill-burke-book-examples</artifactId>
20 <version>1.19.3</version>
21 </parent>
22 <artifactId>ex05_1</artifactId>
23 <packaging>war</packaging>
24 <name>ex05_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 </dependencies>
50 </profile>
51 <profile>
52 <id>default</id>
53 <activation>
54 <activeByDefault>true</activeByDefault>
55 </activation>
56 <dependencies>
57 <dependency>
58 <groupId>com.sun.jersey</groupId>
59 <artifactId>jersey-servlet</artifactId>
60 <version>${project.version}</version>
61 </dependency>
62 <dependency>
63 <groupId>com.sun.jersey</groupId>
64 <artifactId>jersey-client</artifactId>
65 <version>${project.version}</version>
66 <scope>test</scope>
67 </dependency>
68 </dependencies>
69 </profile>
70 </profiles>
71
72 <dependencies>
73 <dependency>
74 <groupId>org.apache.httpcomponents</groupId>
75 <artifactId>httpclient</artifactId>
76 <version>4.0-beta2</version>
77 </dependency>
78 <dependency>
79 <groupId>junit</groupId>
80 <artifactId>junit</artifactId>
81 <scope>test</scope>
82 </dependency>
83 </dependencies>
84
85 <build>
86 <plugins>
87 <plugin>
88 <groupId>org.apache.maven.plugins</groupId>
89 <artifactId>maven-surefire-plugin</artifactId>
90 <configuration>
91 <skip>true</skip>
92 </configuration>
93 <executions>
94 <execution>
95 <id>surefire-it</id>
96 <phase>integration-test</phase>
97 <goals>
98 <goal>test</goal>
99 </goals>
100 <configuration>
101 <skip>false</skip>
102 </configuration>
103 </execution>
104 </executions>
105 </plugin>
106 <plugin>
107 <groupId>org.mortbay.jetty</groupId>
108 <artifactId>maven-jetty-plugin</artifactId>
109 <version>6.1.15</version>
110 <configuration>
111 <!-- By default the artifactId is taken, override it with something simple -->
112 <contextPath>/</contextPath>
113 <scanIntervalSeconds>2</scanIntervalSeconds>
114 <stopKey>foo</stopKey>
115 <stopPort>${my.jetty.stop.port}</stopPort>
116 <connectors>
117 <connector implementation="org.mortbay.jetty.nio.SelectChannelConnector">
118 <port>${my.jetty.port}</port>
119 <maxIdleTime>60000</maxIdleTime>
120 </connector>
121 </connectors>
122 </configuration>
123 <executions>
124 <execution>
125 <id>start-jetty</id>
126 <phase>pre-integration-test</phase>
127 <goals>
128 <goal>run</goal>
129 </goals>
130 <configuration>
131 <scanIntervalSeconds>0</scanIntervalSeconds>
132 <daemon>true</daemon>
133 </configuration>
134 </execution>
135 <execution>
136 <id>stop-jetty</id>
137 <phase>post-integration-test</phase>
138 <goals>
139 <goal>stop</goal>
140 </goals>
141 </execution>
142 </executions>
143 </plugin>
144 </plugins>
145 </build>
146 </project>