blob: 81014e6a89888a87e2370bbca044e5cf0ade4bdf [file] [log] [blame]
Ravi Geda6c3031e2018-09-17 12:57:44 +01001<?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
Ravi Geda6c3031e2018-09-17 12:57:44 +010027 <parent>
Ravi Geda1931e662018-09-25 21:54:30 +010028 <groupId>org.onap.aaf.cadi.sidecar</groupId>
Ravi Geda6c3031e2018-09-17 12:57:44 +010029 <artifactId>sidecar</artifactId>
30 <version>1.0.0-SNAPSHOT</version>
31 </parent>
32
Ravi Geda1931e662018-09-25 21:54:30 +010033 <artifactId>fproxy</artifactId>
34 <version>1.0.0-SNAPSHOT</version>
35 <packaging>jar</packaging>
36
Ravi Geda6c3031e2018-09-17 12:57:44 +010037 <name>aaf-fproxy</name>
38 <description>ONAP AAF Forward Proxy Microservice For Pluggable Security</description>
39
40 <properties>
41 <!-- Spring boot version -->
42 <spring.boot.version>2.0.3.RELEASE</spring.boot.version>
43 <docker.location>${basedir}/target</docker.location>
44 <skipNexusStagingDeployMojo>true</skipNexusStagingDeployMojo>
45 </properties>
46
47 <dependencyManagement>
48 <dependencies>
49 <dependency>
50 <!-- Import dependency management from Spring Boot -->
51 <groupId>org.springframework.boot</groupId>
52 <artifactId>spring-boot-dependencies</artifactId>
53 <version>${spring.boot.version}</version>
54 <type>pom</type>
55 <scope>import</scope>
56 </dependency>
57 </dependencies>
58 </dependencyManagement>
59
60 <dependencies>
61 <dependency>
62 <groupId>org.springframework.boot</groupId>
63 <artifactId>spring-boot-starter-jetty</artifactId>
64 </dependency>
65
66 <dependency>
67 <groupId>org.springframework.boot</groupId>
68 <artifactId>spring-boot-starter-web</artifactId>
69 <exclusions>
70 <exclusion>
71 <artifactId>spring-boot-starter-tomcat</artifactId>
72 <groupId>org.springframework.boot</groupId>
73 </exclusion>
74 </exclusions>
75 </dependency>
76
77 <dependency>
78 <groupId>org.springframework.boot</groupId>
79 <artifactId>spring-boot-starter-actuator</artifactId>
80 </dependency>
81
82 <dependency>
83 <groupId>org.apache.commons</groupId>
84 <artifactId>commons-lang3</artifactId>
85 </dependency>
86
87 <dependency>
88 <groupId>org.apache.httpcomponents</groupId>
89 <artifactId>httpclient</artifactId>
90 </dependency>
91
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 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>