Changed to unmaintained
[aaf/cadi.git] / sidecar / fproxy / 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.16-SNAPSHOT</version>
28         </parent>
29
30         <properties>
31                 <fproxy.build.dir>${project.build.directory}/${project.artifactId}-build/</fproxy.build.dir>
32         </properties>
33
34         <artifactId>fproxy</artifactId>
35         <packaging>jar</packaging>
36
37         <name>Sidecar fproxy</name>
38         <description>ONAP AAF Forward Proxy Microservice For Pluggable Security</description>
39
40         <dependencyManagement>
41                 <dependencies>
42                         <dependency>
43                                 <!-- Import dependency management from Spring Boot -->
44                                 <groupId>org.springframework.boot</groupId>
45                                 <artifactId>spring-boot-dependencies</artifactId>
46                                 <version>${spring.boot.version}</version>
47                                 <type>pom</type>
48                                 <scope>import</scope>
49                         </dependency>
50                 </dependencies>
51         </dependencyManagement>
52
53         <dependencies>
54                 <dependency>
55                         <groupId>org.apache.httpcomponents</groupId>
56                         <artifactId>httpclient</artifactId>
57                 </dependency>
58
59                 <dependency>
60                         <groupId>org.springframework.boot</groupId>
61                         <artifactId>spring-boot-starter-jetty</artifactId>
62                 </dependency>
63
64                 <dependency>
65                         <groupId>org.springframework.boot</groupId>
66                         <artifactId>spring-boot-starter-aop</artifactId>
67                 </dependency>
68
69                 <dependency>
70                         <groupId>org.springframework.boot</groupId>
71                         <artifactId>spring-boot-starter-web</artifactId>
72                         <exclusions>
73                                 <exclusion>
74                                         <groupId>org.springframework.boot</groupId>
75                                         <artifactId>spring-boot-starter-tomcat</artifactId>
76                                 </exclusion>
77                                 <exclusion>
78                                         <groupId>org.springframework.boot</groupId>
79                                         <artifactId>spring-boot-starter-json</artifactId>
80                                 </exclusion>
81                         </exclusions>
82                 </dependency>
83
84                 <dependency>
85                         <groupId>org.springframework.boot</groupId>
86                         <artifactId>spring-boot-starter-test</artifactId>
87                 </dependency>
88
89                 <dependency>
90                         <groupId>com.google.code.gson</groupId>
91                         <artifactId>gson</artifactId>
92                 </dependency>
93         </dependencies>
94
95         <build>
96                 <finalName>fproxy</finalName>
97                 <plugins>
98                         <plugin>
99                                 <groupId>org.springframework.boot</groupId>
100                                 <artifactId>spring-boot-maven-plugin</artifactId>
101                                 <version>${spring.boot.version}</version>
102                                 <executions>
103                                         <execution>
104                                                 <goals>
105                                                         <goal>repackage</goal>
106                                                 </goals>
107                                                 <configuration>
108                                                         <classifier>exec</classifier>
109                                                 </configuration>
110                                         </execution>
111                                 </executions>
112                         </plugin>
113                         <plugin>
114                                 <groupId>com.mycila</groupId>
115                                 <artifactId>license-maven-plugin</artifactId>
116                         </plugin>
117                         <plugin>
118                                 <groupId>org.apache.maven.plugins</groupId>
119                                 <artifactId>maven-surefire-plugin</artifactId>
120                                 <configuration>
121                                         <reuseForks>false</reuseForks>
122                                         <forkCount>1</forkCount>
123                                         <argLine>-Xmx1024m -XX:MaxPermSize=256m</argLine>
124                                 </configuration>
125                         </plugin>
126                         <plugin>
127                                 <artifactId>maven-assembly-plugin</artifactId>
128                                 <configuration>
129                                         <descriptors>
130                                                 <descriptor>src/main/assembly/descriptor.xml</descriptor>
131                                         </descriptors>
132                                 </configuration>
133                                 <executions>
134                                         <execution>
135                                                 <id>make-assembly</id>
136                                                 <phase>package</phase>
137                                                 <goals>
138                                                         <goal>single</goal>
139                                                 </goals>
140                                         </execution>
141                                 </executions>
142                         </plugin>
143                         <!--<plugin>
144                                 <groupId>io.fabric8</groupId>
145                                 <artifactId>docker-maven-plugin</artifactId>
146                                 <version>0.28.0</version>
147                                 <configuration>
148                                         <verbose>true</verbose>
149                                         <apiVersion>${docker.apiVersion}</apiVersion>
150                                         <pullRegistry>${docker.pull.registry}</pullRegistry>
151                                         <pushRegistry>${docker.push.registry}</pushRegistry>
152                                         <serverId>docker-hub</serverId>
153                                         <dockerDirectory>${docker.location}</dockerDirectory>
154                                         <imageTags>
155                                                 <imageTag>latest</imageTag>
156                                         </imageTags>
157                                         <forceTags>true</forceTags>
158                                         <images>
159                                                 <image>
160                                                         <name>${docker.push.registry}/onap/${project.artifactId}</name>
161                                                         <build>
162                                                                 <cleanup>try</cleanup>
163                                                                 <dockerFileDir>${project.basedir}/src/main/docker</dockerFileDir>
164                                                                 <tags>
165                                                                         <tag>latest</tag>
166                                                                 </tags>
167                                                                 <assembly>
168                                                                         <inline>
169                                                                                 <fileSets>
170                                                                                         <fileSet>
171                                                                                                 <directory>${fproxy.build.dir}</directory>
172                                                                                                 <outputDirectory>/${project.artifactId}</outputDirectory>
173                                                                                         </fileSet>
174                                                                                 </fileSets>
175                                                                         </inline>
176                                                                 </assembly>
177                                                         </build>
178                                                 </image>
179                                         </images>
180                                 </configuration>
181                                 <executions>
182                                         <execution>
183                                                 <id>generate-images</id>
184                                                 <phase>install</phase>
185                                         
186                                         </execution>
187                                         <execution>
188                                                 <id>push-images</id>
189                                                 <phase>deploy</phase>
190                                                 <goals>
191                                                         <goal>push</goal>
192                                                 </goals>
193                                         </execution>
194                                 </executions>
195                         </plugin>
196                         <plugin>
197                                 <groupId>org.apache.maven.plugins</groupId>
198                                 <artifactId>maven-deploy-plugin</artifactId>
199                         </plugin> -->
200                 </plugins>
201         </build>
202 </project>