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