Development of NETCONF RPCs for tr-069 adapter to
[oam/tr069-adapter.git] / netconf-server / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>\r
2 <!--\r
3 /*\r
4  * ============LICENSE_START========================================================================\r
5  * O-RAN-SC : 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    <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.netconf.server</groupId>\r
31    <artifactId>netconf-server</artifactId>\r
32    <name>netconf-server</name>\r
33    <packaging>jar</packaging>\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>o-ran-sc/tr069adapter-netconf-server</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</artifactId>\r
54          <exclusions>\r
55             <exclusion>\r
56                <groupId>org.springframework.boot</groupId>\r
57                <artifactId>spring-boot-starter-logging</artifactId>\r
58             </exclusion>\r
59          </exclusions>\r
60       </dependency>\r
61       <dependency>\r
62          <groupId>org.springframework.boot</groupId>\r
63          <artifactId>spring-boot-starter-web</artifactId>\r
64          <exclusions>\r
65             <exclusion>\r
66                <groupId>org.springframework.boot</groupId>\r
67                <artifactId>spring-boot-starter-logging</artifactId>\r
68             </exclusion>\r
69          </exclusions>\r
70       </dependency>\r
71       <dependency>\r
72          <groupId>org.springframework.boot</groupId>\r
73          <artifactId>spring-boot-starter-activemq</artifactId>\r
74       </dependency>\r
75       <dependency>\r
76                  <groupId>org.springframework</groupId>\r
77                  <artifactId>spring-jms</artifactId>\r
78           </dependency>\r
79       <dependency>\r
80          <groupId>com.fasterxml.jackson.core</groupId>\r
81          <artifactId>jackson-databind</artifactId>\r
82       </dependency>\r
83       <dependency>\r
84          <groupId>org.opendaylight.netconf</groupId>\r
85          <artifactId>netconf-testtool</artifactId>\r
86          <version>1.7.0</version>\r
87          <exclusions>\r
88             <exclusion>\r
89                <groupId>ch.qos.logback</groupId>\r
90                <artifactId>logback-classic</artifactId>\r
91             </exclusion>\r
92          </exclusions>\r
93       </dependency>\r
94       <dependency>\r
95          <groupId>org.springframework</groupId>\r
96          <artifactId>spring-context</artifactId>\r
97       </dependency>\r
98       <dependency>\r
99          <groupId>org.commscope.tr069adapter.mapper</groupId>\r
100          <artifactId>mapper</artifactId>\r
101          <version>1.0.0</version>\r
102          <classifier>lib</classifier>\r
103       </dependency>\r
104       <dependency>\r
105          <groupId>org.commscope.tr069adapter.common</groupId>\r
106          <artifactId>common</artifactId>\r
107          <version>1.0.0</version>\r
108       </dependency>\r
109       <dependency>\r
110          <groupId>org.springframework.boot</groupId>\r
111          <artifactId>spring-boot-actuator-autoconfigure</artifactId>\r
112       </dependency>\r
113       <dependency>\r
114          <groupId>org.springframework.retry</groupId>\r
115          <artifactId>spring-retry</artifactId>\r
116       </dependency>\r
117       <dependency>\r
118          <groupId>org.springframework</groupId>\r
119          <artifactId>spring-aspects</artifactId>\r
120       </dependency>\r
121       <dependency>\r
122          <groupId>org.mariadb.jdbc</groupId>\r
123          <artifactId>mariadb-java-client</artifactId>\r
124       </dependency>\r
125       <dependency>\r
126          <groupId>org.springframework.boot</groupId>\r
127          <artifactId>spring-boot-starter-data-jpa</artifactId>\r
128       </dependency>\r
129       <dependency>\r
130          <groupId>org.mockito</groupId>\r
131          <artifactId>mockito-core</artifactId>\r
132       </dependency>\r
133       <dependency>\r
134          <groupId>org.springframework.boot</groupId>\r
135          <artifactId>spring-boot-starter-test</artifactId>\r
136          <scope>test</scope>\r
137       </dependency>\r
138       <dependency>\r
139          <groupId>junit</groupId>\r
140          <artifactId>junit</artifactId>\r
141          <scope>test</scope>\r
142          <exclusions>\r
143             <exclusion>\r
144                <groupId>ch.qos.logback</groupId>\r
145                <artifactId>logback-classic</artifactId>\r
146             </exclusion>\r
147          </exclusions>\r
148       </dependency>\r
149       <dependency>\r
150          <groupId>junit</groupId>\r
151          <artifactId>junit-dep</artifactId>\r
152          <version>4.11</version>\r
153          <scope>test</scope>\r
154          <exclusions>\r
155             <exclusion>\r
156                <groupId>ch.qos.logback</groupId>\r
157                <artifactId>logback-classic</artifactId>\r
158             </exclusion>\r
159          </exclusions>\r
160       </dependency>\r
161       <dependency>\r
162          <groupId>com.h2database</groupId>\r
163          <artifactId>h2</artifactId>\r
164          <scope>test</scope>\r
165       </dependency>\r
166    </dependencies>\r
167    <build>\r
168       <plugins>\r
169          <plugin>\r
170             <groupId>org.springframework.boot</groupId>\r
171             <artifactId>spring-boot-maven-plugin</artifactId>\r
172          </plugin>\r
173          <plugin>\r
174             <groupId>net.revelc.code.formatter</groupId>\r
175             <artifactId>formatter-maven-plugin</artifactId>\r
176             <version>${formatter-maven-plugin.version}</version>\r
177             <configuration>\r
178                <configFile>${project.parent.basedir}/eclipse-formatter.xml</configFile>\r
179             </configuration>\r
180             <!-- https://code.revelc.net/formatter-maven-plugin/ use mvn formatter:format\r
181                                         spotless:apply process-sources -->\r
182          </plugin>\r
183          <plugin>\r
184             <groupId>com.diffplug.spotless</groupId>\r
185             <artifactId>spotless-maven-plugin</artifactId>\r
186             <version>${spotless-maven-plugin.version}</version>\r
187             <configuration>\r
188                <java>\r
189                   <removeUnusedImports />\r
190                   <importOrder>\r
191                      <order>com,java,javax,org</order>\r
192                   </importOrder>\r
193                </java>\r
194             </configuration>\r
195             <!-- https://github.com/diffplug/spotless/tree/master/plugin-maven use\r
196                                         mvn spotless:apply to rewrite source files use mvn spotless:check to validate\r
197                                         source files -->\r
198          </plugin>\r
199          <plugin>\r
200             <groupId>org.apache.maven.plugins</groupId>\r
201             <artifactId>maven-surefire-plugin</artifactId>\r
202             <configuration>\r
203                <skipTests>false</skipTests>\r
204             </configuration>\r
205          </plugin>\r
206          <plugin>\r
207             <groupId>org.jacoco</groupId>\r
208             <artifactId>jacoco-maven-plugin</artifactId>\r
209             <executions>\r
210                <execution>\r
211                   <goals>\r
212                      <goal>prepare-agent</goal>\r
213                   </goals>\r
214                </execution>\r
215                <!-- attached to Maven test phase -->\r
216                <execution>\r
217                   <id>report</id>\r
218                   <phase>test</phase>\r
219                   <goals>\r
220                      <goal>report</goal>\r
221                   </goals>\r
222                </execution>\r
223             </executions>\r
224          </plugin>\r
225          <plugin>\r
226             <artifactId>maven-failsafe-plugin</artifactId>\r
227          </plugin>\r
228          <plugin>\r
229             <groupId>io.fabric8</groupId>\r
230             <artifactId>docker-maven-plugin</artifactId>\r
231             <version>${docker-maven-plugin}</version>\r
232             <inherited>false</inherited>\r
233             <executions>\r
234                <execution>\r
235                   <id>generate-policy-agent-image</id>\r
236                   <phase>package</phase>\r
237                   <goals>\r
238                      <goal>build</goal>\r
239                      <goal>save</goal>\r
240                   </goals>\r
241                   <configuration>\r
242                      <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>\r
243                      <images>\r
244                         <image>\r
245                            <name>${docker.image.name}:${build.version}</name>\r
246                            <build>\r
247                               <cleanup>try</cleanup>\r
248                               <contextDir>${basedir}</contextDir>\r
249                               <dockerFile>Dockerfile</dockerFile>\r
250                               <args>\r
251                                  <JAR>${project.build.finalName}.jar</JAR>\r
252                               </args>\r
253                               <tags>\r
254                                  <tag>${project.version}</tag>\r
255                               </tags>\r
256                            </build>\r
257                         </image>\r
258                      </images>\r
259                   </configuration>\r
260                </execution>\r
261                <execution>\r
262                   <id>push-policy-agent-image</id>\r
263                   <goals>\r
264                      <goal>build</goal>\r
265                      <goal>push</goal>\r
266                   </goals>\r
267                   <configuration>\r
268                      <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>\r
269                      <pushRegistry>${env.CONTAINER_PUSH_REGISTRY}</pushRegistry>\r
270                      <images>\r
271                         <image>\r
272                            <name>${docker.image.name}:${project.version}</name>\r
273                            <build>\r
274                               <contextDir>${basedir}</contextDir>\r
275                               <dockerFile>Dockerfile</dockerFile>\r
276                               <args>\r
277                                  <JAR>${project.build.finalName}.jar</JAR>\r
278                               </args>\r
279                               <tags>\r
280                                  <tag>latest</tag>\r
281                               </tags>\r
282                            </build>\r
283                         </image>\r
284                      </images>\r
285                   </configuration>\r
286                </execution>\r
287             </executions>\r
288          </plugin>\r
289          <!-- support sonar in multi-module project -->\r
290          <plugin>\r
291             <groupId>org.sonarsource.scanner.maven</groupId>\r
292             <artifactId>sonar-maven-plugin</artifactId>\r
293             <version>${sonar-maven-plugin.version}</version>\r
294          </plugin>\r
295       </plugins>\r
296    </build>\r
297    <issueManagement>\r
298       <system>JIRA</system>\r
299       <url>https://jira.o-ran-sc.org/</url>\r
300    </issueManagement>\r
301 </project>\r