blob: ebf8fbd29a0a00274e186874e71cce818dd18293 [file] [log] [blame]
Lee, Tian (tl5884)0d7feec2018-09-20 12:27:40 +01001<?xml version="1.0" encoding="UTF-8"?>
Sai Gandham25129102018-11-06 11:29:31 -06002<!--* ============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)0d7feec2018-09-20 12:27:40 +010020<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 Geda1931e662018-09-25 21:54:30 +010025 <groupId>org.onap.aaf.cadi.sidecar</groupId>
Lee, Tian (tl5884)0d7feec2018-09-20 12:27:40 +010026 <artifactId>sidecar</artifactId>
GANDHAM05e395c2019-10-15 09:16:11 -050027 <version>2.1.16-SNAPSHOT</version>
Lee, Tian (tl5884)0d7feec2018-09-20 12:27:40 +010028 </parent>
29
Simon Hrabos25c00562019-09-20 15:19:24 +020030 <properties>
31 <fproxy.build.dir>${project.build.directory}/${project.artifactId}-build/</fproxy.build.dir>
32 </properties>
33
Lee, Tian (tl5884)0d7feec2018-09-20 12:27:40 +010034 <artifactId>rproxy</artifactId>
Lee, Tian (tl5884)0d7feec2018-09-20 12:27:40 +010035 <packaging>jar</packaging>
36
Instrumentalc7014072018-11-07 11:21:03 -060037 <name>Sidecar rproxy</name>
Lee, Tian (tl5884)0d7feec2018-09-20 12:27:40 +010038 <description>ONAP AAF Reverse Proxy Microservice For Pluggable Security</description>
39
Lee, Tian (tl5884)0d7feec2018-09-20 12:27:40 +010040 <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)0d9b3892018-10-01 16:24:47 +010052 <exclusion>
53 <groupId>org.springframework.boot</groupId>
54 <artifactId>spring-boot-starter-json</artifactId>
55 </exclusion>
Lee, Tian (tl5884)0d7feec2018-09-20 12:27:40 +010056 </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)0d7feec2018-09-20 12:27:40 +010065 <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)0d7feec2018-09-20 12:27:40 +010071 <artifactId>spring-boot-starter-test</artifactId>
IanB50fd8fd2018-11-22 15:57:14 +000072 <scope>test</scope>
Instrumental5aa8aec2018-11-07 20:52:15 -060073 </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)0d7feec2018-09-20 12:27:40 +010083 </dependency>
84
85 <!-- Application Dependencies -->
86
87 <dependency>
88 <groupId>org.onap.aaf.cadi.sidecar</groupId>
89 <artifactId>fproxy</artifactId>
Lee, Tian (tl5884)0d7feec2018-09-20 12:27:40 +010090 </dependency>
91
92 <dependency>
93 <groupId>com.google.code.gson</groupId>
94 <artifactId>gson</artifactId>
Lee, Tian (tl5884)0d7feec2018-09-20 12:27:40 +010095 </dependency>
96
Lee, Tian (tl5884)0d7feec2018-09-20 12:27:40 +010097 <!-- CADI -->
98
99 <dependency>
100 <groupId>org.onap.aaf.authz</groupId>
101 <artifactId>aaf-cadi-aaf</artifactId>
Lee, Tian (tl5884)0d7feec2018-09-20 12:27:40 +0100102 </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 Hrabos25c00562019-09-20 15:19:24 +0200135 <argLine>-Xmx1024m -XX:MaxPermSize=256m</argLine>
Lee, Tian (tl5884)0d7feec2018-09-20 12:27:40 +0100136 </configuration>
137 </plugin>
138 <plugin>
Simon Hrabos25c00562019-09-20 15:19:24 +0200139 <artifactId>maven-assembly-plugin</artifactId>
140 <configuration>
141 <descriptors>
142 <descriptor>src/main/assembly/descriptor.xml</descriptor>
143 </descriptors>
144 </configuration>
Lee, Tian (tl5884)0d7feec2018-09-20 12:27:40 +0100145 <executions>
146 <execution>
Simon Hrabos25c00562019-09-20 15:19:24 +0200147 <id>make-assembly</id>
Lee, Tian (tl5884)0d7feec2018-09-20 12:27:40 +0100148 <phase>package</phase>
149 <goals>
Simon Hrabos25c00562019-09-20 15:19:24 +0200150 <goal>single</goal>
Lee, Tian (tl5884)0d7feec2018-09-20 12:27:40 +0100151 </goals>
Lee, Tian (tl5884)0d7feec2018-09-20 12:27:40 +0100152 </execution>
153 </executions>
154 </plugin>
GANDHAM1bba2762019-10-15 11:28:03 -0500155 <!--<plugin>
Simon Hrabos25c00562019-09-20 15:19:24 +0200156 <groupId>io.fabric8</groupId>
Lee, Tian (tl5884)0d7feec2018-09-20 12:27:40 +0100157 <artifactId>docker-maven-plugin</artifactId>
Simon Hrabos25c00562019-09-20 15:19:24 +0200158 <version>0.28.0</version>
Lee, Tian (tl5884)0d7feec2018-09-20 12:27:40 +0100159 <configuration>
160 <verbose>true</verbose>
Simon Hrabos25c00562019-09-20 15:19:24 +0200161 <apiVersion>${docker.apiVersion}</apiVersion>
162 <pullRegistry>${docker.pull.registry}</pullRegistry>
163 <pushRegistry>${docker.push.registry}</pushRegistry>
Lee, Tian (tl5884)0d7feec2018-09-20 12:27:40 +0100164 <serverId>docker-hub</serverId>
Lee, Tian (tl5884)0d7feec2018-09-20 12:27:40 +0100165 <dockerDirectory>${docker.location}</dockerDirectory>
166 <imageTags>
167 <imageTag>latest</imageTag>
168 </imageTags>
169 <forceTags>true</forceTags>
Simon Hrabos25c00562019-09-20 15:19:24 +0200170 <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)0d7feec2018-09-20 12:27:40 +0100192 </configuration>
Simon Hrabos25c00562019-09-20 15:19:24 +0200193 <executions>
194 <execution>
195 <id>generate-images</id>
196 <phase>install</phase>
Simon Hrabos25c00562019-09-20 15:19:24 +0200197 </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)0d7feec2018-09-20 12:27:40 +0100206 </plugin>
207 <plugin>
208 <groupId>org.apache.maven.plugins</groupId>
209 <artifactId>maven-deploy-plugin</artifactId>
210 <configuration>
211 <skip>true</skip>
212 </configuration>
GANDHAM1bba2762019-10-15 11:28:03 -0500213 </plugin> -->
Lee, Tian (tl5884)0d7feec2018-09-20 12:27:40 +0100214 </plugins>
215 </build>
216</project>