Pom OParent, other hierarchy
[aaf/cadi.git] / sidecar / fproxy / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
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     * -->
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>
25                 <groupId>org.onap.aaf.cadi.sidecar</groupId>
26                 <artifactId>sidecar</artifactId>
27                 <version>2.1.7-SNAPSHOT</version>
28         </parent>
29
30         <artifactId>fproxy</artifactId>
31         <packaging>jar</packaging>
32
33         <name>Sidecar fproxy</name>
34         <description>ONAP AAF Forward Proxy Microservice For Pluggable Security</description>
35
36         <properties>
37                 <!-- Spring boot version -->
38                 <spring.boot.version>2.0.3.RELEASE</spring.boot.version>
39                 <docker.location>${basedir}/target</docker.location>
40         </properties>
41
42         <dependencyManagement>
43                 <dependencies>
44                         <dependency>
45                                 <!-- Import dependency management from Spring Boot -->
46                                 <groupId>org.springframework.boot</groupId>
47                                 <artifactId>spring-boot-dependencies</artifactId>
48                                 <version>${spring.boot.version}</version>
49                                 <type>pom</type>
50                                 <scope>import</scope>
51                         </dependency>
52                 </dependencies>
53         </dependencyManagement>
54
55         <dependencies>
56                 <dependency>
57                         <groupId>org.springframework.boot</groupId>
58                         <artifactId>spring-boot-starter-jetty</artifactId>
59                 </dependency>
60
61                 <dependency>
62                         <groupId>org.springframework.boot</groupId>
63                         <artifactId>spring-boot-starter-web</artifactId>
64                         <exclusions>
65                                 <exclusion>
66                                         <artifactId>spring-boot-starter-tomcat</artifactId>
67                                         <groupId>org.springframework.boot</groupId>
68                                 </exclusion>
69                                 <exclusion>
70                                         <groupId>org.springframework.boot</groupId>
71                                         <artifactId>spring-boot-starter-json</artifactId>
72                                 </exclusion>
73                         </exclusions>
74                 </dependency>
75
76                 <dependency>
77                         <groupId>org.apache.commons</groupId>
78                         <artifactId>commons-lang3</artifactId>
79                 </dependency>
80
81                 <dependency>
82                         <groupId>org.apache.httpcomponents</groupId>
83                         <artifactId>httpclient</artifactId>
84                 </dependency>
85
86                 <dependency>
87                         <groupId>com.google.code.gson</groupId>
88                         <artifactId>gson</artifactId>
89                 </dependency>
90
91                 <!-- Testing -->
92                 <dependency>
93                         <groupId>org.springframework.boot</groupId>
94                         <artifactId>spring-boot-starter-test</artifactId>
95                         <scope>test</scope>
96                 </dependency>
97
98         </dependencies>
99
100         <build>
101                 <finalName>fproxy</finalName>
102                 <plugins>
103                         <plugin>
104                                 <groupId>org.springframework.boot</groupId>
105                                 <artifactId>spring-boot-maven-plugin</artifactId>
106                                 <version>${spring.boot.version}</version>
107                                 <executions>
108                                         <execution>
109                                                 <goals>
110                                                         <goal>repackage</goal>
111                                                 </goals>
112                                                 <configuration>
113                                                         <classifier>exec</classifier>
114                                                 </configuration>
115                                         </execution>
116                                 </executions>
117                         </plugin>
118                         <plugin>
119                                 <groupId>com.mycila</groupId>
120                                 <artifactId>license-maven-plugin</artifactId>
121                         </plugin>
122                         <plugin>
123                                 <groupId>org.apache.maven.plugins</groupId>
124                                 <artifactId>maven-surefire-plugin</artifactId>
125                                 <configuration>
126                                         <reuseForks>false</reuseForks>
127                                         <forkCount>1</forkCount>
128                                 </configuration>
129                         </plugin>
130                         <plugin>
131                                 <groupId>org.apache.maven.plugins</groupId>
132                                 <artifactId>maven-resources-plugin</artifactId>
133                                 <version>3.0.2</version>
134                                 <executions>
135                                         <execution>
136                                                 <id>copy-docker-file</id>
137                                                 <phase>package</phase>
138                                                 <goals>
139                                                         <goal>copy-resources</goal>
140                                                 </goals>
141                                                 <configuration>
142                                                         <outputDirectory>target</outputDirectory>
143                                                         <overwrite>true</overwrite>
144                                                         <resources>
145                                                                 <resource>
146                                                                         <directory>${basedir}/src/main/docker</directory>
147                                                                         <filtering>true</filtering>
148                                                                 </resource>
149                                                                 <resource>
150                                                                         <directory>${basedir}/src/main/bin/</directory>
151                                                                         <filtering>true</filtering>
152                                                                 </resource>
153                                                         </resources>
154                                                 </configuration>
155                                         </execution>
156                                 </executions>
157                         </plugin>
158                         <plugin>
159                                 <groupId>com.spotify</groupId>
160                                 <artifactId>docker-maven-plugin</artifactId>
161                                 <version>0.4.11</version>
162                                 <configuration>
163                                         <verbose>true</verbose>
164                                         <serverId>docker-hub</serverId>
165                                         <imageName>${docker.push.registry}/onap/${project.artifactId}</imageName>
166                                         <dockerDirectory>${docker.location}</dockerDirectory>
167                                         <imageTags>
168                                                 <imageTag>latest</imageTag>
169                                         </imageTags>
170                                         <forceTags>true</forceTags>
171                                 </configuration>
172                         </plugin>
173                         <plugin>
174                                 <groupId>org.apache.maven.plugins</groupId>
175                                 <artifactId>maven-deploy-plugin</artifactId>
176                         </plugin>
177                 </plugins>
178         </build>
179 </project>