| <?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/maven-v4_0_0.xsd"> |
| <modelVersion>4.0.0</modelVersion> |
| |
| <parent> |
| <groupId>org.apache.any23</groupId> |
| <artifactId>apache-any23</artifactId> |
| <version>2.3-SNAPSHOT</version> |
| <relativePath>../</relativePath> |
| </parent> |
| |
| <artifactId>apache-any23-service</artifactId> |
| <packaging>war</packaging> |
| |
| <name>Apache Any23 :: Service</name> |
| <description>Any23 Frontend and REST Service implementation.</description> |
| |
| <properties> |
| <!-- the following property is used in the bash script as well, don't remove it! --> |
| <jetty.runner.version>9.4.14.v20181114</jetty.runner.version> |
| <output.directory>${project.build.directory}/${project.artifactId}-${project.version}/WEB-INF/lib/apache-any23-openie</output.directory> |
| </properties> |
| |
| <dependencies> |
| <!-- Any23 Modules --> |
| <dependency> |
| <groupId>org.apache.any23</groupId> |
| <artifactId>apache-any23-core</artifactId> |
| <version>${project.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.any23.plugins</groupId> |
| <artifactId>apache-any23-openie</artifactId> |
| <version>${project.version}</version> |
| <scope>provided</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.allenai.openie</groupId> |
| <artifactId>openie_2.11</artifactId> |
| <version>${openie_2.11.version}</version> |
| <scope>provided</scope> |
| <exclusions> |
| <exclusion> |
| <groupId>ch.qos.logback</groupId> |
| <artifactId>logback-classic</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>ch.qos.logback</groupId> |
| <artifactId>logback-core</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| <dependency> |
| <groupId>org.allenai.openie</groupId> |
| <artifactId>openie_2.11</artifactId> |
| <version>${openie_2.11.version}</version> |
| <scope>provided</scope> |
| <type>pom</type> |
| <exclusions> |
| <exclusion> |
| <groupId>ch.qos.logback</groupId> |
| <artifactId>logback-classic</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>ch.qos.logback</groupId> |
| <artifactId>logback-core</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| <dependency> |
| <groupId>edu.washington.cs.knowitall</groupId> |
| <artifactId>openregex</artifactId> |
| <version>${openregex.version}</version> |
| <scope>provided</scope> |
| </dependency> |
| |
| <!-- BEGIN: Java EE APIs --> |
| <dependency> |
| <groupId>javax.xml.ws</groupId> |
| <artifactId>jaxws-api</artifactId> |
| <version>2.3.1</version> |
| </dependency> |
| |
| <!-- BEGIN: Jetty Dependencies --> |
| <dependency> |
| <groupId>org.eclipse.jetty</groupId> |
| <artifactId>jetty-runner</artifactId> |
| <version>${jetty.runner.version}</version> |
| <scope>provided</scope> |
| <optional>true</optional> |
| </dependency> |
| <!-- BEGIN: Test Dependencies --> |
| <dependency> |
| <groupId>org.eclipse.jetty</groupId> |
| <artifactId>jetty-servlet</artifactId> |
| <version>${jetty.runner.version}</version> |
| <scope>test</scope> |
| <classifier>tests</classifier> |
| </dependency> |
| <dependency> |
| <groupId>org.eclipse.jetty</groupId> |
| <artifactId>jetty-http</artifactId> |
| <version>${jetty.runner.version}</version> |
| <scope>test</scope> |
| <classifier>tests</classifier> |
| </dependency> |
| <!-- END: Jetty Dependencies --> |
| <dependency> |
| <groupId>junit</groupId> |
| <artifactId>junit</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.slf4j</groupId> |
| <artifactId>slf4j-log4j12</artifactId> |
| <version>${slf4j.logger.version}</version> |
| <scope>test</scope> |
| </dependency> |
| <!-- END: Test Dependencies --> |
| |
| </dependencies> |
| |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.eclipse.jetty</groupId> |
| <artifactId>jetty-maven-plugin</artifactId> |
| <version>${jetty.runner.version}</version> |
| <configuration> |
| <webAppConfig> |
| <baseResource implementation="org.eclipse.jetty.util.resource.ResourceCollection"> |
| <resourcesAsCSV>src/main</resourcesAsCSV> |
| </baseResource> |
| <contextPath>/${project.artifactId}</contextPath> |
| </webAppConfig> |
| </configuration> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-war-plugin</artifactId> |
| <configuration> |
| <webResources> |
| <resource> |
| <directory>${basedir}/src/main/resources/</directory> |
| <targetPath>/resources</targetPath> |
| <filtering>true</filtering> |
| </resource> |
| </webResources> |
| </configuration> |
| <executions> |
| <execution> |
| <id>self-contained-war</id> |
| <phase>package</phase> |
| <goals> |
| <goal>war</goal> |
| </goals> |
| <configuration> |
| <webResources> |
| <resource> |
| <directory>${project.build.directory}/war-legals/with-deps/</directory> |
| <targetPath>/META-INF</targetPath> |
| </resource> |
| </webResources> |
| </configuration> |
| </execution> |
| <execution> |
| <id>war-without-deps</id> |
| <phase>package</phase> |
| <goals> |
| <goal>war</goal> |
| </goals> |
| <configuration> |
| <classifier>without-deps</classifier> |
| <packagingExcludes>WEB-INF/lib/*.jar</packagingExcludes> |
| <archive> |
| <manifest> |
| <addClasspath>true</addClasspath> |
| <classpathPrefix>lib/</classpathPrefix> |
| </manifest> |
| </archive> |
| <webResources> |
| <resource> |
| <directory>${project.build.directory}/war-legals/without-deps/</directory> |
| <targetPath>/META-INF</targetPath> |
| </resource> |
| </webResources> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| |
| <!-- Generates the distribution package --> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-assembly-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>prepare-package</id> |
| <phase>prepare-package</phase> |
| <goals> |
| <goal>single</goal> |
| </goals> |
| <configuration> |
| <attach>false</attach> |
| <finalName>war-legals</finalName> |
| <appendAssemblyId>false</appendAssemblyId> |
| <descriptors> |
| <descriptor>${basedir}/src/main/assembly/prepare-war-legals.xml</descriptor> |
| </descriptors> |
| </configuration> |
| </execution> |
| </executions> |
| <configuration> |
| <descriptors> |
| <descriptor>${basedir}/src/main/assembly/with-deps.xml</descriptor> |
| <descriptor>${basedir}/src/main/assembly/without-deps.xml</descriptor> |
| <descriptor>${basedir}/src/main/assembly/server-embedded.xml</descriptor> |
| </descriptors> |
| </configuration> |
| </plugin> |
| |
| <!-- Used to provide dynamic OpenIE toggling within service --> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-dependency-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>copy</id> |
| <phase>prepare-package</phase> |
| <goals> |
| <goal>copy-dependencies</goal> |
| </goals> |
| <configuration> |
| <includeScope>provided</includeScope> |
| <outputDirectory>${output.directory}</outputDirectory> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-surefire-plugin</artifactId> |
| <configuration> |
| <classpathDependencyExcludes> |
| <classpathDependencyExclude>org.apache.any23.plugins:apache-any23-openie</classpathDependencyExclude> |
| </classpathDependencyExcludes> |
| </configuration> |
| </plugin> |
| |
| </plugins> |
| </build> |
| |
| <profiles> |
| <profile> |
| <id>release</id> |
| <build> |
| <resources> |
| <resource> |
| <directory>${basedir}/../</directory> |
| <targetPath>${project.build.directory}/apidocs/META-INF</targetPath> |
| <includes> |
| <include>LICENSE.txt</include> |
| <include>NOTICE.txt</include> |
| </includes> |
| </resource> |
| </resources> |
| </build> |
| </profile> |
| </profiles> |
| |
| </project> |