| <?xml version="1.0" encoding="UTF-8"?> |
| |
| <!-- |
| Licensed to the Apache Software Foundation (ASF) under one |
| or more contributor license agreements. See the NOTICE file |
| distributed with this work for additional information |
| regarding copyright ownership. The ASF licenses this file |
| to you under the Apache License, Version 2.0 (the |
| "License"); you may not use this file except in compliance |
| with the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, |
| software distributed under the License is distributed on an |
| "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| KIND, either express or implied. See the License for the |
| specific language governing permissions and limitations |
| under the License. |
| --> |
| |
| <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"> |
| <modelVersion>4.0.0</modelVersion> |
| |
| <parent> |
| <groupId>org.apache.sis</groupId> |
| <artifactId>application</artifactId> |
| <version>1.1-SNAPSHOT</version> |
| </parent> |
| |
| <groupId>org.apache.sis.application</groupId> |
| <artifactId>sis-webapp</artifactId> |
| <packaging>war</packaging> |
| <name>Apache SIS web services layer</name> |
| <url>http://sis.apache.org</url> |
| |
| <dependencies> |
| <dependency> |
| <groupId>javax</groupId> |
| <artifactId>javaee-api</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.geonames</groupId> |
| <artifactId>georss-rome</artifactId> |
| <version>0.9.8</version> |
| <!-- We have to specify the version here because georss-rome is intentionally excluded from |
| the dependency management of the root pom.xml. The problem is that the artifact filename |
| is "georss-rome", but the <artifactId> element in its pom.xml declares "georss" without |
| the "-rome" suffix, which causes some environments to complain about this inconsistency. |
| Omitting the declaration from the root pom.xml limits the inconvenience to this "sis-webapp" |
| module only. --> |
| </dependency> |
| </dependencies> |
| |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.codehaus.mojo</groupId> |
| <artifactId>build-helper-maven-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>reserve-ports</id> |
| <phase>pre-integration-test</phase> |
| <goals> |
| <goal>reserve-network-port</goal> |
| </goals> |
| <configuration> |
| <portNames> |
| <portName>jettyPort</portName> |
| <portName>stopPort</portName> |
| </portNames> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.eclipse.jetty</groupId> |
| <artifactId>jetty-maven-plugin</artifactId> |
| <configuration> |
| <stopKey>stopJetty</stopKey> |
| <stopPort>${stopPort}</stopPort> |
| <stopWait>4</stopWait> |
| </configuration> |
| <executions> |
| <execution> |
| <id>start-jetty</id> |
| <phase>pre-integration-test</phase> |
| <goals> |
| <goal>start</goal> |
| </goals> |
| <configuration> |
| <httpConnector> |
| <port>${jettyPort}</port> |
| </httpConnector> |
| <scanIntervalSeconds>0</scanIntervalSeconds> |
| <daemon>true</daemon> |
| <systemProperties> |
| <systemProperty> |
| <name>org.apache.commons.logging.Log</name> |
| <value>org.apache.commons.logging.impl.Jdk14Logger</value> |
| </systemProperty> |
| <systemProperty> |
| <name>java.util.logging.config.file</name> |
| <value>./src/test/resources/logging.properties</value> |
| </systemProperty> |
| </systemProperties> |
| </configuration> |
| </execution> |
| <execution> |
| <id>stop-jetty</id> |
| <phase>post-integration-test</phase> |
| <goals> |
| <goal>stop</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| |
| </project> |