webapp
Used in:
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency>
<groupId>org.n52.sensorweb.sos</groupId>
<artifactId>webapp</artifactId>
<version>5.0.0-alpha.10</version>
</dependency><?xml version="1.0" encoding="UTF-8"?>
<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/maven-v4_0_0.xsd">
<parent>
<artifactId>52n-sos</artifactId>
<groupId>org.n52.sensorweb.sos</groupId>
<version>5.0.0-alpha.10</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>webapp</artifactId>
<packaging>war</packaging>
<name>52°North SOS - Webapp</name>
<description>52°North Sensor Observation Service WAR</description>
<properties>
<sqliteSettingDatabase>${project.parent.basedir}/misc/conf/default_settings.db</sqliteSettingDatabase>
<databaseConfigurationFile>${project.parent.basedir}/misc/conf/datasource.properties</databaseConfigurationFile>
<!-- do not overwrite this one! -->
<sqliteSettingDatabaseTargetFile>${project.build.directory}/${project.build.finalName}/config/configuration.db</sqliteSettingDatabaseTargetFile>
<helgoland.version>1.0.0</helgoland.version>
<jetty.port.http>9090</jetty.port.http>
<jetty.port.stop>9091</jetty.port.stop>
</properties>
<build>
<finalName>${conf.sos.name}</finalName>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<includes>
<include>**/*Suite*.java</include>
</includes>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<configuration>
<ignoredUnusedDeclaredDependencies>
<ignoredUnusedDeclaredDependency>org.n52.series-api.db:webapp:war</ignoredUnusedDeclaredDependency>
</ignoredUnusedDeclaredDependencies>
</configuration>
<executions>
<execution>
<id>hibernate-mapping</id>
<phase>generate-resources</phase>
<goals>
<goal>unpack</goal>
</goals>
<configuration>
<usedDependencies>
<usedDependency>org.springframework:spring-core</usedDependency>
</usedDependencies>
<artifactItems>
<artifactItem>
<groupId>org.n52.series.db</groupId>
<artifactId>mappings</artifactId>
<overWrite>false</overWrite>
</artifactItem>
</artifactItems>
<includes>**/*.xml,**/README</includes>
<outputDirectory>${project.build.outputDirectory}</outputDirectory>
<overWriteReleases>false</overWriteReleases>
</configuration>
</execution>
<execution>
<id>svalbard</id>
<phase>generate-resources</phase>
<goals>
<goal>unpack</goal>
</goals>
<configuration>
<includes>svalbard-*-context.xml</includes>
<outputDirectory>${project.build.outputDirectory}/contexts/configured/</outputDirectory>
<overWrite>true</overWrite>
<overWriteReleases>false</overWriteReleases>
<artifactItems>
<artifactItem>
<groupId>org.n52.arctic-sea</groupId>
<artifactId>svalbard</artifactId>
</artifactItem>
<artifactItem>
<groupId>org.n52.arctic-sea</groupId>
<artifactId>svalbard-exi</artifactId>
</artifactItem>
<artifactItem>
<groupId>org.n52.arctic-sea</groupId>
<artifactId>svalbard-json</artifactId>
</artifactItem>
<artifactItem>
<groupId>org.n52.arctic-sea</groupId>
<artifactId>svalbard-json-common</artifactId>
</artifactItem>
<artifactItem>
<groupId>org.n52.arctic-sea</groupId>
<artifactId>svalbard-xmlbeans</artifactId>
</artifactItem>
<artifactItem>
<groupId>org.n52.arctic-sea</groupId>
<artifactId>svalbard-xmlstream</artifactId>
</artifactItem>
</artifactItems>
</configuration>
</execution>
</executions>
</plugin>
<!--
<plugin>
<groupId>com.googlecode.maven-download-plugin</groupId>
<artifactId>download-maven-plugin</artifactId>
<version>1.3.0</version>
<executions>
<execution>
<id>download-helgoland</id>
<phase>generate-sources</phase>
<goals>
<goal>wget</goal>
</goals>
<configuration>
<url>https://github.com/52North/helgoland/releases/download/v${helgoland.version}/client.${helgoland.version}.war</url>
<unpack>true</unpack>
<outputDirectory>${project.build.directory}/${project.build.finalName}/static/client/helgoland</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<configuration>
<filteringDeploymentDescriptors>true</filteringDeploymentDescriptors>
<webResources>
<resource>
<directory>src/main/webapp</directory>
<filtering>true</filtering>
<exclude>**/static/**</exclude>
</resource>
<resource>
<directory>src/main/webapp</directory>
<filtering>false</filtering>
<include>**/static/**</include>
</resource>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
<targetPath>WEB-INF/classes</targetPath>
</resource>
<resource>
<directory>../misc/db</directory>
<filtering>false</filtering>
<targetPath>sql</targetPath>
<includes>
<include>**/*.sql</include>
</includes>
</resource>
</webResources>
<overlays>
<overlay>
<groupId>${project.groupId}</groupId>
<artifactId>views</artifactId>
</overlay>
<overlay>
<groupId>org.n52.series-api.db</groupId>
<artifactId>webapp</artifactId>
<includes>
<include>WEB-INF/spring/*</include>
<include>WEB-INF/classes/**</include>
<!--
<include>WEB-INF/classes/*.json</include>
<include>WEB-INF/classes/*.properties</include>
<include>WEB-INF/classes/*.txt</include>
<include>WEB-INF/classes/org/*</include>
<include>WEB-INF/classes/**/*.class)</include>
-->
</includes>
<excludes>
<exclude>WEB-INF/spring/series-database-config.xml</exclude>
<exclude>WEB-INF/classes/*.xml</exclude>
</excludes>
</overlay>
</overlays>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>test-jar</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<dependencies>
<!-- copied from REST-API series-dao-webapp -->
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-oxm</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-aspects</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.aspectj</groupId>
<artifactId>aspectjtools</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>com.mchange</groupId>
<artifactId>c3p0</artifactId>
<scope>runtime</scope>
</dependency>
<!-- LOGGING -->
<dependency>
<groupId>org.n52.arctic-sea</groupId>
<artifactId>iceland</artifactId>
</dependency>
<dependency>
<groupId>org.n52.arctic-sea</groupId>
<artifactId>svalbard</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.n52.arctic-sea</groupId>
<artifactId>svalbard-exi</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.n52.arctic-sea</groupId>
<artifactId>svalbard-json-common</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.n52.arctic-sea</groupId>
<artifactId>svalbard-json</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.n52.arctic-sea</groupId>
<artifactId>svalbard-xmlbeans</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.n52.arctic-sea</groupId>
<artifactId>shetland</artifactId>
</dependency>
<dependency>
<groupId>org.n52.arctic-sea</groupId>
<artifactId>janmayen</artifactId>
</dependency>
<dependency>
<groupId>org.apache.xmlbeans</groupId>
<artifactId>xmlbeans</artifactId>
</dependency>
<dependency>
<groupId>stax</groupId>
<artifactId>stax-api</artifactId>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
</dependency>
<dependency>
<groupId>joda-time</groupId>
<artifactId>joda-time</artifactId>
</dependency>
<dependency>
<groupId>org.locationtech.jts</groupId>
<artifactId>jts-core</artifactId>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.dataformat</groupId>
<artifactId>jackson-dataformat-cbor</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
</dependency>
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest-all</artifactId>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>net.bytebuddy</groupId>
<artifactId>byte-buddy</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.n52.sensorweb</groupId>
<artifactId>52n-xml-sos-v20</artifactId>
</dependency>
<dependency>
<groupId>org.n52.sensorweb</groupId>
<artifactId>52n-xml-swes-v20</artifactId>
</dependency>
<dependency>
<groupId>org.n52.sensorweb</groupId>
<artifactId>52n-xml-ows-v110</artifactId>
</dependency>
<dependency>
<groupId>org.n52.sensorweb</groupId>
<artifactId>52n-xml-soap-v12</artifactId>
</dependency>
<dependency>
<groupId>org.n52.sensorweb</groupId>
<artifactId>52n-xml-om-v20</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.n52.sensorweb</groupId>
<artifactId>52n-xml-om-v100</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.n52.sensorweb</groupId>
<artifactId>52n-xml-sos-v100</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.n52.sensorweb</groupId>
<artifactId>52n-xml-sensorML-v101</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.n52.sensorweb</groupId>
<artifactId>52n-xml-sensorML-v20</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>net.java.dev.jna</groupId>
<artifactId>jna</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>edu.ucar</groupId>
<artifactId>cdm</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-core</artifactId>
</dependency>
<dependency>
<groupId>org.hibernate.common</groupId>
<artifactId>hibernate-commons-annotations</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-aop</artifactId>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-beans</artifactId>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-webmvc</artifactId>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
</dependency>
<dependency>
<groupId>xml-apis</groupId>
<artifactId>xml-apis</artifactId>
</dependency>
<!-- LOGGING -->
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>jcl-over-slf4j</artifactId>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>jul-to-slf4j</artifactId>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>log4j-over-slf4j</artifactId>
</dependency>
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
<scope>runtime</scope>
</dependency>
<!-- CORE -->
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>profile-coding</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>api</artifactId>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>cache</artifactId>
<scope>runtime</scope>
</dependency>
<!-- CODING -->
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>coding-kvp</artifactId>
<scope>runtime</scope>
</dependency>
<!-- OPERATIONS -->
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>core-v20</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>enhanced-v20</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>transactional-v20</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>resultHandling-v20</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>extensions-v20</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>core-v100</artifactId>
<scope>runtime</scope>
</dependency>
<!-- HIBERNATE -->
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>hibernate-session-factory</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>hibernate-common</artifactId>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>handler</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>hibernate-handler</artifactId>
<scope>runtime</scope>
</dependency>
<!--
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>gc-dao</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>hibernate-dao</artifactId>
<scope>runtime</scope>
</dependency>
-->
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>hibernate-feature</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>hibernate-datasource-common</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>hibernate-datasource-h2</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>hibernate-datasource-sqlserver</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>hibernate-datasource-postgres</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>hibernate-datasource-mysql</artifactId>
<scope>runtime</scope>
</dependency>
<!-- CONVERTER -->
<!-- coordinates -->
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>request-response-coordinate-transformer</artifactId>
<scope>runtime</scope>
</dependency>
<!-- procedure -->
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>procedure-description-converter</artifactId>
<scope>runtime</scope>
</dependency>
<!-- Split and Merge observations -->
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>split-and-merge</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>observation-converter</artifactId>
<scope>runtime</scope>
</dependency>
<!-- flexible identifiers -->
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>abstract-identifier</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>flexible-identifier</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>prefixed-identifier</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>ereporting-identifier</artifactId>
<scope>runtime</scope>
</dependency>
<!-- INSERT FEATUREOFINTEREST -->
<dependency>
<groupId>org.n52.sensorweb</groupId>
<artifactId>52n-xml-ifoi-v10</artifactId>
<scope>runtime</scope>
</dependency>
<!-- DELETE RESULT TEMPLATE -->
<dependency>
<groupId>org.n52.sensorweb</groupId>
<artifactId>52n-xml-drt-v100</artifactId>
<scope>runtime</scope>
</dependency>
<!-- DELETE OBSERVATION -->
<dependency>
<groupId>org.n52.sensorweb</groupId>
<artifactId>52n-xml-sosdo-v10</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.n52.sensorweb</groupId>
<artifactId>52n-xml-sosdo-v20</artifactId>
<scope>runtime</scope>
</dependency>
<!-- dependencies for integration test -->
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>hibernate-h2</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>test-suite-common</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>test-suite-sos-20</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
<scope>test</scope>
</dependency>
<!-- #### Spring dependencies #### -->
<dependency>
<groupId>com.thetransactioncompany</groupId>
<artifactId>cors-filter</artifactId>
</dependency>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
<scope>runtime</scope>
<exclusions>
<exclusion>
<groupId>commons-codec</groupId>
<artifactId>commons-codec</artifactId>
</exclusion>
</exclusions>
</dependency>
<!-- Statistics -->
<dependency>
<groupId>org.n52.sensorweb.sos</groupId>
<artifactId>statistics</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.n52.arctic-sea</groupId>
<artifactId>iceland-statistics</artifactId>
<scope>runtime</scope>
</dependency>
<!-- ADMINISTRATION INTERFACE -->
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>client-controller</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>install-controller</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>admin-controller</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>common-controller</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>views</artifactId>
<type>war</type>
<scope>runtime</scope>
</dependency>
<!-- INSPIRE -->
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>inspire-code</artifactId>
<scope>runtime</scope>
</dependency>
<!-- AQD eReporting -->
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>aqd-v10</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>eprtr</artifactId>
<scope>runtime</scope>
</dependency>
<!-- netCDF -->
<dependency>
<groupId>com.axiomalaska</groupId>
<artifactId>cf4j</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>edu.ucar</groupId>
<artifactId>netcdf4</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>api-netcdf</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>coding-netcdf</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>coding-oceansites</artifactId>
<scope>runtime</scope>
</dependency>
<!-- REST API Dependencies -->
<dependency>
<groupId>org.n52.series-api</groupId>
<artifactId>io</artifactId>
<scope>runtime</scope>
<exclusions>
<exclusion>
<groupId>org.geotools</groupId>
<artifactId>gt-main</artifactId>
</exclusion>
<exclusion>
<groupId>org.geotools</groupId>
<artifactId>gt-epsg-hsql</artifactId>
</exclusion>
<exclusion>
<groupId>org.geotools</groupId>
<artifactId>gt-opengis</artifactId>
</exclusion>
<exclusion>
<groupId>org.geotools</groupId>
<artifactId>gt-metadata</artifactId>
</exclusion>
<exclusion>
<groupId>c3p0</groupId>
<artifactId>c3p0</artifactId>
</exclusion>
<exclusion>
<groupId>com.mchange</groupId>
<artifactId>c3p0</artifactId>
</exclusion>
<exclusion>
<groupId>commons-codec</groupId>
<artifactId>commons-codec</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.n52.series-api</groupId>
<artifactId>rest</artifactId>
<scope>runtime</scope>
<exclusions>
<exclusion>
<groupId>org.geotools</groupId>
<artifactId>gt-main</artifactId>
</exclusion>
<exclusion>
<groupId>org.geotools</groupId>
<artifactId>gt-epsg-hsql</artifactId>
</exclusion>
<exclusion>
<groupId>org.geotools</groupId>
<artifactId>gt-opengis</artifactId>
</exclusion>
<exclusion>
<groupId>org.geotools</groupId>
<artifactId>gt-metadata</artifactId>
</exclusion>
<exclusion>
<groupId>c3p0</groupId>
<artifactId>c3p0</artifactId>
</exclusion>
<exclusion>
<groupId>com.mchange</groupId>
<artifactId>c3p0</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.n52.series-api</groupId>
<artifactId>spi</artifactId>
<scope>runtime</scope>
<exclusions>
<exclusion>
<groupId>org.geotools</groupId>
<artifactId>gt-main</artifactId>
</exclusion>
<exclusion>
<groupId>org.geotools</groupId>
<artifactId>gt-epsg-hsql</artifactId>
</exclusion>
<exclusion>
<groupId>org.geotools</groupId>
<artifactId>gt-opengis</artifactId>
</exclusion>
<exclusion>
<groupId>org.geotools</groupId>
<artifactId>gt-metadata</artifactId>
</exclusion>
<exclusion>
<groupId>c3p0</groupId>
<artifactId>c3p0</artifactId>
</exclusion>
<exclusion>
<groupId>com.mchange</groupId>
<artifactId>c3p0</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.n52.series-api.db</groupId>
<artifactId>webapp</artifactId>
<version>${dataset.dao.version}</version>
<type>war</type>
</dependency>
<dependency>
<groupId>org.n52.series-api.db</groupId>
<artifactId>dao</artifactId>
<scope>runtime</scope>
<exclusions>
<exclusion>
<groupId>org.geotools</groupId>
<artifactId>gt-main</artifactId>
</exclusion>
<exclusion>
<groupId>org.geotools</groupId>
<artifactId>gt-epsg-hsql</artifactId>
</exclusion>
<exclusion>
<groupId>org.geotools</groupId>
<artifactId>gt-opengis</artifactId>
</exclusion>
<exclusion>
<groupId>org.geotools</groupId>
<artifactId>gt-metadata</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.n52.series.db</groupId>
<artifactId>entities</artifactId>
<scope>runtime</scope>
<exclusions>
<exclusion>
<groupId>org.geotools</groupId>
<artifactId>gt-main</artifactId>
</exclusion>
<exclusion>
<groupId>org.geotools</groupId>
<artifactId>gt-epsg-hsql</artifactId>
</exclusion>
<exclusion>
<groupId>org.geotools</groupId>
<artifactId>gt-opengis</artifactId>
</exclusion>
<exclusion>
<groupId>org.geotools</groupId>
<artifactId>gt-metadata</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.geotools</groupId>
<artifactId>gt-main</artifactId>
<scope>runtime</scope>
</dependency>
</dependencies>
<profiles>
<profile>
<id>oracle</id>
<dependencies>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>hibernate-datasource-oracle</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>com.oracle</groupId>
<artifactId>ojdbc6</artifactId>
<scope>runtime</scope>
</dependency>
</dependencies>
</profile>
<profile>
</profile>
<profile>
<!-- Profile for integration testing, run with: mvn -P itest clean install -->
<id>itest</id>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>reserve-network-port</goal>
</goals>
<configuration>
<portNames>
<portName>jetty.port.http</portName>
<portName>jetty.port.stop</portName>
</portNames>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>integration-test</goal>
<goal>verify</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
<executions>
<execution>
<id>start-jetty</id>
<phase>pre-integration-test</phase>
<goals>
<goal>stop</goal>
<goal>run-exploded</goal>
</goals>
<configuration>
<scanIntervalSeconds>0</scanIntervalSeconds>
<daemon>true</daemon>
</configuration>
</execution>
<execution>
<id>stop-jetty</id>
<phase>post-integration-test</phase>
<goals>
<goal>stop</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>assembly</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
<execution>
<phase>install</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<finalName>52n-sensorweb-sos-${project.version}</finalName>
<appendAssemblyId>false</appendAssemblyId>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>hibernate-datasource-oracle</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>hibernate-datasource-sqlserver</artifactId>
<scope>runtime</scope>
</dependency>
</dependencies>
</profile>
<!-- Profile for deploy SOS -->
<profile>
<id>deploy</id>
<build>
<finalName>${conf.sos.name}</finalName>
<plugins>
<plugin>
<inherited>true</inherited>
<groupId>org.codehaus.cargo</groupId>
<artifactId>cargo-maven2-plugin</artifactId>
<executions>
<execution>
<id>verify-deploy</id>
<phase>install</phase>
<goals>
<goal>deployer-redeploy</goal>
</goals>
</execution>
<!-- <execution> <id>clean-undeploy</id> <phase>pre-clean</phase> <goals> <goal>deployer-undeploy</goal> </goals> </execution> -->
</executions>
<configuration>
<!-- Container Configuration -->
<container>
<!-- e.g. tomcat6x -->
<containerId>${deploy.containerId}</containerId>
<type>remote</type>
</container>
<configuration>
<type>runtime</type>
<!-- <cargo.hostname>${remote.server}</cargo.hostname> <cargo.servlet.port>${remote.port}</cargo.servlet.port> <cargo.remote.username>${remote.user}</cargo.remote.username>
<cargo.remote.password>${remote.password}</cargo.remote.password> -->
</configuration>
<deployables>
<deployable>
<groupId>${project.groupId}</groupId>
<artifactId>${project.artifactId}</artifactId>
<type>war</type>
</deployable>
</deployables>
<!-- Deployer and Deployables configuration -->
<deployer>
<type>remote</type>
</deployer>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<!-- ################################################################################
######################## Profiles to preconfigure the webapp ########################
################################################################################# -->
<!-- ########## Profile to use a specified database configuration file
########## -->
<profile>
<id>configure-datasource</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>configure-datasource</id>
<phase>process-resources</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<tasks>
<copy file="${databaseConfigurationFile}" tofile="${project.build.directory}/${project.build.finalName}/config/datasource.properties" />
</tasks>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<!-- ############## Profile to use a existing SQLite configuration ############## -->
<profile>
<id>use-default-settings</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>use-default-settings</id>
<phase>process-resources</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<tasks>
<delete quiet="true" file="${sqliteSettingDatabaseTargetFile}" />
<copy file="${sqliteSettingDatabase}" tofile="${sqliteSettingDatabaseTargetFile}" />
</tasks>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>