Fix NexusIQ security vulnerabilities
[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         <parent>
28                 <groupId>org.onap.aaf.cadi.sidecar</groupId>
29                 <artifactId>sidecar</artifactId>
30                 <version>1.0.0-SNAPSHOT</version>
31         </parent>
32
33         <artifactId>fproxy</artifactId>
34         <version>1.0.0-SNAPSHOT</version>
35         <packaging>jar</packaging>
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                                 <exclusion>
75                                         <groupId>org.springframework.boot</groupId>
76                                         <artifactId>spring-boot-starter-json</artifactId>
77                                 </exclusion>
78                         </exclusions>
79                 </dependency>
80
81                 <dependency>
82                         <groupId>org.apache.commons</groupId>
83                         <artifactId>commons-lang3</artifactId>
84                 </dependency>
85
86                 <dependency>
87                         <groupId>org.apache.httpcomponents</groupId>
88                         <artifactId>httpclient</artifactId>
89                 </dependency>
90
91                 <dependency>
92                         <groupId>com.google.code.gson</groupId>
93                         <artifactId>gson</artifactId>
94                 </dependency>
95
96                 <!-- Testing -->
97                 <dependency>
98                         <groupId>org.springframework.boot</groupId>
99                         <artifactId>spring-boot-starter-test</artifactId>
100                         <scope>test</scope>
101                 </dependency>
102
103         </dependencies>
104
105         <build>
106                 <finalName>fproxy</finalName>
107                 <plugins>
108                         <plugin>
109                                 <groupId>org.springframework.boot</groupId>
110                                 <artifactId>spring-boot-maven-plugin</artifactId>
111                                 <version>${spring.boot.version}</version>
112                                 <executions>
113                                         <execution>
114                                                 <goals>
115                                                         <goal>repackage</goal>
116                                                 </goals>
117                                                 <configuration>
118                                                         <classifier>exec</classifier>
119                                                 </configuration>
120                                         </execution>
121                                 </executions>
122                         </plugin>
123                         <plugin>
124                                 <groupId>com.mycila</groupId>
125                                 <artifactId>license-maven-plugin</artifactId>
126                         </plugin>
127                         <plugin>
128                                 <groupId>org.apache.maven.plugins</groupId>
129                                 <artifactId>maven-surefire-plugin</artifactId>
130                                 <configuration>
131                                         <reuseForks>false</reuseForks>
132                                         <forkCount>1</forkCount>
133                                 </configuration>
134                         </plugin>
135                         <plugin>
136                                 <groupId>org.apache.maven.plugins</groupId>
137                                 <artifactId>maven-resources-plugin</artifactId>
138                                 <version>3.0.2</version>
139                                 <executions>
140                                         <execution>
141                                                 <id>copy-docker-file</id>
142                                                 <phase>package</phase>
143                                                 <goals>
144                                                         <goal>copy-resources</goal>
145                                                 </goals>
146                                                 <configuration>
147                                                         <outputDirectory>target</outputDirectory>
148                                                         <overwrite>true</overwrite>
149                                                         <resources>
150                                                                 <resource>
151                                                                         <directory>${basedir}/src/main/docker</directory>
152                                                                         <filtering>true</filtering>
153                                                                 </resource>
154                                                                 <resource>
155                                                                         <directory>${basedir}/src/main/bin/</directory>
156                                                                         <filtering>true</filtering>
157                                                                 </resource>
158                                                         </resources>
159                                                 </configuration>
160                                         </execution>
161                                 </executions>
162                         </plugin>
163                         <plugin>
164                                 <groupId>com.spotify</groupId>
165                                 <artifactId>docker-maven-plugin</artifactId>
166                                 <version>0.4.11</version>
167                                 <configuration>
168                                         <verbose>true</verbose>
169                                         <serverId>docker-hub</serverId>
170                                         <imageName>${docker.push.registry}/onap/${project.artifactId}</imageName>
171                                         <dockerDirectory>${docker.location}</dockerDirectory>
172                                         <imageTags>
173                                                 <imageTag>latest</imageTag>
174                                         </imageTags>
175                                         <forceTags>true</forceTags>
176                                 </configuration>
177                         </plugin>
178                         <plugin>
179                                 <groupId>org.apache.maven.plugins</groupId>
180                                 <artifactId>maven-deploy-plugin</artifactId>
181                         </plugin>
182                 </plugins>
183         </build>
184 </project>