Strabon

view endpoint/pom.xml @ 550:e5930301d59c

added connection.properties under WEB-INF/ directory. Now the connection details have to be given in that file only.
This change is for facilitating the permanent update of connection details.
author Babis Nikolaou <charnik@di.uoa.gr>
date Sat Sep 15 23:52:14 2012 +0300 (2012-09-15)
parents 4bd5b9a0177b
children e53c5ec92c0a 0223607ec93f
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.4-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 <!-- GeoTools -->
45 <dependency>
46 <groupId>org.geotools.xsd</groupId>
47 <artifactId>gt-xsd-kml</artifactId>
48 </dependency>
50 <dependency>
51 <groupId>org.geotools</groupId>
52 <artifactId>gt-xml</artifactId>
53 </dependency>
55 <dependency>
56 <groupId>org.geotools</groupId>
57 <artifactId>gt-epsg-hsql</artifactId>
58 </dependency>
59 <dependency>
60 <groupId>org.geotools</groupId>
61 <artifactId>gt-shapefile</artifactId>
62 </dependency>
64 <!-- Testing: JUnit -->
65 <dependency>
66 <groupId>junit</groupId>
67 <artifactId>junit</artifactId>
68 <scope>test</scope>
69 </dependency>
71 <!-- JDBC Drivers -->
73 <dependency>
74 <groupId>postgresql</groupId>
75 <artifactId>postgresql</artifactId>
76 </dependency>
78 <!-- Spring framework -->
79 <dependency>
80 <groupId>org.springframework</groupId>
81 <artifactId>spring-webmvc</artifactId>
82 <exclusions>
83 <exclusion>
84 <groupId>commons-logging</groupId>
85 <artifactId>commons-logging</artifactId>
86 </exclusion>
87 </exclusions>
88 </dependency>
89 <dependency>
90 <groupId>org.springframework</groupId>
91 <artifactId>spring-aop</artifactId>
92 <exclusions>
93 <exclusion>
94 <groupId>commons-logging</groupId>
95 <artifactId>commons-logging</artifactId>
96 </exclusion>
97 </exclusions>
98 </dependency>
100 <!--
101 <dependency>
102 <groupId>org.apache.cxf</groupId>
103 <artifactId>cxf-rt-frontend-jaxws</artifactId>
104 </dependency>
106 <dependency>
107 <groupId>org.apache.cxf</groupId>
108 <artifactId>cxf-rt-transports-http</artifactId>
109 </dependency>
111 <dependency>
112 <groupId>org.apache.cxf</groupId>
113 <artifactId>cxf-rt-transports-http-jetty</artifactId>
114 <exclusions>
115 <exclusion>
116 <artifactId>slf4j-jdk14</artifactId>
117 <groupId>org.slf4j</groupId>
118 </exclusion>
119 </exclusions>
120 </dependency>
121 -->
122 <dependency>
123 <groupId>commons-validator</groupId>
124 <artifactId>commons-validator</artifactId>
125 </dependency>
126 </dependencies>
128 <build>
129 <plugins>
130 <plugin>
131 <groupId>org.apache.maven.plugins</groupId>
132 <artifactId>maven-compiler-plugin</artifactId>
133 <version>2.3.2</version>
134 <configuration>
135 <source>1.6</source>
136 <target>1.6</target>
137 <compilerArguments>
138 <endorseddirs>${endorsed.dir}</endorseddirs>
139 </compilerArguments>
140 </configuration>
141 </plugin>
142 <plugin>
143 <groupId>org.apache.maven.plugins</groupId>
144 <artifactId>maven-war-plugin</artifactId>
145 <version>2.1.1</version>
146 <configuration>
147 <webXml>${basedir}/WebContent/WEB-INF/web.xml</webXml>
148 <webResources>
149 <resource>
150 <targetPath>/WEB-INF</targetPath>
151 <directory>${basedir}/WebContent/WEB-INF</directory>
152 <includes>
153 <include>lib/**</include>
154 </includes>
155 </resource>
157 <resource>
158 <targetPath>/WEB-INF</targetPath>
159 <directory>${basedir}</directory>
160 <includes>
161 <include>wsdl/**</include>
162 </includes>
163 </resource>
165 <resource>
166 <targetPath>/WEB-INF</targetPath>
167 <directory>${basedir}/WebContent/WEB-INF</directory>
168 <includes>
169 <include>beans.xml</include>
170 <include>connection.properties</include>
171 </includes>
172 </resource>
174 <resource>
175 <targetPath>/WEB-INF/classes</targetPath>
176 <directory>${basedir}/src</directory>
177 <includes>
178 <include>log4j.properties</include>
179 </includes>
180 </resource>
182 <resource>
183 <targetPath>/</targetPath>
184 <directory>${basedir}/WebContent</directory>
185 <includes>
186 <include>style.css</include>
187 <include>store.jsp</include>
188 <include>query.jsp</include>
189 <include>describe.jsp</include>
190 <include>connection.jsp</include>
191 <include>teleios-header.html</include>
192 </includes>
193 </resource>
195 <resource>
196 <targetPath>/</targetPath>
197 <directory>${basedir}/WebContent</directory>
198 <includes>
199 <include>images/**</include>
200 <include>js/**</include>
201 </includes>
202 </resource>
203 </webResources>
204 <!-- <archive> <manifest> <addClasspath>true</addClasspath> </manifest>
205 </archive> -->
206 </configuration>
207 </plugin>
208 <!-- <plugin> <groupId>org.eclipse.m2e</groupId> <artifactId>lifecycle-mapping</artifactId>
209 <version>1.0.0</version> <configuration> <lifecycleMappingMetadata> <pluginExecutions>
210 <pluginExecution> <pluginExecutionFilter> <groupId>org.apache.maven.plugins</groupId>
211 <artifactId>maven-dependency-plugin</artifactId> <versionRange>[2.1,)</versionRange>
212 <goals> <goal>copy-dependencies</goal> </goals> </pluginExecutionFilter>
213 <action> <ignore /> </action> </pluginExecution> </pluginExecutions> </lifecycleMappingMetadata>
214 </configuration> </plugin> -->
215 <plugin>
216 <groupId>org.apache.maven.plugins</groupId>
217 <artifactId>maven-dependency-plugin</artifactId>
218 <version>2.4</version>
219 <executions>
220 <execution>
221 <!-- <phase>validate</phase> -->
222 <phase>package</phase>
223 <goals>
224 <goal>copy</goal>
225 </goals>
226 <configuration>
227 <outputDirectory>${endorsed.dir}</outputDirectory>
228 <silent>true</silent>
229 <artifactItems>
230 <artifactItem>
231 <groupId>javax</groupId>
232 <artifactId>javaee-endorsed-api</artifactId>
233 <version>6.0</version>
234 <type>jar</type>
235 </artifactItem>
236 </artifactItems>
237 </configuration>
238 </execution>
239 </executions>
240 </plugin>
241 <plugin>
242 <artifactId>maven-release-plugin</artifactId>
243 <version>2.2.2</version>
244 <configuration>
245 <tagNameFormat>v@{project.version}</tagNameFormat>
246 <autoVersionSubmodules>true</autoVersionSubmodules>
247 </configuration>
248 </plugin>
249 <plugin>
250 <groupId>org.apache.tomcat.maven</groupId>
251 <artifactId>tomcat7-maven-plugin</artifactId>
252 <executions>
253 <execution>
254 <id>tomcat-run</id>
255 <goals>
256 <goal>exec-war-only</goal>
257 </goals>
258 <!-- <phase>package</phase> -->
259 <phase>integration-test</phase>
260 <configuration>
261 <enableNaming>true</enableNaming>
262 </configuration>
263 </execution>
264 </executions>
265 </plugin>
266 </plugins>
268 <pluginManagement>
269 <plugins>
270 <!-- <plugin> <groupId>org.eclipse.m2e</groupId> <artifactId>lifecycle-mapping</artifactId>
271 <version>1.0.0</version> <configuration> <lifecycleMappingMetadata> <pluginExecutions>
272 <pluginExecution> <pluginExecutionFilter> <groupId>org.apache.maven.plugins</groupId>
273 <artifactId>maven-dependency-plugin</artifactId> <versionRange>[2.3,)</versionRange>
274 <goals> <goal>copy-dependencies</goal> </goals> </pluginExecutionFilter>
275 <action> <ignore /> </action> </pluginExecution> </pluginExecutions> </lifecycleMappingMetadata>
276 </configuration> </plugin> -->
277 <plugin>
278 <groupId>org.eclipse.m2e</groupId>
279 <artifactId>lifecycle-mapping</artifactId>
280 <version>1.0.0</version>
281 <configuration>
282 <lifecycleMappingMetadata>
283 <pluginExecutions>
284 <pluginExecution>
285 <pluginExecutionFilter>
286 <groupId>org.apache.maven.plugins</groupId>
287 <artifactId>maven-dependency-plugin</artifactId>
288 <versionRange>[2.1,)</versionRange>
289 <goals>
290 <goal>copy-dependencies</goal>
291 </goals>
292 </pluginExecutionFilter>
293 <action>
294 <ignore />
295 </action>
296 </pluginExecution>
297 </pluginExecutions>
298 </lifecycleMappingMetadata>
299 </configuration>
300 </plugin>
301 </plugins>
302 </pluginManagement>
303 </build>
304 </project>