Strabon

view endpoint/pom.xml @ 642:3135a083daa2

Added user authentication to StoreBean. The credentials are:

username: endpoint
password: 3ndpo1nt

I have also updated the endpoint script in order to authenticate when storing triples.
author Stella Giannakopoulou <sgian@di.uoa.gr>
date Thu Oct 18 15:10:51 2012 +0300 (2012-10-18)
parents 66736f11dee8
children 706b99be9078
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.5-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 <include>credentials.properties</include>
172 </includes>
173 </resource>
175 <resource>
176 <targetPath>/WEB-INF/classes</targetPath>
177 <directory>${basedir}/src</directory>
178 <includes>
179 <include>log4j.properties</include>
180 </includes>
181 </resource>
183 <resource>
184 <targetPath>/</targetPath>
185 <directory>${basedir}/WebContent</directory>
186 <includes>
187 <include>style.css</include>
188 <include>style-menu.css</include>
189 <include>store.jsp</include>
190 <include>query.jsp</include>
191 <include>describe.jsp</include>
192 <include>connection.jsp</include>
193 <include>connection.jsp</include>
194 <include>browse.jsp</include>
195 <include>teleios-header.html</include>
196 </includes>
197 </resource>
199 <resource>
200 <targetPath>/</targetPath>
201 <directory>${basedir}/WebContent</directory>
202 <includes>
203 <include>images/**</include>
204 <include>js/**</include>
205 </includes>
206 </resource>
207 </webResources>
208 <!-- <archive> <manifest> <addClasspath>true</addClasspath> </manifest>
209 </archive> -->
210 </configuration>
211 </plugin>
212 <!-- <plugin> <groupId>org.eclipse.m2e</groupId> <artifactId>lifecycle-mapping</artifactId>
213 <version>1.0.0</version> <configuration> <lifecycleMappingMetadata> <pluginExecutions>
214 <pluginExecution> <pluginExecutionFilter> <groupId>org.apache.maven.plugins</groupId>
215 <artifactId>maven-dependency-plugin</artifactId> <versionRange>[2.1,)</versionRange>
216 <goals> <goal>copy-dependencies</goal> </goals> </pluginExecutionFilter>
217 <action> <ignore /> </action> </pluginExecution> </pluginExecutions> </lifecycleMappingMetadata>
218 </configuration> </plugin> -->
219 <plugin>
220 <groupId>org.apache.maven.plugins</groupId>
221 <artifactId>maven-dependency-plugin</artifactId>
222 <version>2.4</version>
223 <executions>
224 <execution>
225 <!-- <phase>validate</phase> -->
226 <phase>package</phase>
227 <goals>
228 <goal>copy</goal>
229 </goals>
230 <configuration>
231 <outputDirectory>${endorsed.dir}</outputDirectory>
232 <silent>true</silent>
233 <artifactItems>
234 <artifactItem>
235 <groupId>javax</groupId>
236 <artifactId>javaee-endorsed-api</artifactId>
237 <version>6.0</version>
238 <type>jar</type>
239 </artifactItem>
240 </artifactItems>
241 </configuration>
242 </execution>
243 </executions>
244 </plugin>
245 <plugin>
246 <artifactId>maven-release-plugin</artifactId>
247 <version>2.2.2</version>
248 <configuration>
249 <tagNameFormat>v@{project.version}</tagNameFormat>
250 <autoVersionSubmodules>true</autoVersionSubmodules>
251 </configuration>
252 </plugin>
253 <plugin>
254 <groupId>org.apache.tomcat.maven</groupId>
255 <artifactId>tomcat7-maven-plugin</artifactId>
256 <executions>
257 <execution>
258 <id>tomcat-run</id>
259 <goals>
260 <goal>exec-war-only</goal>
261 </goals>
262 <!-- <phase>package</phase> -->
263 <phase>integration-test</phase>
264 <configuration>
265 <enableNaming>true</enableNaming>
266 </configuration>
267 </execution>
268 </executions>
269 </plugin>
270 </plugins>
272 <pluginManagement>
273 <plugins>
274 <!-- <plugin> <groupId>org.eclipse.m2e</groupId> <artifactId>lifecycle-mapping</artifactId>
275 <version>1.0.0</version> <configuration> <lifecycleMappingMetadata> <pluginExecutions>
276 <pluginExecution> <pluginExecutionFilter> <groupId>org.apache.maven.plugins</groupId>
277 <artifactId>maven-dependency-plugin</artifactId> <versionRange>[2.3,)</versionRange>
278 <goals> <goal>copy-dependencies</goal> </goals> </pluginExecutionFilter>
279 <action> <ignore /> </action> </pluginExecution> </pluginExecutions> </lifecycleMappingMetadata>
280 </configuration> </plugin> -->
281 <plugin>
282 <groupId>org.eclipse.m2e</groupId>
283 <artifactId>lifecycle-mapping</artifactId>
284 <version>1.0.0</version>
285 <configuration>
286 <lifecycleMappingMetadata>
287 <pluginExecutions>
288 <pluginExecution>
289 <pluginExecutionFilter>
290 <groupId>org.apache.maven.plugins</groupId>
291 <artifactId>maven-dependency-plugin</artifactId>
292 <versionRange>[2.1,)</versionRange>
293 <goals>
294 <goal>copy-dependencies</goal>
295 </goals>
296 </pluginExecutionFilter>
297 <action>
298 <ignore />
299 </action>
300 </pluginExecution>
301 </pluginExecutions>
302 </lifecycleMappingMetadata>
303 </configuration>
304 </plugin>
305 </plugins>
306 </pluginManagement>
307 </build>
308 </project>