| <!-- |
| |
| Licensed 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.traffic_control.traffic_router</groupId> |
| <artifactId>traffic_router</artifactId> |
| <version>7.0.1</version> |
| </parent> |
| |
| <artifactId>ROOT</artifactId> |
| <packaging>war</packaging> |
| |
| <scm> |
| <connection>scm:git:file://</connection> |
| <developerConnection>scm:git:file://</developerConnection> |
| </scm> |
| <properties> |
| <!-- Make sure to add -Djava.library.path=[tomcat native library path on your box] on the Maven |
| command line --> |
| <java.library.path>must be passed on the Maven commandline</java.library.path> |
| <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> |
| </properties> |
| <repositories> |
| <repository> |
| <id>cloudera</id> |
| <url>https://repository.cloudera.com/content/repositories/releases</url> |
| </repository> |
| </repositories> |
| |
| <build> |
| <finalName>ROOT</finalName> |
| <resources> |
| <resource> |
| <filtering>false</filtering> |
| <directory>src/main/resources</directory> |
| </resource> |
| <resource> |
| <filtering>true</filtering> |
| <directory>src/main/resources</directory> |
| <includes> |
| <include>**/*.prop</include> |
| </includes> |
| </resource> |
| |
| <resource> |
| <filtering>false</filtering> |
| <directory>src/main/java</directory> |
| <includes> |
| <include>**</include> |
| </includes> |
| <excludes> |
| <exclude>**/*.java</exclude> |
| </excludes> |
| </resource> |
| </resources> |
| <testResources> |
| <testResource> |
| <filtering>false</filtering> |
| <directory>src/test/resources</directory> |
| </testResource> |
| <testResource> |
| <filtering>false</filtering> |
| <directory>src/test/java</directory> |
| <includes> |
| <include>**</include> |
| </includes> |
| <excludes> |
| <exclude>**/*.java</exclude> |
| </excludes> |
| </testResource> |
| </testResources> |
| <plugins> |
| <plugin> |
| <artifactId>maven-pmd-plugin</artifactId> |
| <version>3.14.0</version> |
| <executions> |
| <execution> |
| <id>PMD</id> |
| <phase>compile</phase> |
| <goals> |
| <goal>check</goal> |
| </goals> |
| </execution> |
| </executions> |
| <configuration> |
| <targetJdk>${java.version}</targetJdk> |
| <verbose>true</verbose> |
| <failurePriority>5</failurePriority> |
| <printFailingErrors>true</printFailingErrors> |
| <rulesets> |
| <ruleset>${project.basedir}${file.separator}build${file.separator}pmd${file.separator}ruleset.xml</ruleset> |
| </rulesets> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>org.codehaus.mojo</groupId> |
| <artifactId>buildnumber-maven-plugin</artifactId> |
| <version>1.2</version> |
| <executions> |
| <execution> |
| <!--<phase>generate-resources</phase>--> |
| <phase>initialize</phase> |
| <goals> |
| <goal>create</goal> |
| </goals> |
| </execution> |
| </executions> |
| <configuration> |
| <shortRevisionLength>9</shortRevisionLength> |
| <doCheck>false</doCheck> |
| <doUpdate>false</doUpdate> |
| <timestampFormat> |
| {0,date,yyyy-MM-dd} |
| </timestampFormat> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.tomcat.maven</groupId> |
| <artifactId>tomcat7-maven-plugin</artifactId> |
| <version>2.2</version> |
| <configuration> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-compiler-plugin</artifactId> |
| <configuration> |
| <source>${java.version}</source> |
| <target>${java.version}</target> |
| <encoding>UTF-8</encoding> |
| <showWarnings>true</showWarnings> |
| <showDeprecation>true</showDeprecation> |
| <fork>true</fork> |
| <compilerArgument>-XDignore.symbol.file</compilerArgument> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-eclipse-plugin</artifactId> |
| <version>2.9</version> |
| <configuration> |
| <downloadSources>true</downloadSources> |
| </configuration> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-jar-plugin</artifactId> |
| <version>3.0.0</version> |
| <configuration> |
| <archive> |
| <manifest> |
| <addDefaultImplementationEntries> |
| true |
| </addDefaultImplementationEntries> |
| </manifest> |
| <manifestEntries> |
| <GroupId>${project.groupId}</GroupId> |
| <ArtifactId>${project.artifactId}</ArtifactId> |
| <Version>${project.version}</Version> |
| <SCM-Revision>${buildNumber}</SCM-Revision> |
| </manifestEntries> |
| </archive> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-surefire-plugin</artifactId> |
| <version>2.19.1</version> |
| <configuration> |
| <argLine>-Djava.library.path=${java.library.path}</argLine> |
| <excludedGroups>org.apache.traffic_control.traffic_router.core.util.IntegrationTest,org.apache.traffic_control.traffic_router.core.util.ExternalTest</excludedGroups> |
| </configuration> |
| </plugin> |
| <plugin> |
| <artifactId>maven-failsafe-plugin</artifactId> |
| <version>2.19</version> |
| <executions> |
| <execution> |
| <id>external</id> |
| <goals> |
| <goal>integration-test</goal> |
| </goals> |
| <configuration> |
| <argLine>-Djava.library.path=${java.library.path}</argLine> <!-- This needs to be parameterized --> |
| <groups>org.apache.traffic_control.traffic_router.core.util.ExternalTest</groups> |
| <includes> |
| <include>**/*Suite.java</include> |
| </includes> |
| </configuration> |
| </execution> |
| <execution> |
| <id>integration</id> |
| <goals> |
| <goal>integration-test</goal> |
| <goal>verify</goal> |
| </goals> |
| <configuration> |
| <argLine>-Djava.library.path=${java.library.path}</argLine> <!-- This needs to be parameterized --> |
| <groups>org.apache.traffic_control.traffic_router.core.util.IntegrationTest</groups> |
| <includes> |
| <include>**/*.java</include> |
| </includes> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <artifactId>maven-war-plugin</artifactId> |
| <version>2.1.1</version> |
| <configuration> |
| <attachClasses>true</attachClasses> |
| </configuration> |
| </plugin> |
| </plugins> |
| </build> |
| |
| <dependencies> |
| <dependency> |
| <groupId>org.apache.traffic_control.traffic_router</groupId> |
| <artifactId>traffic_router_geolocation</artifactId> |
| <version>${project.parent.version}</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.traffic_control.traffic_router</groupId> |
| <artifactId>traffic_router_config</artifactId> |
| <version>${project.parent.version}</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.traffic_control.traffic_router</groupId> |
| <artifactId>traffic_router_shared</artifactId> |
| <version>${project.parent.version}</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.commons</groupId> |
| <artifactId>commons-lang3</artifactId> |
| <version>${commons-lang3.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>commons-io</groupId> |
| <artifactId>commons-io</artifactId> |
| <version>2.11.0</version> |
| </dependency> |
| <dependency> |
| <groupId>commons-pool</groupId> |
| <artifactId>commons-pool</artifactId> |
| <version>1.5.6</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.logging.log4j</groupId> |
| <artifactId>log4j-core</artifactId> |
| <version>${log4j.version}</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>commons-codec</groupId> |
| <artifactId>commons-codec</artifactId> |
| <version>1.15</version> |
| </dependency> |
| <dependency> |
| <groupId>dnsjava</groupId> |
| <artifactId>dnsjava</artifactId> |
| <version>2.1.7</version> |
| </dependency> |
| <dependency> |
| <groupId>com.google.guava</groupId> |
| <artifactId>guava</artifactId> |
| <version>31.1-jre</version> |
| </dependency> |
| |
| |
| <dependency> |
| <groupId>org.springframework</groupId> |
| <artifactId>spring-webmvc</artifactId> |
| <version>${spring.version}</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.springframework</groupId> |
| <artifactId>spring-context</artifactId> |
| <version>${spring.version}</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>javax.servlet</groupId> |
| <artifactId>javax.servlet-api</artifactId> |
| <version>3.1.0</version> |
| <scope>provided</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>com.googlecode.java-ipv6</groupId> |
| <artifactId>java-ipv6</artifactId> |
| <version>0.9</version> |
| </dependency> |
| <dependency> |
| <groupId>org.asynchttpclient</groupId> |
| <artifactId>async-http-client</artifactId> |
| <version>2.12.3</version> |
| </dependency> |
| <dependency> |
| <groupId>com.fasterxml.jackson.core</groupId> |
| <artifactId>jackson-databind</artifactId> |
| <version>${jackson-core.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>com.fasterxml.jackson.core</groupId> |
| <artifactId>jackson-annotations</artifactId> |
| <version>${jackson-core.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>com.maxmind.geoip2</groupId> |
| <artifactId>geoip2</artifactId> |
| <version>${geoip2.version}</version> |
| <exclusions> |
| <exclusion> |
| <groupId>com.google.http-client</groupId> |
| <artifactId>google-http-client</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.httpcomponents</groupId> |
| <artifactId>httpclient</artifactId> |
| <version>4.5.13</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.tomcat</groupId> |
| <artifactId>tomcat-catalina</artifactId> |
| <version>9.0.43</version> |
| <scope>provided</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.tomcat</groupId> |
| <artifactId>tomcat-coyote</artifactId> |
| <version>9.0.43</version> |
| <scope>provided</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.tomcat</groupId> |
| <artifactId>tomcat-jni</artifactId> |
| <version>9.0.43</version> |
| <scope>provided</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.springframework</groupId> |
| <artifactId>spring-test</artifactId> |
| <version>${spring.version}</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.springframework</groupId> |
| <artifactId>spring-websocket</artifactId> |
| <version>${spring.version}</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.traffic_control.traffic_router</groupId> |
| <artifactId>traffic_router_connector</artifactId> |
| <version>${project.parent.version}</version> |
| <!--scope>test</scope--> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.hamcrest</groupId> |
| <artifactId>hamcrest-all</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.powermock</groupId> |
| <artifactId>powermock-api-mockito2</artifactId> |
| <version>2.0.9</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.mockito</groupId> |
| <artifactId>mockito-core</artifactId> |
| <version>3.11.1</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.powermock</groupId> |
| <artifactId>powermock-module-junit4</artifactId> |
| <version>2.0.9</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>junit</groupId> |
| <artifactId>junit</artifactId> |
| <scope>test</scope> |
| </dependency> |
| </dependencies> |
| |
| <profiles> |
| <profile> |
| <id>neustar</id> |
| <dependencies> |
| <dependency> |
| <groupId>org.apache.traffic_control.traffic_router</groupId> |
| <artifactId>traffic_router_neustar</artifactId> |
| <version>${project.parent.version}</version> |
| </dependency> |
| </dependencies> |
| </profile> |
| </profiles> |
| </project> |