Strabon

view endpoint/pom.xml @ 1511:f5e6db1a2ca6

Moved "apache commons" dependencies from runtime to endpoint.
author Panayiotis Smeros <psmeros@di.uoa.gr>
date Wed Apr 29 13:09:23 2015 +0300 (2015-04-29)
parents 0b133c29bf41
children c009d1364185
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.3.2-SNAPSHOT</version>
8 </parent>
10 <artifactId>strabon-endpoint</artifactId>
11 <packaging>war</packaging>
13 <name>Strabon: Endpoint</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-vocabulary</artifactId>
30 </dependency>
32 <dependency>
33 <groupId>eu.earthobservatory</groupId>
34 <artifactId>strabon-runtime</artifactId>
35 <type>jar</type>
36 <scope>compile</scope>
37 <exclusions>
38 <exclusion>
39 <artifactId>servlet-api-2.5</artifactId>
40 <groupId>org.mortbay.jetty</groupId>
41 </exclusion>
42 <exclusion>
43 <artifactId>jsp-api-2.1</artifactId>
44 <groupId>org.mortbay.jetty</groupId>
45 </exclusion>
46 </exclusions>
47 </dependency>
49 <!-- Apache Commons -->
50 <dependency>
51 <groupId>commons-cli</groupId>
52 <artifactId>commons-cli</artifactId>
53 </dependency>
54 <dependency>
55 <groupId>commons-dbcp</groupId>
56 <artifactId>commons-dbcp</artifactId>
57 </dependency>
58 <dependency>
59 <groupId>commons-fileupload</groupId>
60 <artifactId>commons-fileupload</artifactId>
61 </dependency>
62 <dependency>
63 <groupId>commons-io</groupId>
64 <artifactId>commons-io</artifactId>
65 <!-- this is the version that is specified as an optional dependency for
66 fileupload -->
67 </dependency>
68 <dependency>
69 <groupId>commons-httpclient</groupId>
70 <artifactId>commons-httpclient</artifactId>
71 <exclusions>
72 <exclusion>
73 <groupId>commons-logging</groupId>
74 <artifactId>commons-logging</artifactId>
75 </exclusion>
76 <exclusion>
77 <!-- httpclient includes older codec -->
78 <groupId>commons-codec</groupId>
79 <artifactId>commons-codec</artifactId>
80 </exclusion>
81 </exclusions>
82 </dependency>
83 <dependency>
84 <groupId>commons-codec</groupId>
85 <artifactId>commons-codec</artifactId>
86 <scope>runtime</scope>
87 </dependency>
88 <!-- Apache Commons -->
91 <!-- GeoTools -->
92 <dependency>
93 <groupId>org.geotools.xsd</groupId>
94 <artifactId>gt-xsd-kml</artifactId>
95 </dependency>
97 <dependency>
98 <groupId>org.geotools</groupId>
99 <artifactId>gt-xml</artifactId>
100 </dependency>
102 <dependency>
103 <groupId>org.geotools</groupId>
104 <artifactId>gt-epsg-hsql</artifactId>
105 </dependency>
106 <dependency>
107 <groupId>org.geotools</groupId>
108 <artifactId>gt-shapefile</artifactId>
109 </dependency>
111 <!-- Testing: JUnit -->
112 <dependency>
113 <groupId>junit</groupId>
114 <artifactId>junit</artifactId>
115 <scope>test</scope>
116 </dependency>
118 <!-- JDBC Drivers -->
120 <dependency>
121 <groupId>postgresql</groupId>
122 <artifactId>postgresql</artifactId>
123 </dependency>
125 <!-- Spring framework -->
126 <dependency>
127 <groupId>org.springframework</groupId>
128 <artifactId>spring-webmvc</artifactId>
129 <exclusions>
130 <exclusion>
131 <groupId>commons-logging</groupId>
132 <artifactId>commons-logging</artifactId>
133 </exclusion>
134 </exclusions>
135 </dependency>
136 <dependency>
137 <groupId>org.springframework</groupId>
138 <artifactId>spring-aop</artifactId>
139 <exclusions>
140 <exclusion>
141 <groupId>commons-logging</groupId>
142 <artifactId>commons-logging</artifactId>
143 </exclusion>
144 </exclusions>
145 </dependency>
147 <dependency>
148 <groupId>commons-validator</groupId>
149 <artifactId>commons-validator</artifactId>
150 </dependency>
151 </dependencies>
153 <build>
154 <resources>
155 <resource>
156 <directory>src/main/resources</directory>
157 <filtering>true</filtering>
158 <includes>
159 <include>**/version.properties</include>
160 </includes>
161 </resource>
162 <resource>
163 <directory>src/main/resources</directory>
164 <filtering>false</filtering>
165 <excludes>
166 <exclude>**/version.properties</exclude>
167 </excludes>
168 </resource>
169 </resources>
170 <plugins>
171 <plugin>
172 <groupId>org.apache.maven.plugins</groupId>
173 <artifactId>maven-compiler-plugin</artifactId>
174 <version>2.3.2</version>
175 <configuration>
176 <source>1.6</source>
177 <target>1.6</target>
178 <compilerArguments>
179 <endorseddirs>${endorsed.dir}</endorseddirs>
180 </compilerArguments>
181 </configuration>
182 </plugin>
183 <plugin>
184 <groupId>org.apache.maven.plugins</groupId>
185 <artifactId>maven-war-plugin</artifactId>
186 <version>2.1.1</version>
187 <configuration>
188 <webXml>${basedir}/WebContent/WEB-INF/web.xml</webXml>
189 <webResources>
190 <resource>
191 <targetPath>/WEB-INF</targetPath>
192 <directory>${basedir}/WebContent/WEB-INF</directory>
193 <includes>
194 <include>lib/**</include>
195 </includes>
196 </resource>
198 <resource>
199 <targetPath>/WEB-INF</targetPath>
200 <directory>${basedir}</directory>
201 <includes>
202 <include>wsdl/**</include>
203 </includes>
204 </resource>
206 <resource>
207 <targetPath>/WEB-INF</targetPath>
208 <directory>${basedir}/WebContent/WEB-INF</directory>
209 <includes>
210 <include>beans.xml</include>
211 <include>connection.properties</include>
212 <include>credentials.properties</include>
213 </includes>
214 </resource>
216 <resource>
217 <targetPath>/WEB-INF/classes</targetPath>
218 <directory>${basedir}/src</directory>
219 <includes>
220 <include>log4j.properties</include>
221 </includes>
222 </resource>
224 <resource>
225 <targetPath>/</targetPath>
226 <directory>${basedir}/WebContent</directory>
227 <includes>
228 <include>style.css</include>
229 <include>style-menu.css</include>
230 <include>store.jsp</include>
231 <include>query.jsp</include>
232 <include>describe.jsp</include>
233 <include>connection.jsp</include>
234 <include>connection.jsp</include>
235 <include>browse.jsp</include>
236 <include>header.html</include>
237 </includes>
238 </resource>
240 <resource>
241 <targetPath>/</targetPath>
242 <directory>${basedir}/WebContent</directory>
243 <includes>
244 <include>images/**</include>
245 <include>js/**</include>
246 </includes>
247 </resource>
248 </webResources>
249 <!-- <archive> <manifest> <addClasspath>true</addClasspath> </manifest>
250 </archive> -->
251 </configuration>
252 </plugin>
253 <!--
254 <plugin>
255 <groupId>org.eclipse.m2e</groupId>
256 <artifactId>lifecycle-mapping</artifactId>
257 <version>1.0.0</version>
258 <configuration>
259 <lifecycleMappingMetadata>
260 <pluginExecutions>
261 <pluginExecution>
262 <pluginExecutionFilter>
263 <groupId>org.apache.maven.plugins</groupId>
264 <artifactId>maven-dependency-plugin</artifactId>
265 <versionRange>[2.1,)</versionRange>
266 <goals>
267 <goal>copy-dependencies</goal>
268 </goals>
269 </pluginExecutionFilter>
270 <action>
271 <ignore />
272 </action>
273 </pluginExecution>
274 </pluginExecutions>
275 </lifecycleMappingMetadata>
276 </configuration>
277 </plugin>
278 -->
279 <plugin>
280 <groupId>org.apache.maven.plugins</groupId>
281 <artifactId>maven-dependency-plugin</artifactId>
282 <version>2.4</version>
283 <executions>
284 <execution>
285 <!-- <phase>validate</phase> -->
286 <phase>package</phase>
287 <goals>
288 <goal>copy</goal>
289 </goals>
290 <configuration>
291 <outputDirectory>${endorsed.dir}</outputDirectory>
292 <silent>true</silent>
293 <artifactItems>
294 <artifactItem>
295 <groupId>javax</groupId>
296 <artifactId>javaee-endorsed-api</artifactId>
297 <version>6.0</version>
298 <type>jar</type>
299 </artifactItem>
300 </artifactItems>
301 </configuration>
302 </execution>
303 </executions>
304 </plugin>
305 <plugin>
306 <artifactId>maven-release-plugin</artifactId>
307 <version>2.2.2</version>
308 <configuration>
309 <tagNameFormat>v@{project.version}</tagNameFormat>
310 <autoVersionSubmodules>true</autoVersionSubmodules>
311 </configuration>
312 </plugin>
313 </plugins>
315 <pluginManagement>
316 <plugins>
317 <!-- <plugin> <groupId>org.eclipse.m2e</groupId> <artifactId>lifecycle-mapping</artifactId>
318 <version>1.0.0</version> <configuration> <lifecycleMappingMetadata> <pluginExecutions>
319 <pluginExecution> <pluginExecutionFilter> <groupId>org.apache.maven.plugins</groupId>
320 <artifactId>maven-dependency-plugin</artifactId> <versionRange>[2.3,)</versionRange>
321 <goals> <goal>copy-dependencies</goal> </goals> </pluginExecutionFilter>
322 <action> <ignore /> </action> </pluginExecution> </pluginExecutions> </lifecycleMappingMetadata>
323 </configuration> </plugin> -->
324 <plugin>
325 <groupId>org.eclipse.m2e</groupId>
326 <artifactId>lifecycle-mapping</artifactId>
327 <version>1.0.0</version>
328 <configuration>
329 <lifecycleMappingMetadata>
330 <pluginExecutions>
331 <pluginExecution>
332 <pluginExecutionFilter>
333 <groupId>org.apache.maven.plugins</groupId>
334 <artifactId>maven-dependency-plugin</artifactId>
335 <versionRange>[2.4,)</versionRange>
336 <goals>
337 <goal>copy-dependencies</goal>
338 </goals>
339 </pluginExecutionFilter>
340 <action>
341 <ignore />
342 </action>
343 </pluginExecution>
344 </pluginExecutions>
345 </lifecycleMappingMetadata>
346 </configuration>
347 </plugin>
348 </plugins>
349 </pluginManagement>
350 </build>
351 </project>