Add o-ran-sc/ prefix to ves-agent image name
[oam/tr069-adapter.git] / config-data / 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 https://maven.apache.org/xsd/maven-4.0.0.xsd">\r
24    <modelVersion>4.0.0</modelVersion>\r
25    <parent>\r
26       <groupId>org.commscope.tr069adapter</groupId>\r
27       <artifactId>tr069adapter</artifactId>\r
28       <version>1.0.0</version>\r
29    </parent>\r
30    <groupId>org.commscope.tr069adapter.config</groupId>\r
31    <artifactId>config-data</artifactId>\r
32    <name>config-data</name>\r
33    <description>Configuration data import project for Spring Boot</description>\r
34    <licenses>\r
35       <license>\r
36          <name>The Apache Software License, Version 2.0</name>\r
37          <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>\r
38       </license>\r
39    </licenses>\r
40    <repositories>\r
41       <repository>\r
42          <id>onap-releases</id>\r
43          <name>onap-releases</name>\r
44          <url>https://nexus.onap.org/content/repositories/releases/</url>\r
45       </repository>\r
46    </repositories>\r
47    <properties>\r
48       <docker.image.name>tr069adapter-acs-initialpnpdb</docker.image.name>\r
49    </properties>\r
50    <dependencies>\r
51       <dependency>\r
52          <groupId>org.springframework.boot</groupId>\r
53          <artifactId>spring-boot-starter-data-jpa</artifactId>\r
54       </dependency>\r
55       <dependency>\r
56          <groupId>org.springframework.boot</groupId>\r
57          <artifactId>spring-boot-starter-web</artifactId>\r
58          <exclusions>\r
59             <exclusion>\r
60                <groupId>org.springframework.boot</groupId>\r
61                <artifactId>spring-boot-starter-logging</artifactId>\r
62             </exclusion>\r
63          </exclusions>\r
64       </dependency>\r
65       <dependency>\r
66          <groupId>org.springframework.boot</groupId>\r
67          <artifactId>spring-boot-starter-log4j2</artifactId>\r
68       </dependency>\r
69       <dependency>\r
70          <groupId>org.mariadb.jdbc</groupId>\r
71          <artifactId>mariadb-java-client</artifactId>\r
72       </dependency>\r
73       <dependency>\r
74          <groupId>org.springframework.boot</groupId>\r
75          <artifactId>spring-boot-starter-test</artifactId>\r
76          <scope>test</scope>\r
77       </dependency>\r
78       <dependency>\r
79          <groupId>com.h2database</groupId>\r
80          <artifactId>h2</artifactId>\r
81          <scope>test</scope>\r
82       </dependency>\r
83       <dependency>\r
84          <groupId>junit</groupId>\r
85          <artifactId>junit</artifactId>\r
86       </dependency>\r
87       <dependency>\r
88          <groupId>junit</groupId>\r
89          <artifactId>junit-dep</artifactId>\r
90          <version>4.11</version>\r
91       </dependency>\r
92       <dependency>\r
93          <groupId>org.springframework.boot</groupId>\r
94          <artifactId>spring-boot-starter-test</artifactId>\r
95          <scope>test</scope>\r
96       </dependency>\r
97    </dependencies>\r
98    <build>\r
99       <plugins>\r
100          <plugin>\r
101             <groupId>org.springframework.boot</groupId>\r
102             <artifactId>spring-boot-maven-plugin</artifactId>\r
103          </plugin>\r
104          <plugin>\r
105             <groupId>net.revelc.code.formatter</groupId>\r
106             <artifactId>formatter-maven-plugin</artifactId>\r
107             <version>${formatter-maven-plugin.version}</version>\r
108             <configuration>\r
109                <configFile>${project.parent.basedir}/eclipse-formatter.xml</configFile>\r
110             </configuration>\r
111             <!-- https://code.revelc.net/formatter-maven-plugin/ use mvn formatter:format\r
112                                         spotless:apply process-sources -->\r
113          </plugin>\r
114          <plugin>\r
115             <groupId>com.diffplug.spotless</groupId>\r
116             <artifactId>spotless-maven-plugin</artifactId>\r
117             <version>${spotless-maven-plugin.version}</version>\r
118             <configuration>\r
119                <java>\r
120                   <removeUnusedImports />\r
121                   <importOrder>\r
122                      <order>com,java,javax,org</order>\r
123                   </importOrder>\r
124                </java>\r
125             </configuration>\r
126             <!-- https://github.com/diffplug/spotless/tree/master/plugin-maven use\r
127                                         mvn spotless:apply to rewrite source files use mvn spotless:check to validate\r
128                                         source files -->\r
129          </plugin>\r
130          <plugin>\r
131             <groupId>org.apache.maven.plugins</groupId>\r
132             <artifactId>maven-surefire-plugin</artifactId>\r
133             <configuration>\r
134                <skipTests>false</skipTests>\r
135             </configuration>\r
136          </plugin>\r
137          <plugin>\r
138             <artifactId>maven-failsafe-plugin</artifactId>\r
139          </plugin>\r
140          <plugin>\r
141             <groupId>io.fabric8</groupId>\r
142             <artifactId>docker-maven-plugin</artifactId>\r
143             <version>${docker-maven-plugin}</version>\r
144             <inherited>false</inherited>\r
145             <executions>\r
146                <execution>\r
147                   <id>generate-policy-agent-image</id>\r
148                   <phase>package</phase>\r
149                   <goals>\r
150                      <goal>build</goal>\r
151                      <goal>save</goal>\r
152                   </goals>\r
153                   <configuration>\r
154                      <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>\r
155                      <images>\r
156                         <image>\r
157                            <name>${docker.image.name}</name>\r
158                            <build>\r
159                               <cleanup>try</cleanup>\r
160                               <contextDir>${basedir}</contextDir>\r
161                               <dockerFile>Dockerfile</dockerFile>\r
162                               <args>\r
163                                  <JAR>${project.build.finalName}.jar</JAR>\r
164                               </args>\r
165                               <tags>\r
166                                  <tag>${project.version}</tag>\r
167                               </tags>\r
168                            </build>\r
169                         </image>\r
170                      </images>\r
171                   </configuration>\r
172                </execution>\r
173                <execution>\r
174                   <id>push-policy-agent-image</id>\r
175                   <goals>\r
176                      <goal>build</goal>\r
177                      <goal>push</goal>\r
178                   </goals>\r
179                   <configuration>\r
180                      <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>\r
181                      <pushRegistry>${env.CONTAINER_PUSH_REGISTRY}</pushRegistry>\r
182                      <images>\r
183                         <image>\r
184                            <name>${docker.image.name}:${project.version}</name>\r
185                            <build>\r
186                               <contextDir>${basedir}</contextDir>\r
187                               <dockerFile>Dockerfile</dockerFile>\r
188                               <args>\r
189                                  <JAR>${project.build.finalName}.jar</JAR>\r
190                               </args>\r
191                               <tags>\r
192                                  <tag>latest</tag>\r
193                               </tags>\r
194                            </build>\r
195                         </image>\r
196                      </images>\r
197                   </configuration>\r
198                </execution>\r
199             </executions>\r
200          </plugin>\r
201          <!-- support sonar in multi-module project -->\r
202          <plugin>\r
203             <groupId>org.sonarsource.scanner.maven</groupId>\r
204             <artifactId>sonar-maven-plugin</artifactId>\r
205             <version>${sonar-maven-plugin.version}</version>\r
206          </plugin>\r
207       </plugins>\r
208    </build>\r
209    <issueManagement>\r
210       <system>JIRA</system>\r
211       <url>https://jira.o-ran-sc.org/</url>\r
212    </issueManagement>\r
213 </project>\r