Fix/Renable sidecar builds
[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         <dependencies>
37                 <dependency>
38                         <!-- Import dependency management from Spring Boot -->
39                         <groupId>org.springframework.boot</groupId>
40                         <artifactId>spring-boot-dependencies</artifactId>
41                         <version>${spring.boot.version}</version>
42                         <type>pom</type>
43                         <scope>import</scope>
44                 </dependency>
45                 
46                 <dependency>
47                     <groupId>org.apache.httpcomponents</groupId>
48                     <artifactId>httpclient</artifactId>
49                 </dependency>
50                 
51                 <dependency>
52                         <groupId>org.springframework.boot</groupId>
53                         <artifactId>spring-boot-starter-jetty</artifactId>
54                 </dependency>
55
56                 <dependency>
57                         <groupId>org.springframework.boot</groupId>
58                         <artifactId>spring-boot-starter-aop</artifactId>
59                 </dependency>
60
61                 <dependency>
62                         <groupId>org.springframework.boot</groupId>
63                         <artifactId>spring-boot-starter-web</artifactId>
64                 </dependency>
65
66                 <dependency>
67                         <groupId>org.springframework.boot</groupId>
68                         <artifactId>spring-boot-starter-test</artifactId>
69                 </dependency>
70         </dependencies>
71
72         <build>
73                 <finalName>fproxy</finalName>
74                 <plugins>
75                         <plugin>
76                                 <groupId>org.springframework.boot</groupId>
77                                 <artifactId>spring-boot-maven-plugin</artifactId>
78                                 <version>${spring.boot.version}</version>
79                                 <executions>
80                                         <execution>
81                                                 <goals>
82                                                         <goal>repackage</goal>
83                                                 </goals>
84                                                 <configuration>
85                                                         <classifier>exec</classifier>
86                                                 </configuration>
87                                         </execution>
88                                 </executions>
89                         </plugin>
90                         <plugin>
91                                 <groupId>com.mycila</groupId>
92                                 <artifactId>license-maven-plugin</artifactId>
93                         </plugin>
94                         <plugin>
95                                 <groupId>org.apache.maven.plugins</groupId>
96                                 <artifactId>maven-surefire-plugin</artifactId>
97                                 <configuration>
98                                         <reuseForks>false</reuseForks>
99                                         <forkCount>1</forkCount>
100                                 </configuration>
101                         </plugin>
102                         <plugin>
103                                 <groupId>org.apache.maven.plugins</groupId>
104                                 <artifactId>maven-resources-plugin</artifactId>
105                                 <version>3.0.2</version>
106                                 <executions>
107                                         <execution>
108                                                 <id>copy-docker-file</id>
109                                                 <phase>package</phase>
110                                                 <goals>
111                                                         <goal>copy-resources</goal>
112                                                 </goals>
113                                                 <configuration>
114                                                         <outputDirectory>target</outputDirectory>
115                                                         <overwrite>true</overwrite>
116                                                         <resources>
117                                                                 <resource>
118                                                                         <directory>${basedir}/src/main/docker</directory>
119                                                                         <filtering>true</filtering>
120                                                                 </resource>
121                                                                 <resource>
122                                                                         <directory>${basedir}/src/main/bin/</directory>
123                                                                         <filtering>true</filtering>
124                                                                 </resource>
125                                                         </resources>
126                                                 </configuration>
127                                         </execution>
128                                 </executions>
129                         </plugin>
130                         <plugin>
131                                 <groupId>com.spotify</groupId>
132                                 <artifactId>docker-maven-plugin</artifactId>
133                                 <version>0.4.11</version>
134                                 <configuration>
135                                         <verbose>true</verbose>
136                                         <serverId>docker-hub</serverId>
137                                         <imageName>${docker.push.registry}/onap/${project.artifactId}</imageName>
138                                         <dockerDirectory>${docker.location}</dockerDirectory>
139                                         <imageTags>
140                                                 <imageTag>latest</imageTag>
141                                         </imageTags>
142                                         <forceTags>true</forceTags>
143                                 </configuration>
144                         </plugin>
145                         <plugin>
146                                 <groupId>org.apache.maven.plugins</groupId>
147                                 <artifactId>maven-deploy-plugin</artifactId>
148                         </plugin>
149                 </plugins>
150         </build>
151 </project>