Fix/Renable sidecar builds
[aaf/cadi.git] / sidecar / rproxy / 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>rproxy</artifactId>
31         <packaging>jar</packaging>
32
33         <name>Sidecar rproxy</name>
34         <description>ONAP AAF Reverse Proxy Microservice For Pluggable Security</description>
35
36         <dependencies>
37
38                 <!-- Spring Boot Dependencies -->
39
40                 <dependency>
41                         <groupId>org.springframework.boot</groupId>
42                         <artifactId>spring-boot-starter-web</artifactId>
43                         <!-- 
44                         <exclusions>
45                                 <exclusion>
46                                         <groupId>org.springframework.boot</groupId>
47                                         <artifactId>spring-boot-starter-tomcat</artifactId>
48                                 </exclusion>
49                                 <exclusion>
50                                         <groupId>org.springframework.boot</groupId>
51                                         <artifactId>spring-boot-starter-json</artifactId>
52                                 </exclusion>
53                                 
54                         </exclusions>
55                          -->
56                 </dependency>
57
58                 <dependency>
59                         <groupId>org.springframework.boot</groupId>
60                         <artifactId>spring-boot-starter-jetty</artifactId>
61                 </dependency>
62
63                 <dependency>
64                         <groupId>org.springframework.boot</groupId>
65                         <artifactId>spring-boot-starter-aop</artifactId>
66                 </dependency>
67
68                 <dependency>
69                         <groupId>org.springframework.boot</groupId>
70                         <artifactId>spring-boot-starter-test</artifactId>
71                 </dependency>
72
73                 <dependency>
74                         <groupId>org.apache.httpcomponents</groupId>
75                         <artifactId>httpclient</artifactId>
76                 </dependency>
77
78                 <dependency>
79                     <groupId>org.aspectj</groupId>
80                     <artifactId>aspectjrt</artifactId>
81                 </dependency>
82
83                 <!-- Application Dependencies -->
84
85                 <dependency>
86                         <groupId>org.onap.aaf.cadi.sidecar</groupId>
87                         <artifactId>fproxy</artifactId>
88                 </dependency>
89
90                 <dependency>
91                         <groupId>com.google.code.gson</groupId>
92                         <artifactId>gson</artifactId>
93                 </dependency>
94
95                 <!-- CADI -->
96
97                 <dependency>
98                         <groupId>org.onap.aaf.authz</groupId>
99                         <artifactId>aaf-cadi-aaf</artifactId>
100                 </dependency>
101
102         </dependencies>
103
104         <build>
105                 <finalName>rproxy</finalName>
106                 <plugins>
107                         <plugin>
108                                 <groupId>org.springframework.boot</groupId>
109                                 <artifactId>spring-boot-maven-plugin</artifactId>
110                                 <version>${spring.boot.version}</version>
111                                 <executions>
112                                         <execution>
113                                                 <goals>
114                                                         <goal>repackage</goal>
115                                                 </goals>
116                                                 <configuration>
117                                                         <classifier>exec</classifier>
118                                                 </configuration>
119                                         </execution>
120                                 </executions>
121                         </plugin>
122
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                                 <configuration>
182                                         <skip>true</skip>
183                                 </configuration>
184                         </plugin>
185                 </plugins>
186         </build>
187 </project>