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