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