6c7021040cdb5dc86e8a860a5fc8740cc0006312
[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       <dependency>\r
98          <groupId>org.commscope.tr069adapter.acs.common</groupId>\r
99          <artifactId>acs-common</artifactId>\r
100          <version>1.0.0</version>\r
101       </dependency>\r
102    </dependencies>\r
103    <build>\r
104       <plugins>\r
105          <plugin>\r
106             <groupId>org.springframework.boot</groupId>\r
107             <artifactId>spring-boot-maven-plugin</artifactId>\r
108          </plugin>\r
109          <plugin>\r
110             <groupId>net.revelc.code.formatter</groupId>\r
111             <artifactId>formatter-maven-plugin</artifactId>\r
112             <version>${formatter-maven-plugin.version}</version>\r
113             <configuration>\r
114                <configFile>${project.parent.basedir}/eclipse-formatter.xml</configFile>\r
115             </configuration>\r
116             <!-- https://code.revelc.net/formatter-maven-plugin/ use mvn formatter:format\r
117                                         spotless:apply process-sources -->\r
118          </plugin>\r
119          <plugin>\r
120             <groupId>com.diffplug.spotless</groupId>\r
121             <artifactId>spotless-maven-plugin</artifactId>\r
122             <version>${spotless-maven-plugin.version}</version>\r
123             <configuration>\r
124                <java>\r
125                   <removeUnusedImports />\r
126                   <importOrder>\r
127                      <order>com,java,javax,org</order>\r
128                   </importOrder>\r
129                </java>\r
130             </configuration>\r
131             <!-- https://github.com/diffplug/spotless/tree/master/plugin-maven use\r
132                                         mvn spotless:apply to rewrite source files use mvn spotless:check to validate\r
133                                         source files -->\r
134          </plugin>\r
135          <plugin>\r
136             <groupId>org.apache.maven.plugins</groupId>\r
137             <artifactId>maven-surefire-plugin</artifactId>\r
138             <configuration>\r
139                <skipTests>false</skipTests>\r
140             </configuration>\r
141          </plugin>\r
142          <plugin>\r
143             <artifactId>maven-failsafe-plugin</artifactId>\r
144          </plugin>\r
145          <plugin>\r
146             <groupId>io.fabric8</groupId>\r
147             <artifactId>docker-maven-plugin</artifactId>\r
148             <version>${docker-maven-plugin}</version>\r
149             <inherited>false</inherited>\r
150             <executions>\r
151                <execution>\r
152                   <id>generate-policy-agent-image</id>\r
153                   <phase>package</phase>\r
154                   <goals>\r
155                      <goal>build</goal>\r
156                      <goal>save</goal>\r
157                   </goals>\r
158                   <configuration>\r
159                      <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>\r
160                      <images>\r
161                         <image>\r
162                            <name>${docker.image.name}:${build.version}</name>\r
163                            <build>\r
164                               <cleanup>try</cleanup>\r
165                               <contextDir>${basedir}</contextDir>\r
166                               <dockerFile>Dockerfile</dockerFile>\r
167                               <args>\r
168                                  <JAR>${project.build.finalName}.jar</JAR>\r
169                               </args>\r
170                               <tags>\r
171                                  <tag>${project.version}</tag>\r
172                               </tags>\r
173                            </build>\r
174                         </image>\r
175                      </images>\r
176                   </configuration>\r
177                </execution>\r
178                <execution>\r
179                   <id>push-policy-agent-image</id>\r
180                   <goals>\r
181                      <goal>build</goal>\r
182                      <goal>push</goal>\r
183                   </goals>\r
184                   <configuration>\r
185                      <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>\r
186                      <pushRegistry>${env.CONTAINER_PUSH_REGISTRY}</pushRegistry>\r
187                      <images>\r
188                         <image>\r
189                            <name>${docker.image.name}:${project.version}</name>\r
190                            <build>\r
191                               <contextDir>${basedir}</contextDir>\r
192                               <dockerFile>Dockerfile</dockerFile>\r
193                               <args>\r
194                                  <JAR>${project.build.finalName}.jar</JAR>\r
195                               </args>\r
196                               <tags>\r
197                                  <tag>latest</tag>\r
198                               </tags>\r
199                            </build>\r
200                         </image>\r
201                      </images>\r
202                   </configuration>\r
203                </execution>\r
204             </executions>\r
205          </plugin>\r
206          <!-- support sonar in multi-module project -->\r
207          <plugin>\r
208             <groupId>org.sonarsource.scanner.maven</groupId>\r
209             <artifactId>sonar-maven-plugin</artifactId>\r
210             <version>${sonar-maven-plugin.version}</version>\r
211          </plugin>\r
212       </plugins>\r
213    </build>\r
214    <issueManagement>\r
215       <system>JIRA</system>\r
216       <url>https://jira.o-ran-sc.org/</url>\r
217    </issueManagement>\r
218 </project>\r