blob: c8b55ab8ec01c43c13178e233ec81da6dd79561d [file] [log] [blame]
Ravi Geda6c3031e2018-09-17 12:57:44 +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 * -->
Ravi Geda6c3031e2018-09-17 12:57:44 +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
Ravi Geda6c3031e2018-09-17 12:57:44 +010024 <parent>
Ravi Geda1931e662018-09-25 21:54:30 +010025 <groupId>org.onap.aaf.cadi.sidecar</groupId>
Ravi Geda6c3031e2018-09-17 12:57:44 +010026 <artifactId>sidecar</artifactId>
Sai Gandhama14cb892018-10-07 19:05:09 -050027 <version>2.1.2-SNAPSHOT</version>
Ravi Geda6c3031e2018-09-17 12:57:44 +010028 </parent>
29
Ravi Geda1931e662018-09-25 21:54:30 +010030 <artifactId>fproxy</artifactId>
Sai Gandhama14cb892018-10-07 19:05:09 -050031 <version>2.1.2-SNAPSHOT</version>
Ravi Geda1931e662018-09-25 21:54:30 +010032 <packaging>jar</packaging>
33
Ravi Geda6c3031e2018-09-17 12:57:44 +010034 <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 Geda6c3031e2018-09-17 12:57:44 +010041 </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)0d9b3892018-10-01 16:24:47 +010070 <exclusion>
71 <groupId>org.springframework.boot</groupId>
72 <artifactId>spring-boot-starter-json</artifactId>
73 </exclusion>
Ravi Geda6c3031e2018-09-17 12:57:44 +010074 </exclusions>
75 </dependency>
76
77 <dependency>
Ravi Geda6c3031e2018-09-17 12:57:44 +010078 <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)0d9b3892018-10-01 16:24:47 +010087 <dependency>
88 <groupId>com.google.code.gson</groupId>
89 <artifactId>gson</artifactId>
90 </dependency>
91
Ravi Geda6c3031e2018-09-17 12:57:44 +010092 <!-- 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 Geda6c3031e2018-09-17 12:57:44 +0100163 <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 Geda6c3031e2018-09-17 12:57:44 +0100177 </plugin>
178 </plugins>
179 </build>
180</project>