Adding Copyright Missing files
[oam/tr069-adapter.git] / db / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>\r
2 <!--\r
3 /*\r
4  * ============LICENSE_START========================================================================\r
5  * ONAP : tr-069-adapter\r
6  * =================================================================================================\r
7  * Copyright (C) 2020 CommScope Inc Intellectual Property.\r
8  * =================================================================================================\r
9  * This tr-069-adapter software file is distributed by CommScope Inc\r
10  * under the Apache License, Version 2.0 (the "License");\r
11  * you may not use this file except in compliance with the License.\r
12  * You may obtain a copy of the License at\r
13  *\r
14  * http://www.apache.org/licenses/LICENSE-2.0\r
15  *\r
16  * This file is distributed on an "AS IS" BASIS,\r
17  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
18  * See the License for the specific language governing permissions and\r
19  * limitations under the License.\r
20  * ===============LICENSE_END=======================================================================\r
21 */\r
22 -->\r
23 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">\r
24    <parent>\r
25       <groupId>org.commscope.tr069adapter</groupId>\r
26       <artifactId>tr069adapter</artifactId>\r
27       <version>1.0.0</version>\r
28    </parent>\r
29    <modelVersion>4.0.0</modelVersion>\r
30    <groupId>org.commscope.tr069adapter.db</groupId>\r
31    <artifactId>maria-db</artifactId>\r
32    <name>maria-db</name>\r
33    <url>http://maven.apache.org</url>\r
34    <properties>\r
35       <docker.image.name>tr069adapter-mariadb</docker.image.name>\r
36    </properties>\r
37    <build>\r
38       <plugins>\r
39          <plugin>\r
40             <groupId>io.fabric8</groupId>\r
41             <artifactId>docker-maven-plugin</artifactId>\r
42             <version>${docker-maven-plugin}</version>\r
43             <inherited>false</inherited>\r
44             <executions>\r
45                <execution>\r
46                   <id>generate-policy-agent-image</id>\r
47                   <phase>package</phase>\r
48                   <goals>\r
49                      <goal>build</goal>\r
50                                          <goal>save</goal>\r
51                   </goals>\r
52                   <configuration>\r
53                      <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>\r
54                      <images>\r
55                         <image>\r
56                            <name>${docker.image.name}:${build.version}</name>\r
57                            <build>\r
58                               <cleanup>try</cleanup>\r
59                               <contextDir>${basedir}</contextDir>\r
60                               <dockerFile>Dockerfile</dockerFile>\r
61                               <tags>\r
62                                  <tag>${project.version}</tag>\r
63                               </tags>\r
64                            </build>\r
65                         </image>\r
66                      </images>\r
67                   </configuration>\r
68                </execution>\r
69                <execution>\r
70                   <id>push-policy-agent-image</id>\r
71                   <goals>\r
72                      <goal>build</goal>\r
73                      <goal>push</goal>\r
74                   </goals>\r
75                   <configuration>\r
76                      <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>\r
77                      <pushRegistry>${env.CONTAINER_PUSH_REGISTRY}</pushRegistry>\r
78                      <images>\r
79                         <image>\r
80                            <name>${docker.image.name}:${project.version}</name>\r
81                            <build>\r
82                               <contextDir>${basedir}</contextDir>\r
83                               <dockerFile>Dockerfile</dockerFile>\r
84                               <args>\r
85                                  <JAR>${project.build.finalName}.jar</JAR>\r
86                               </args>\r
87                               <tags>\r
88                                  <tag>latest</tag>\r
89                               </tags>\r
90                            </build>\r
91                         </image>\r
92                      </images>\r
93                   </configuration>\r
94                </execution>\r
95             </executions>\r
96          </plugin>\r
97       </plugins>\r
98    </build>\r
99 </project>\r