Add forward proxy code
[aaf/cadi.git] / sidecar / fproxy / pom.xml
1 <?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
27         <artifactId>fproxy</artifactId>
28         <version>1.0.0-SNAPSHOT</version>
29         <packaging>jar</packaging>
30
31         <parent>
32                 <groupId>org.onap.aaf.cadi</groupId>
33                 <artifactId>sidecar</artifactId>
34                 <version>1.0.0-SNAPSHOT</version>
35         </parent>
36
37         <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>
163                                 <dependencies>
164                                         <dependency>
165                                                 <groupId>com.github.jnr</groupId>
166                                                 <artifactId>jnr-unixsocket</artifactId>
167                                                 <version>0.13</version>
168                                         </dependency>
169                                 </dependencies>
170                                 <configuration>
171                                         <verbose>true</verbose>
172                                         <serverId>docker-hub</serverId>
173                                         <imageName>${docker.push.registry}/onap/${project.artifactId}</imageName>
174                                         <dockerDirectory>${docker.location}</dockerDirectory>
175                                         <imageTags>
176                                                 <imageTag>latest</imageTag>
177                                         </imageTags>
178                                         <forceTags>true</forceTags>
179                                 </configuration>
180                         </plugin>
181                         <plugin>
182                                 <groupId>org.apache.maven.plugins</groupId>
183                                 <artifactId>maven-deploy-plugin</artifactId>
184                                 <configuration>
185                                         <skip>true</skip>
186                                 </configuration>
187                         </plugin>
188                 </plugins>
189         </build>
190 </project>