Ravi Geda | 6c3031e | 2018-09-17 12:57:44 +0100 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
Sai Gandham | 2512910 | 2018-11-06 11:29:31 -0600 | [diff] [blame^] | 2 | <!--* ============LICENSE_START==================================================== |
| 3 | * =========================================================================== |
| 4 | * org.onap.aaf |
| 5 | * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. |
| 6 | * =========================================================================== |
| 7 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 8 | * you may not use this file except in compliance with the License. |
| 9 | * You may obtain a copy of the License at |
| 10 | * |
| 11 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 12 | * |
| 13 | * Unless required by applicable law or agreed to in writing, software |
| 14 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 16 | * See the License for the specific language governing permissions and |
| 17 | * limitations under the License. |
| 18 | * ============LICENSE_END==================================================== |
| 19 | * --> |
Ravi Geda | 6c3031e | 2018-09-17 12:57:44 +0100 | [diff] [blame] | 20 | <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 21 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 22 | <modelVersion>4.0.0</modelVersion> |
| 23 | |
Ravi Geda | 6c3031e | 2018-09-17 12:57:44 +0100 | [diff] [blame] | 24 | <parent> |
Ravi Geda | 1931e66 | 2018-09-25 21:54:30 +0100 | [diff] [blame] | 25 | <groupId>org.onap.aaf.cadi.sidecar</groupId> |
Ravi Geda | 6c3031e | 2018-09-17 12:57:44 +0100 | [diff] [blame] | 26 | <artifactId>sidecar</artifactId> |
Sai Gandham | a14cb89 | 2018-10-07 19:05:09 -0500 | [diff] [blame] | 27 | <version>2.1.2-SNAPSHOT</version> |
Ravi Geda | 6c3031e | 2018-09-17 12:57:44 +0100 | [diff] [blame] | 28 | </parent> |
| 29 | |
Ravi Geda | 1931e66 | 2018-09-25 21:54:30 +0100 | [diff] [blame] | 30 | <artifactId>fproxy</artifactId> |
Sai Gandham | a14cb89 | 2018-10-07 19:05:09 -0500 | [diff] [blame] | 31 | <version>2.1.2-SNAPSHOT</version> |
Ravi Geda | 1931e66 | 2018-09-25 21:54:30 +0100 | [diff] [blame] | 32 | <packaging>jar</packaging> |
| 33 | |
Ravi Geda | 6c3031e | 2018-09-17 12:57:44 +0100 | [diff] [blame] | 34 | <name>aaf-fproxy</name> |
| 35 | <description>ONAP AAF Forward Proxy Microservice For Pluggable Security</description> |
| 36 | |
| 37 | <properties> |
| 38 | <!-- Spring boot version --> |
| 39 | <spring.boot.version>2.0.3.RELEASE</spring.boot.version> |
| 40 | <docker.location>${basedir}/target</docker.location> |
Ravi Geda | 6c3031e | 2018-09-17 12:57:44 +0100 | [diff] [blame] | 41 | </properties> |
| 42 | |
| 43 | <dependencyManagement> |
| 44 | <dependencies> |
| 45 | <dependency> |
| 46 | <!-- Import dependency management from Spring Boot --> |
| 47 | <groupId>org.springframework.boot</groupId> |
| 48 | <artifactId>spring-boot-dependencies</artifactId> |
| 49 | <version>${spring.boot.version}</version> |
| 50 | <type>pom</type> |
| 51 | <scope>import</scope> |
| 52 | </dependency> |
| 53 | </dependencies> |
| 54 | </dependencyManagement> |
| 55 | |
| 56 | <dependencies> |
| 57 | <dependency> |
| 58 | <groupId>org.springframework.boot</groupId> |
| 59 | <artifactId>spring-boot-starter-jetty</artifactId> |
| 60 | </dependency> |
| 61 | |
| 62 | <dependency> |
| 63 | <groupId>org.springframework.boot</groupId> |
| 64 | <artifactId>spring-boot-starter-web</artifactId> |
| 65 | <exclusions> |
| 66 | <exclusion> |
| 67 | <artifactId>spring-boot-starter-tomcat</artifactId> |
| 68 | <groupId>org.springframework.boot</groupId> |
| 69 | </exclusion> |
Lee, Tian (tl5884) | 0d9b389 | 2018-10-01 16:24:47 +0100 | [diff] [blame] | 70 | <exclusion> |
| 71 | <groupId>org.springframework.boot</groupId> |
| 72 | <artifactId>spring-boot-starter-json</artifactId> |
| 73 | </exclusion> |
Ravi Geda | 6c3031e | 2018-09-17 12:57:44 +0100 | [diff] [blame] | 74 | </exclusions> |
| 75 | </dependency> |
| 76 | |
| 77 | <dependency> |
Ravi Geda | 6c3031e | 2018-09-17 12:57:44 +0100 | [diff] [blame] | 78 | <groupId>org.apache.commons</groupId> |
| 79 | <artifactId>commons-lang3</artifactId> |
| 80 | </dependency> |
| 81 | |
| 82 | <dependency> |
| 83 | <groupId>org.apache.httpcomponents</groupId> |
| 84 | <artifactId>httpclient</artifactId> |
| 85 | </dependency> |
| 86 | |
Lee, Tian (tl5884) | 0d9b389 | 2018-10-01 16:24:47 +0100 | [diff] [blame] | 87 | <dependency> |
| 88 | <groupId>com.google.code.gson</groupId> |
| 89 | <artifactId>gson</artifactId> |
| 90 | </dependency> |
| 91 | |
Ravi Geda | 6c3031e | 2018-09-17 12:57:44 +0100 | [diff] [blame] | 92 | <!-- Testing --> |
| 93 | <dependency> |
| 94 | <groupId>org.springframework.boot</groupId> |
| 95 | <artifactId>spring-boot-starter-test</artifactId> |
| 96 | <scope>test</scope> |
| 97 | </dependency> |
| 98 | |
| 99 | </dependencies> |
| 100 | |
| 101 | <build> |
| 102 | <finalName>fproxy</finalName> |
| 103 | <plugins> |
| 104 | <plugin> |
| 105 | <groupId>org.springframework.boot</groupId> |
| 106 | <artifactId>spring-boot-maven-plugin</artifactId> |
| 107 | <version>${spring.boot.version}</version> |
| 108 | <executions> |
| 109 | <execution> |
| 110 | <goals> |
| 111 | <goal>repackage</goal> |
| 112 | </goals> |
| 113 | <configuration> |
| 114 | <classifier>exec</classifier> |
| 115 | </configuration> |
| 116 | </execution> |
| 117 | </executions> |
| 118 | </plugin> |
| 119 | <plugin> |
| 120 | <groupId>com.mycila</groupId> |
| 121 | <artifactId>license-maven-plugin</artifactId> |
| 122 | </plugin> |
| 123 | <plugin> |
| 124 | <groupId>org.apache.maven.plugins</groupId> |
| 125 | <artifactId>maven-surefire-plugin</artifactId> |
| 126 | <configuration> |
| 127 | <reuseForks>false</reuseForks> |
| 128 | <forkCount>1</forkCount> |
| 129 | </configuration> |
| 130 | </plugin> |
| 131 | <plugin> |
| 132 | <groupId>org.apache.maven.plugins</groupId> |
| 133 | <artifactId>maven-resources-plugin</artifactId> |
| 134 | <version>3.0.2</version> |
| 135 | <executions> |
| 136 | <execution> |
| 137 | <id>copy-docker-file</id> |
| 138 | <phase>package</phase> |
| 139 | <goals> |
| 140 | <goal>copy-resources</goal> |
| 141 | </goals> |
| 142 | <configuration> |
| 143 | <outputDirectory>target</outputDirectory> |
| 144 | <overwrite>true</overwrite> |
| 145 | <resources> |
| 146 | <resource> |
| 147 | <directory>${basedir}/src/main/docker</directory> |
| 148 | <filtering>true</filtering> |
| 149 | </resource> |
| 150 | <resource> |
| 151 | <directory>${basedir}/src/main/bin/</directory> |
| 152 | <filtering>true</filtering> |
| 153 | </resource> |
| 154 | </resources> |
| 155 | </configuration> |
| 156 | </execution> |
| 157 | </executions> |
| 158 | </plugin> |
| 159 | <plugin> |
| 160 | <groupId>com.spotify</groupId> |
| 161 | <artifactId>docker-maven-plugin</artifactId> |
| 162 | <version>0.4.11</version> |
Ravi Geda | 6c3031e | 2018-09-17 12:57:44 +0100 | [diff] [blame] | 163 | <configuration> |
| 164 | <verbose>true</verbose> |
| 165 | <serverId>docker-hub</serverId> |
| 166 | <imageName>${docker.push.registry}/onap/${project.artifactId}</imageName> |
| 167 | <dockerDirectory>${docker.location}</dockerDirectory> |
| 168 | <imageTags> |
| 169 | <imageTag>latest</imageTag> |
| 170 | </imageTags> |
| 171 | <forceTags>true</forceTags> |
| 172 | </configuration> |
| 173 | </plugin> |
| 174 | <plugin> |
| 175 | <groupId>org.apache.maven.plugins</groupId> |
| 176 | <artifactId>maven-deploy-plugin</artifactId> |
Ravi Geda | 6c3031e | 2018-09-17 12:57:44 +0100 | [diff] [blame] | 177 | </plugin> |
| 178 | </plugins> |
| 179 | </build> |
| 180 | </project> |