Strabon

view endpoint/pom.xml @ 507:69fb6f4f192a

updated pom.xml of endpoint with dependencies so as not to have to include manually in the lib directory the JSTL API and implementation.
author Babis Nikolaou <charnik@di.uoa.gr>
date Wed Jul 25 16:42:13 2012 +0300 (2012-07-25)
parents 74f346ca104f
children a915117ecad3
line source
1 <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">
2 <modelVersion>4.0.0</modelVersion>
4 <parent>
5 <groupId>eu.earthobservatory</groupId>
6 <artifactId>strabon</artifactId>
7 <version>3.2.2-SNAPSHOT</version>
8 </parent>
10 <artifactId>strabon-endpoint</artifactId>
11 <packaging>war</packaging>
13 <name>StrabonEndpoint</name>
14 <description>An endpoint for Strabon</description>
16 <properties>
17 <endorsed.dir>${project.build.directory}/endorsed</endorsed.dir>
18 </properties>
20 <dependencies>
21 <dependency>
22 <groupId>javax</groupId>
23 <artifactId>javaee-web-api</artifactId>
24 <scope>provided</scope>
25 </dependency>
27 <dependency>
28 <groupId>eu.earthobservatory</groupId>
29 <artifactId>strabon-runtime</artifactId>
30 <type>jar</type>
31 <scope>compile</scope>
32 <exclusions>
33 <exclusion>
34 <artifactId>servlet-api-2.5</artifactId>
35 <groupId>org.mortbay.jetty</groupId>
36 </exclusion>
37 <exclusion>
38 <artifactId>jsp-api-2.1</artifactId>
39 <groupId>org.mortbay.jetty</groupId>
40 </exclusion>
41 </exclusions>
42 </dependency>
44 <!-- JSTL 1.2 API and Glassfish Implementation -->
45 <dependency>
46 <groupId>javax.servlet</groupId>
47 <artifactId>jstl</artifactId>
48 <version>1.2</version>
49 </dependency>
50 <dependency>
51 <groupId>org.glassfish.web</groupId>
52 <artifactId>jstl-impl</artifactId>
53 <version>1.2</version>
54 <exclusions>
55 <exclusion>
56 <artifactId>servlet-api</artifactId>
57 <groupId>javax.servlet</groupId>
58 </exclusion>
59 <exclusion>
60 <artifactId>jsp-api</artifactId>
61 <groupId>javax.servlet.jsp</groupId>
62 </exclusion>
63 <exclusion>
64 <artifactId>jstl-api</artifactId>
65 <groupId>javax.servlet.jsp.jstl</groupId>
66 </exclusion>
67 </exclusions>
68 </dependency>
69 <!-- JSTL 1.2 API and Glassfish Implementation -->
71 <!-- GeoTools -->
72 <dependency>
73 <groupId>org.geotools.xsd</groupId>
74 <artifactId>gt-xsd-kml</artifactId>
75 </dependency>
77 <dependency>
78 <groupId>org.geotools</groupId>
79 <artifactId>gt-xml</artifactId>
80 </dependency>
82 <dependency>
83 <groupId>org.geotools</groupId>
84 <artifactId>gt-epsg-hsql</artifactId>
85 </dependency>
86 <dependency>
87 <groupId>org.geotools</groupId>
88 <artifactId>gt-shapefile</artifactId>
89 </dependency>
91 <!-- Testing: JUnit -->
92 <dependency>
93 <groupId>junit</groupId>
94 <artifactId>junit</artifactId>
95 <scope>test</scope>
96 </dependency>
98 <!-- JDBC Drivers -->
100 <dependency>
101 <groupId>postgresql</groupId>
102 <artifactId>postgresql</artifactId>
103 </dependency>
105 <!-- Spring framework -->
106 <dependency>
107 <groupId>org.springframework</groupId>
108 <artifactId>spring-webmvc</artifactId>
109 <exclusions>
110 <exclusion>
111 <groupId>commons-logging</groupId>
112 <artifactId>commons-logging</artifactId>
113 </exclusion>
114 </exclusions>
115 </dependency>
116 <dependency>
117 <groupId>org.springframework</groupId>
118 <artifactId>spring-aop</artifactId>
119 <exclusions>
120 <exclusion>
121 <groupId>commons-logging</groupId>
122 <artifactId>commons-logging</artifactId>
123 </exclusion>
124 </exclusions>
125 </dependency>
127 <!--
128 <dependency>
129 <groupId>org.apache.cxf</groupId>
130 <artifactId>cxf-rt-frontend-jaxws</artifactId>
131 </dependency>
133 <dependency>
134 <groupId>org.apache.cxf</groupId>
135 <artifactId>cxf-rt-transports-http</artifactId>
136 </dependency>
138 <dependency>
139 <groupId>org.apache.cxf</groupId>
140 <artifactId>cxf-rt-transports-http-jetty</artifactId>
141 <exclusions>
142 <exclusion>
143 <artifactId>slf4j-jdk14</artifactId>
144 <groupId>org.slf4j</groupId>
145 </exclusion>
146 </exclusions>
147 </dependency>
148 -->
149 <dependency>
150 <groupId>commons-validator</groupId>
151 <artifactId>commons-validator</artifactId>
152 </dependency>
153 </dependencies>
155 <build>
156 <plugins>
157 <plugin>
158 <groupId>org.apache.maven.plugins</groupId>
159 <artifactId>maven-compiler-plugin</artifactId>
160 <version>2.3.2</version>
161 <configuration>
162 <source>1.6</source>
163 <target>1.6</target>
164 <compilerArguments>
165 <endorseddirs>${endorsed.dir}</endorseddirs>
166 </compilerArguments>
167 </configuration>
168 </plugin>
169 <plugin>
170 <groupId>org.apache.maven.plugins</groupId>
171 <artifactId>maven-war-plugin</artifactId>
172 <version>2.1.1</version>
173 <configuration>
174 <webXml>${basedir}/WebContent/WEB-INF/web.xml</webXml>
175 <webResources>
176 <resource>
177 <targetPath>/WEB-INF</targetPath>
178 <directory>${basedir}/WebContent/WEB-INF</directory>
179 <includes>
180 <include>lib/**</include>
181 </includes>
182 </resource>
184 <resource>
185 <targetPath>/WEB-INF</targetPath>
186 <directory>${basedir}</directory>
187 <includes>
188 <include>wsdl/**</include>
189 </includes>
190 </resource>
192 <resource>
193 <targetPath>/WEB-INF</targetPath>
194 <directory>${basedir}/WebContent/WEB-INF</directory>
195 <includes>
196 <include>beans.xml</include>
197 </includes>
198 </resource>
200 <resource>
201 <targetPath>/WEB-INF/classes</targetPath>
202 <directory>${basedir}/src</directory>
203 <includes>
204 <include>log4j.properties</include>
205 </includes>
206 </resource>
208 <resource>
209 <targetPath>/</targetPath>
210 <directory>${basedir}/WebContent</directory>
211 <includes>
212 <include>style.css</include>
213 <include>store.jsp</include>
214 <include>query.jsp</include>
215 <include>describe.jsp</include>
216 <include>teleios-header.html</include>
217 </includes>
218 </resource>
220 <resource>
221 <targetPath>/</targetPath>
222 <directory>${basedir}/WebContent</directory>
223 <includes>
224 <include>images/**</include>
225 </includes>
226 </resource>
227 </webResources>
228 <!-- <archive> <manifest> <addClasspath>true</addClasspath> </manifest>
229 </archive> -->
230 </configuration>
231 </plugin>
232 <!-- <plugin> <groupId>org.eclipse.m2e</groupId> <artifactId>lifecycle-mapping</artifactId>
233 <version>1.0.0</version> <configuration> <lifecycleMappingMetadata> <pluginExecutions>
234 <pluginExecution> <pluginExecutionFilter> <groupId>org.apache.maven.plugins</groupId>
235 <artifactId>maven-dependency-plugin</artifactId> <versionRange>[2.1,)</versionRange>
236 <goals> <goal>copy-dependencies</goal> </goals> </pluginExecutionFilter>
237 <action> <ignore /> </action> </pluginExecution> </pluginExecutions> </lifecycleMappingMetadata>
238 </configuration> </plugin> -->
239 <plugin>
240 <groupId>org.apache.maven.plugins</groupId>
241 <artifactId>maven-dependency-plugin</artifactId>
242 <version>2.4</version>
243 <executions>
244 <execution>
245 <!-- <phase>validate</phase> -->
246 <phase>package</phase>
247 <goals>
248 <goal>copy</goal>
249 </goals>
250 <configuration>
251 <outputDirectory>${endorsed.dir}</outputDirectory>
252 <silent>true</silent>
253 <artifactItems>
254 <artifactItem>
255 <groupId>javax</groupId>
256 <artifactId>javaee-endorsed-api</artifactId>
257 <version>6.0</version>
258 <type>jar</type>
259 </artifactItem>
260 </artifactItems>
261 </configuration>
262 </execution>
263 </executions>
264 </plugin>
265 <plugin>
266 <artifactId>maven-release-plugin</artifactId>
267 <version>2.2.2</version>
268 <configuration>
269 <tagNameFormat>v@{project.version}</tagNameFormat>
270 <autoVersionSubmodules>true</autoVersionSubmodules>
271 </configuration>
272 </plugin>
273 <plugin>
274 <groupId>org.apache.tomcat.maven</groupId>
275 <artifactId>tomcat7-maven-plugin</artifactId>
276 <executions>
277 <execution>
278 <id>tomcat-run</id>
279 <goals>
280 <goal>exec-war-only</goal>
281 </goals>
282 <!-- <phase>package</phase> -->
283 <phase>integration-test</phase>
284 <configuration>
285 <enableNaming>true</enableNaming>
286 </configuration>
287 </execution>
288 </executions>
289 </plugin>
290 </plugins>
292 <pluginManagement>
293 <plugins>
294 <!-- <plugin> <groupId>org.eclipse.m2e</groupId> <artifactId>lifecycle-mapping</artifactId>
295 <version>1.0.0</version> <configuration> <lifecycleMappingMetadata> <pluginExecutions>
296 <pluginExecution> <pluginExecutionFilter> <groupId>org.apache.maven.plugins</groupId>
297 <artifactId>maven-dependency-plugin</artifactId> <versionRange>[2.3,)</versionRange>
298 <goals> <goal>copy-dependencies</goal> </goals> </pluginExecutionFilter>
299 <action> <ignore /> </action> </pluginExecution> </pluginExecutions> </lifecycleMappingMetadata>
300 </configuration> </plugin> -->
301 <plugin>
302 <groupId>org.eclipse.m2e</groupId>
303 <artifactId>lifecycle-mapping</artifactId>
304 <version>1.0.0</version>
305 <configuration>
306 <lifecycleMappingMetadata>
307 <pluginExecutions>
308 <pluginExecution>
309 <pluginExecutionFilter>
310 <groupId>org.apache.maven.plugins</groupId>
311 <artifactId>maven-dependency-plugin</artifactId>
312 <versionRange>[2.1,)</versionRange>
313 <goals>
314 <goal>copy-dependencies</goal>
315 </goals>
316 </pluginExecutionFilter>
317 <action>
318 <ignore />
319 </action>
320 </pluginExecution>
321 </pluginExecutions>
322 </lifecycleMappingMetadata>
323 </configuration>
324 </plugin>
325 </plugins>
326 </pluginManagement>
327 </build>
328 </project>