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