Remove pom property preventing fproxy deploy
[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         </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                 <dependency>
61                         <groupId>org.springframework.boot</groupId>
62                         <artifactId>spring-boot-starter-jetty</artifactId>
63                 </dependency>
64
65                 <dependency>
66                         <groupId>org.springframework.boot</groupId>
67                         <artifactId>spring-boot-starter-web</artifactId>
68                         <exclusions>
69                                 <exclusion>
70                                         <artifactId>spring-boot-starter-tomcat</artifactId>
71                                         <groupId>org.springframework.boot</groupId>
72                                 </exclusion>
73                                 <exclusion>
74                                         <groupId>org.springframework.boot</groupId>
75                                         <artifactId>spring-boot-starter-json</artifactId>
76                                 </exclusion>
77                         </exclusions>
78                 </dependency>
79
80                 <dependency>
81                         <groupId>org.apache.commons</groupId>
82                         <artifactId>commons-lang3</artifactId>
83                 </dependency>
84
85                 <dependency>
86                         <groupId>org.apache.httpcomponents</groupId>
87                         <artifactId>httpclient</artifactId>
88                 </dependency>
89
90                 <dependency>
91                         <groupId>com.google.code.gson</groupId>
92                         <artifactId>gson</artifactId>
93                 </dependency>
94
95                 <!-- Testing -->
96                 <dependency>
97                         <groupId>org.springframework.boot</groupId>
98                         <artifactId>spring-boot-starter-test</artifactId>
99                         <scope>test</scope>
100                 </dependency>
101
102         </dependencies>
103
104         <build>
105                 <finalName>fproxy</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                         <plugin>
123                                 <groupId>com.mycila</groupId>
124                                 <artifactId>license-maven-plugin</artifactId>
125                         </plugin>
126                         <plugin>
127                                 <groupId>org.apache.maven.plugins</groupId>
128                                 <artifactId>maven-surefire-plugin</artifactId>
129                                 <configuration>
130                                         <reuseForks>false</reuseForks>
131                                         <forkCount>1</forkCount>
132                                 </configuration>
133                         </plugin>
134                         <plugin>
135                                 <groupId>org.apache.maven.plugins</groupId>
136                                 <artifactId>maven-resources-plugin</artifactId>
137                                 <version>3.0.2</version>
138                                 <executions>
139                                         <execution>
140                                                 <id>copy-docker-file</id>
141                                                 <phase>package</phase>
142                                                 <goals>
143                                                         <goal>copy-resources</goal>
144                                                 </goals>
145                                                 <configuration>
146                                                         <outputDirectory>target</outputDirectory>
147                                                         <overwrite>true</overwrite>
148                                                         <resources>
149                                                                 <resource>
150                                                                         <directory>${basedir}/src/main/docker</directory>
151                                                                         <filtering>true</filtering>
152                                                                 </resource>
153                                                                 <resource>
154                                                                         <directory>${basedir}/src/main/bin/</directory>
155                                                                         <filtering>true</filtering>
156                                                                 </resource>
157                                                         </resources>
158                                                 </configuration>
159                                         </execution>
160                                 </executions>
161                         </plugin>
162                         <plugin>
163                                 <groupId>com.spotify</groupId>
164                                 <artifactId>docker-maven-plugin</artifactId>
165                                 <version>0.4.11</version>
166                                 <configuration>
167                                         <verbose>true</verbose>
168                                         <serverId>docker-hub</serverId>
169                                         <imageName>${docker.push.registry}/onap/${project.artifactId}</imageName>
170                                         <dockerDirectory>${docker.location}</dockerDirectory>
171                                         <imageTags>
172                                                 <imageTag>latest</imageTag>
173                                         </imageTags>
174                                         <forceTags>true</forceTags>
175                                 </configuration>
176                         </plugin>
177                         <plugin>
178                                 <groupId>org.apache.maven.plugins</groupId>
179                                 <artifactId>maven-deploy-plugin</artifactId>
180                         </plugin>
181                 </plugins>
182         </build>
183 </project>