004f56933b39884e6319f3545cdf134e82342761
[aaf/cadi.git] / sidecar / rproxy / 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>rproxy</artifactId>
34         <version>1.0.0-SNAPSHOT</version>
35         <packaging>jar</packaging>
36
37         <name>aaf-rproxy</name>
38         <description>ONAP AAF Reverse Proxy Microservice For Pluggable Security</description>
39
40         <properties>
41                 <spring.boot.version>2.0.3.RELEASE</spring.boot.version>
42                 <docker.location>${basedir}/target</docker.location>
43                 <skipNexusStagingDeployMojo>true</skipNexusStagingDeployMojo>
44         </properties>
45
46         <dependencyManagement>
47                 <dependencies>
48                         <dependency>
49                                 <!-- Import dependency management from Spring Boot -->
50                                 <groupId>org.springframework.boot</groupId>
51                                 <artifactId>spring-boot-dependencies</artifactId>
52                                 <version>${spring.boot.version}</version>
53                                 <type>pom</type>
54                                 <scope>import</scope>
55                         </dependency>
56                 </dependencies>
57         </dependencyManagement>
58
59         <dependencies>
60
61                 <!-- Spring Boot Dependencies -->
62
63                 <dependency>
64                         <groupId>org.springframework.boot</groupId>
65                         <artifactId>spring-boot-starter-web</artifactId>
66                         <exclusions>
67                                 <exclusion>
68                                         <groupId>org.springframework.boot</groupId>
69                                         <artifactId>spring-boot-starter-tomcat</artifactId>
70                                 </exclusion>
71                         </exclusions>
72                 </dependency>
73
74                 <dependency>
75                         <groupId>org.springframework.boot</groupId>
76                         <artifactId>spring-boot-starter-jetty</artifactId>
77                 </dependency>
78
79                 <dependency>
80                         <groupId>org.apache.httpcomponents</groupId>
81                         <artifactId>httpclient</artifactId>
82                 </dependency>
83
84                 <dependency>
85                         <groupId>org.springframework.boot</groupId>
86                         <artifactId>spring-boot-starter-aop</artifactId>
87                 </dependency>
88
89                 <dependency>
90                         <groupId>org.springframework.boot</groupId>
91                         <artifactId>spring-boot-starter-actuator</artifactId>
92                 </dependency>
93
94                 <dependency>
95                         <groupId>org.springframework.boot</groupId>
96                         <artifactId>spring-boot-starter-test</artifactId>
97                         <scope>test</scope>
98                 </dependency>
99
100                 <!-- Application Dependencies -->
101
102                 <dependency>
103                         <groupId>org.onap.aaf.cadi.sidecar</groupId>
104                         <artifactId>fproxy</artifactId>
105                         <version>1.0.0-SNAPSHOT</version>
106                 </dependency>
107
108                 <dependency>
109                         <groupId>com.google.code.gson</groupId>
110                         <artifactId>gson</artifactId>
111                         <version>2.8.5</version><!--$NO-MVN-MAN-VER$-->
112                 </dependency>
113
114                 <dependency>
115                         <groupId>org.mockito</groupId>
116                         <artifactId>mockito-core</artifactId>
117                 </dependency>           
118                 
119                 <!-- CADI -->
120
121                 <dependency>
122                         <groupId>org.onap.aaf.authz</groupId>
123                         <artifactId>aaf-cadi-aaf</artifactId>
124                         <version>2.1.2-SNAPSHOT</version>
125                 </dependency>
126
127         </dependencies>
128
129         <build>
130                 <finalName>rproxy</finalName>
131                 <plugins>
132                         <plugin>
133                                 <groupId>org.springframework.boot</groupId>
134                                 <artifactId>spring-boot-maven-plugin</artifactId>
135                                 <version>${spring.boot.version}</version>
136                                 <executions>
137                                         <execution>
138                                                 <goals>
139                                                         <goal>repackage</goal>
140                                                 </goals>
141                                                 <configuration>
142                                                         <classifier>exec</classifier>
143                                                 </configuration>
144                                         </execution>
145                                 </executions>
146                         </plugin>
147
148                         <plugin>
149                                 <groupId>com.mycila</groupId>
150                                 <artifactId>license-maven-plugin</artifactId>
151                         </plugin>
152                         <plugin>
153                                 <groupId>org.apache.maven.plugins</groupId>
154                                 <artifactId>maven-surefire-plugin</artifactId>
155                                 <configuration>
156                                         <reuseForks>false</reuseForks>
157                                         <forkCount>1</forkCount>
158                                 </configuration>
159                         </plugin>
160                         <plugin>
161                                 <groupId>org.apache.maven.plugins</groupId>
162                                 <artifactId>maven-resources-plugin</artifactId>
163                                 <version>3.0.2</version>
164                                 <executions>
165                                         <execution>
166                                                 <id>copy-docker-file</id>
167                                                 <phase>package</phase>
168                                                 <goals>
169                                                         <goal>copy-resources</goal>
170                                                 </goals>
171                                                 <configuration>
172                                                         <outputDirectory>target</outputDirectory>
173                                                         <overwrite>true</overwrite>
174                                                         <resources>
175                                                                 <resource>
176                                                                         <directory>${basedir}/src/main/docker</directory>
177                                                                         <filtering>true</filtering>
178                                                                 </resource>
179                                                                 <resource>
180                                                                         <directory>${basedir}/src/main/bin/</directory>
181                                                                         <filtering>true</filtering>
182                                                                 </resource>
183                                                         </resources>
184                                                 </configuration>
185                                         </execution>
186                                 </executions>
187                         </plugin>
188                         <plugin>
189                                 <groupId>com.spotify</groupId>
190                                 <artifactId>docker-maven-plugin</artifactId>
191                                 <version>0.4.11</version>
192                                 <configuration>
193                                         <verbose>true</verbose>
194                                         <serverId>docker-hub</serverId>
195                                         <imageName>${docker.push.registry}/onap/${project.artifactId}</imageName>
196                                         <dockerDirectory>${docker.location}</dockerDirectory>
197                                         <imageTags>
198                                                 <imageTag>latest</imageTag>
199                                         </imageTags>
200                                         <forceTags>true</forceTags>
201                                 </configuration>
202                         </plugin>
203                         <plugin>
204                                 <groupId>org.apache.maven.plugins</groupId>
205                                 <artifactId>maven-deploy-plugin</artifactId>
206                                 <configuration>
207                                         <skip>true</skip>
208                                 </configuration>
209                         </plugin>
210                 </plugins>
211         </build>
212 </project>