Lee, Tian (tl5884) | 0d7feec | 2018-09-20 12:27:40 +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 | * --> |
Lee, Tian (tl5884) | 0d7feec | 2018-09-20 12:27:40 +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 | |
| 24 | <parent> |
Ravi Geda | 1931e66 | 2018-09-25 21:54:30 +0100 | [diff] [blame] | 25 | <groupId>org.onap.aaf.cadi.sidecar</groupId> |
Lee, Tian (tl5884) | 0d7feec | 2018-09-20 12:27:40 +0100 | [diff] [blame] | 26 | <artifactId>sidecar</artifactId> |
GANDHAM | 05e395c | 2019-10-15 09:16:11 -0500 | [diff] [blame] | 27 | <version>2.1.16-SNAPSHOT</version> |
Lee, Tian (tl5884) | 0d7feec | 2018-09-20 12:27:40 +0100 | [diff] [blame] | 28 | </parent> |
| 29 | |
Simon Hrabos | 25c0056 | 2019-09-20 15:19:24 +0200 | [diff] [blame] | 30 | <properties> |
| 31 | <fproxy.build.dir>${project.build.directory}/${project.artifactId}-build/</fproxy.build.dir> |
| 32 | </properties> |
| 33 | |
Lee, Tian (tl5884) | 0d7feec | 2018-09-20 12:27:40 +0100 | [diff] [blame] | 34 | <artifactId>rproxy</artifactId> |
Lee, Tian (tl5884) | 0d7feec | 2018-09-20 12:27:40 +0100 | [diff] [blame] | 35 | <packaging>jar</packaging> |
| 36 | |
Instrumental | c701407 | 2018-11-07 11:21:03 -0600 | [diff] [blame] | 37 | <name>Sidecar rproxy</name> |
Lee, Tian (tl5884) | 0d7feec | 2018-09-20 12:27:40 +0100 | [diff] [blame] | 38 | <description>ONAP AAF Reverse Proxy Microservice For Pluggable Security</description> |
| 39 | |
Lee, Tian (tl5884) | 0d7feec | 2018-09-20 12:27:40 +0100 | [diff] [blame] | 40 | <dependencies> |
| 41 | |
| 42 | <!-- Spring Boot Dependencies --> |
| 43 | |
| 44 | <dependency> |
| 45 | <groupId>org.springframework.boot</groupId> |
| 46 | <artifactId>spring-boot-starter-web</artifactId> |
| 47 | <exclusions> |
| 48 | <exclusion> |
| 49 | <groupId>org.springframework.boot</groupId> |
| 50 | <artifactId>spring-boot-starter-tomcat</artifactId> |
| 51 | </exclusion> |
Lee, Tian (tl5884) | 0d9b389 | 2018-10-01 16:24:47 +0100 | [diff] [blame] | 52 | <exclusion> |
| 53 | <groupId>org.springframework.boot</groupId> |
| 54 | <artifactId>spring-boot-starter-json</artifactId> |
| 55 | </exclusion> |
Lee, Tian (tl5884) | 0d7feec | 2018-09-20 12:27:40 +0100 | [diff] [blame] | 56 | </exclusions> |
| 57 | </dependency> |
| 58 | |
| 59 | <dependency> |
| 60 | <groupId>org.springframework.boot</groupId> |
| 61 | <artifactId>spring-boot-starter-jetty</artifactId> |
| 62 | </dependency> |
| 63 | |
| 64 | <dependency> |
Lee, Tian (tl5884) | 0d7feec | 2018-09-20 12:27:40 +0100 | [diff] [blame] | 65 | <groupId>org.springframework.boot</groupId> |
| 66 | <artifactId>spring-boot-starter-aop</artifactId> |
| 67 | </dependency> |
| 68 | |
| 69 | <dependency> |
| 70 | <groupId>org.springframework.boot</groupId> |
Lee, Tian (tl5884) | 0d7feec | 2018-09-20 12:27:40 +0100 | [diff] [blame] | 71 | <artifactId>spring-boot-starter-test</artifactId> |
IanB | 50fd8fd | 2018-11-22 15:57:14 +0000 | [diff] [blame] | 72 | <scope>test</scope> |
Instrumental | 5aa8aec | 2018-11-07 20:52:15 -0600 | [diff] [blame] | 73 | </dependency> |
| 74 | |
| 75 | <dependency> |
| 76 | <groupId>org.apache.httpcomponents</groupId> |
| 77 | <artifactId>httpclient</artifactId> |
| 78 | </dependency> |
| 79 | |
| 80 | <dependency> |
| 81 | <groupId>org.aspectj</groupId> |
| 82 | <artifactId>aspectjrt</artifactId> |
Lee, Tian (tl5884) | 0d7feec | 2018-09-20 12:27:40 +0100 | [diff] [blame] | 83 | </dependency> |
| 84 | |
| 85 | <!-- Application Dependencies --> |
| 86 | |
| 87 | <dependency> |
| 88 | <groupId>org.onap.aaf.cadi.sidecar</groupId> |
| 89 | <artifactId>fproxy</artifactId> |
Lee, Tian (tl5884) | 0d7feec | 2018-09-20 12:27:40 +0100 | [diff] [blame] | 90 | </dependency> |
| 91 | |
| 92 | <dependency> |
| 93 | <groupId>com.google.code.gson</groupId> |
| 94 | <artifactId>gson</artifactId> |
Lee, Tian (tl5884) | 0d7feec | 2018-09-20 12:27:40 +0100 | [diff] [blame] | 95 | </dependency> |
| 96 | |
Lee, Tian (tl5884) | 0d7feec | 2018-09-20 12:27:40 +0100 | [diff] [blame] | 97 | <!-- CADI --> |
| 98 | |
| 99 | <dependency> |
| 100 | <groupId>org.onap.aaf.authz</groupId> |
| 101 | <artifactId>aaf-cadi-aaf</artifactId> |
Lee, Tian (tl5884) | 0d7feec | 2018-09-20 12:27:40 +0100 | [diff] [blame] | 102 | </dependency> |
| 103 | |
| 104 | </dependencies> |
| 105 | |
| 106 | <build> |
| 107 | <finalName>rproxy</finalName> |
| 108 | <plugins> |
| 109 | <plugin> |
| 110 | <groupId>org.springframework.boot</groupId> |
| 111 | <artifactId>spring-boot-maven-plugin</artifactId> |
| 112 | <version>${spring.boot.version}</version> |
| 113 | <executions> |
| 114 | <execution> |
| 115 | <goals> |
| 116 | <goal>repackage</goal> |
| 117 | </goals> |
| 118 | <configuration> |
| 119 | <classifier>exec</classifier> |
| 120 | </configuration> |
| 121 | </execution> |
| 122 | </executions> |
| 123 | </plugin> |
| 124 | |
| 125 | <plugin> |
| 126 | <groupId>com.mycila</groupId> |
| 127 | <artifactId>license-maven-plugin</artifactId> |
| 128 | </plugin> |
| 129 | <plugin> |
| 130 | <groupId>org.apache.maven.plugins</groupId> |
| 131 | <artifactId>maven-surefire-plugin</artifactId> |
| 132 | <configuration> |
| 133 | <reuseForks>false</reuseForks> |
| 134 | <forkCount>1</forkCount> |
Simon Hrabos | 25c0056 | 2019-09-20 15:19:24 +0200 | [diff] [blame] | 135 | <argLine>-Xmx1024m -XX:MaxPermSize=256m</argLine> |
Lee, Tian (tl5884) | 0d7feec | 2018-09-20 12:27:40 +0100 | [diff] [blame] | 136 | </configuration> |
| 137 | </plugin> |
| 138 | <plugin> |
Simon Hrabos | 25c0056 | 2019-09-20 15:19:24 +0200 | [diff] [blame] | 139 | <artifactId>maven-assembly-plugin</artifactId> |
| 140 | <configuration> |
| 141 | <descriptors> |
| 142 | <descriptor>src/main/assembly/descriptor.xml</descriptor> |
| 143 | </descriptors> |
| 144 | </configuration> |
Lee, Tian (tl5884) | 0d7feec | 2018-09-20 12:27:40 +0100 | [diff] [blame] | 145 | <executions> |
| 146 | <execution> |
Simon Hrabos | 25c0056 | 2019-09-20 15:19:24 +0200 | [diff] [blame] | 147 | <id>make-assembly</id> |
Lee, Tian (tl5884) | 0d7feec | 2018-09-20 12:27:40 +0100 | [diff] [blame] | 148 | <phase>package</phase> |
| 149 | <goals> |
Simon Hrabos | 25c0056 | 2019-09-20 15:19:24 +0200 | [diff] [blame] | 150 | <goal>single</goal> |
Lee, Tian (tl5884) | 0d7feec | 2018-09-20 12:27:40 +0100 | [diff] [blame] | 151 | </goals> |
Lee, Tian (tl5884) | 0d7feec | 2018-09-20 12:27:40 +0100 | [diff] [blame] | 152 | </execution> |
| 153 | </executions> |
| 154 | </plugin> |
GANDHAM | 1bba276 | 2019-10-15 11:28:03 -0500 | [diff] [blame^] | 155 | <!--<plugin> |
Simon Hrabos | 25c0056 | 2019-09-20 15:19:24 +0200 | [diff] [blame] | 156 | <groupId>io.fabric8</groupId> |
Lee, Tian (tl5884) | 0d7feec | 2018-09-20 12:27:40 +0100 | [diff] [blame] | 157 | <artifactId>docker-maven-plugin</artifactId> |
Simon Hrabos | 25c0056 | 2019-09-20 15:19:24 +0200 | [diff] [blame] | 158 | <version>0.28.0</version> |
Lee, Tian (tl5884) | 0d7feec | 2018-09-20 12:27:40 +0100 | [diff] [blame] | 159 | <configuration> |
| 160 | <verbose>true</verbose> |
Simon Hrabos | 25c0056 | 2019-09-20 15:19:24 +0200 | [diff] [blame] | 161 | <apiVersion>${docker.apiVersion}</apiVersion> |
| 162 | <pullRegistry>${docker.pull.registry}</pullRegistry> |
| 163 | <pushRegistry>${docker.push.registry}</pushRegistry> |
Lee, Tian (tl5884) | 0d7feec | 2018-09-20 12:27:40 +0100 | [diff] [blame] | 164 | <serverId>docker-hub</serverId> |
Lee, Tian (tl5884) | 0d7feec | 2018-09-20 12:27:40 +0100 | [diff] [blame] | 165 | <dockerDirectory>${docker.location}</dockerDirectory> |
| 166 | <imageTags> |
| 167 | <imageTag>latest</imageTag> |
| 168 | </imageTags> |
| 169 | <forceTags>true</forceTags> |
Simon Hrabos | 25c0056 | 2019-09-20 15:19:24 +0200 | [diff] [blame] | 170 | <images> |
| 171 | <image> |
| 172 | <name>${docker.push.registry}/onap/${project.artifactId}</name> |
| 173 | <build> |
| 174 | <cleanup>try</cleanup> |
| 175 | <dockerFileDir>${project.basedir}/src/main/docker</dockerFileDir> |
| 176 | <tags> |
| 177 | <tag>latest</tag> |
| 178 | </tags> |
| 179 | <assembly> |
| 180 | <inline> |
| 181 | <fileSets> |
| 182 | <fileSet> |
| 183 | <directory>${fproxy.build.dir}</directory> |
| 184 | <outputDirectory>/${project.artifactId}</outputDirectory> |
| 185 | </fileSet> |
| 186 | </fileSets> |
| 187 | </inline> |
| 188 | </assembly> |
| 189 | </build> |
| 190 | </image> |
| 191 | </images> |
Lee, Tian (tl5884) | 0d7feec | 2018-09-20 12:27:40 +0100 | [diff] [blame] | 192 | </configuration> |
Simon Hrabos | 25c0056 | 2019-09-20 15:19:24 +0200 | [diff] [blame] | 193 | <executions> |
| 194 | <execution> |
| 195 | <id>generate-images</id> |
| 196 | <phase>install</phase> |
Simon Hrabos | 25c0056 | 2019-09-20 15:19:24 +0200 | [diff] [blame] | 197 | </execution> |
| 198 | <execution> |
| 199 | <id>push-images</id> |
| 200 | <phase>deploy</phase> |
| 201 | <goals> |
| 202 | <goal>push</goal> |
| 203 | </goals> |
| 204 | </execution> |
| 205 | </executions> |
Lee, Tian (tl5884) | 0d7feec | 2018-09-20 12:27:40 +0100 | [diff] [blame] | 206 | </plugin> |
| 207 | <plugin> |
| 208 | <groupId>org.apache.maven.plugins</groupId> |
| 209 | <artifactId>maven-deploy-plugin</artifactId> |
| 210 | <configuration> |
| 211 | <skip>true</skip> |
| 212 | </configuration> |
GANDHAM | 1bba276 | 2019-10-15 11:28:03 -0500 | [diff] [blame^] | 213 | </plugin> --> |
Lee, Tian (tl5884) | 0d7feec | 2018-09-20 12:27:40 +0100 | [diff] [blame] | 214 | </plugins> |
| 215 | </build> |
| 216 | </project> |