adding the SNAPSHOT in pom
[oam/tr069-adapter.git] / nginx / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3      /*
4  * ============LICENSE_START========================================================================
5  * O-RAN-SC : tr-069-adapter
6  * =================================================================================================
7  * Copyright (C) 2020 CommScope Inc Intellectual Property.
8  * =================================================================================================
9  * This tr-069-adapter software file is distributed by CommScope Inc
10  * under the Apache License, Version 2.0 (the "License");
11  * you may not use this file except in compliance with the License.
12  * You may obtain a copy of the License at
13  *
14  * http://www.apache.org/licenses/LICENSE-2.0
15  *
16  * This file 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" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
24    <parent>
25       <groupId>org.commscope.tr069adapter</groupId>
26       <artifactId>tr069adapter</artifactId>
27       <version>${project.version}</version>
28    </parent>
29    <modelVersion>4.0.0</modelVersion>
30    <groupId>org.commscope.tr069adapter.nginx</groupId>
31    <artifactId>nginx</artifactId>
32    <packaging>jar</packaging>
33    <name>nginx</name>
34    <url>http://maven.apache.org</url>
35    <properties>
36       <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
37       <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
38       <docker.image.name>o-ran-sc/tr069adapter-nginx</docker.image.name>
39    </properties>
40    <build>
41       <plugins>
42          <plugin>
43             <groupId>io.fabric8</groupId>
44             <artifactId>docker-maven-plugin</artifactId>
45             <version>${docker-maven-plugin}</version>
46             <inherited>false</inherited>
47             <executions>
48                <execution>
49                   <id>generate-policy-agent-image</id>
50                   <phase>package</phase>
51                   <goals>
52                      <goal>build</goal>
53                      <goal>save</goal>
54                   </goals>
55                   <configuration>
56                      <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>
57                      <images>
58                         <image>
59                            <name>${docker.image.name}:${build.version}</name>
60                            <build>
61                               <cleanup>try</cleanup>
62                               <contextDir>${basedir}</contextDir>
63                               <dockerFile>Dockerfile</dockerFile>
64                               <tags>
65                                  <tag>${project.version}</tag>
66                               </tags>
67                            </build>
68                         </image>
69                      </images>
70                   </configuration>
71                </execution>
72                <execution>
73                   <id>push-policy-agent-image</id>
74                   <goals>
75                      <goal>build</goal>
76                      <goal>push</goal>
77                   </goals>
78                   <configuration>
79                      <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>
80                      <pushRegistry>${env.CONTAINER_PUSH_REGISTRY}</pushRegistry>
81                      <images>
82                         <image>
83                            <name>${docker.image.name}:${project.version}</name>
84                            <build>
85                               <contextDir>${basedir}</contextDir>
86                               <dockerFile>Dockerfile</dockerFile>
87                               <args>
88                                  <JAR>${project.build.finalName}.jar</JAR>
89                               </args>
90                               <tags>
91                                  <tag>latest</tag>
92                               </tags>
93                            </build>
94                         </image>
95                      </images>
96                   </configuration>
97                </execution>
98             </executions>
99          </plugin>
100       </plugins>
101    </build>
102    <issueManagement>
103       <system>JIRA</system>
104       <url>https://jira.o-ran-sc.org/</url>
105    </issueManagement>
106 </project>