Fix failing jenkins jobs
[aaf/cadi.git] / sidecar / tproxy-config / 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>tproxy-config</artifactId>
34         <version>1.0.0-SNAPSHOT</version>
35         <packaging>jar</packaging>
36
37         <name>aaf-tproxy-config</name>
38         <description>ONAP AAF InitContainer For Pluggable Security</description>
39
40         <properties>
41                 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
42                 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
43                 <version.io.fabric8.fabric8-maven-plugin>3.5.32</version.io.fabric8.fabric8-maven-plugin>
44                 <docker.location>${basedir}/target</docker.location>
45                 <skipNexusStagingDeployMojo>true</skipNexusStagingDeployMojo>
46         </properties>
47
48         <build>
49                 <plugins>
50                         <plugin>
51                                 <groupId>com.mycila</groupId>
52                                 <artifactId>license-maven-plugin</artifactId>
53                                 <version>3.0</version>
54                                 <configuration>
55                                         <header>License.txt</header>
56                                         <includes>
57                                                 <include>src/main/bin/**</include>
58                                                 <include>src/docker/bin/**</include>
59                                                 <include>pom.xml</include>
60                                         </includes>
61                                         <skipExistingHeaders>true</skipExistingHeaders>
62                                 </configuration>
63                                 <executions>
64                                         <execution>
65                                                 <goals>
66                                                         <!-- Set goal from "check" to "format" to auto update license headers -->
67                                                         <goal>check</goal>
68                                                 </goals>
69                                                 <phase>validate</phase>
70                                         </execution>
71                                 </executions>
72                         </plugin>
73
74                         <plugin>
75                                 <groupId>org.apache.maven.plugins</groupId>
76                                 <artifactId>maven-resources-plugin</artifactId>
77                                 <version>3.0.2</version>
78                                 <executions>
79                                         <execution>
80                                                 <id>copy-docker-file</id>
81                                                 <phase>package</phase>
82                                                 <goals>
83                                                         <goal>copy-resources</goal>
84                                                 </goals>
85                                                 <configuration>
86                                                         <outputDirectory>target</outputDirectory>
87                                                         <overwrite>true</overwrite>
88                                                         <resources>
89                                                                 <resource>
90                                                                         <directory>${basedir}/src/main/docker</directory>
91                                                                         <filtering>true</filtering>
92                                                                 </resource>
93                                                                 <resource>
94                                                                         <directory>${basedir}/src/main/bin/</directory>
95                                                                         <filtering>true</filtering>
96                                                                 </resource>
97                                                         </resources>
98                                                 </configuration>
99                                         </execution>
100                                 </executions>
101                         </plugin>
102                         <plugin>
103                                 <groupId>com.spotify</groupId>
104                                 <artifactId>docker-maven-plugin</artifactId>
105                                 <version>0.4.11</version>
106                                 <configuration>
107                                         <verbose>true</verbose>
108                                         <serverId>docker-hub</serverId>
109                                         <imageName>${docker.push.registry}/onap/${project.artifactId}</imageName>
110                                         <dockerDirectory>${docker.location}</dockerDirectory>
111                                         <imageTags>
112                                                 <imageTag>latest</imageTag>
113                                         </imageTags>
114                                         <forceTags>true</forceTags>
115                                 </configuration>
116                         </plugin>
117                         <plugin>
118                                 <groupId>org.apache.maven.plugins</groupId>
119                                 <artifactId>maven-deploy-plugin</artifactId>
120                                 <configuration>
121                                         <skip>true</skip>
122                                 </configuration>
123                         </plugin>
124                 </plugins>
125         </build>
126 </project>