Device Software version management
[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>com.fasterxml.jackson.core</groupId>\r
77          <artifactId>jackson-databind</artifactId>\r
78       </dependency>\r
79       <dependency>\r
80          <groupId>org.opendaylight.netconf</groupId>\r
81          <artifactId>netconf-testtool</artifactId>\r
82          <version>1.7.0</version>\r
83          <exclusions>\r
84             <exclusion>\r
85                <groupId>ch.qos.logback</groupId>\r
86                <artifactId>logback-classic</artifactId>\r
87             </exclusion>\r
88          </exclusions>\r
89       </dependency>\r
90       <dependency>\r
91          <groupId>org.springframework</groupId>\r
92          <artifactId>spring-context</artifactId>\r
93       </dependency>\r
94       <dependency>\r
95          <groupId>org.commscope.tr069adapter.mapper</groupId>\r
96          <artifactId>mapper</artifactId>\r
97          <version>1.0.0</version>\r
98          <classifier>lib</classifier>\r
99       </dependency>\r
100       <dependency>\r
101          <groupId>org.commscope.tr069adapter.common</groupId>\r
102          <artifactId>common</artifactId>\r
103          <version>1.0.0</version>\r
104       </dependency>\r
105       <dependency>\r
106          <groupId>org.springframework.boot</groupId>\r
107          <artifactId>spring-boot-actuator-autoconfigure</artifactId>\r
108       </dependency>\r
109       <dependency>\r
110          <groupId>org.springframework.retry</groupId>\r
111          <artifactId>spring-retry</artifactId>\r
112       </dependency>\r
113       <dependency>\r
114          <groupId>org.springframework</groupId>\r
115          <artifactId>spring-aspects</artifactId>\r
116       </dependency>\r
117       <dependency>\r
118          <groupId>org.mariadb.jdbc</groupId>\r
119          <artifactId>mariadb-java-client</artifactId>\r
120       </dependency>\r
121       <dependency>\r
122          <groupId>org.springframework.boot</groupId>\r
123          <artifactId>spring-boot-starter-data-jpa</artifactId>\r
124       </dependency>\r
125       <dependency>\r
126          <groupId>org.mockito</groupId>\r
127          <artifactId>mockito-core</artifactId>\r
128       </dependency>\r
129       <dependency>\r
130          <groupId>org.springframework.boot</groupId>\r
131          <artifactId>spring-boot-starter-test</artifactId>\r
132          <scope>test</scope>\r
133       </dependency>\r
134       <dependency>\r
135          <groupId>junit</groupId>\r
136          <artifactId>junit</artifactId>\r
137          <scope>test</scope>\r
138          <exclusions>\r
139             <exclusion>\r
140                <groupId>ch.qos.logback</groupId>\r
141                <artifactId>logback-classic</artifactId>\r
142             </exclusion>\r
143          </exclusions>\r
144       </dependency>\r
145       <dependency>\r
146          <groupId>junit</groupId>\r
147          <artifactId>junit-dep</artifactId>\r
148          <version>4.11</version>\r
149          <scope>test</scope>\r
150          <exclusions>\r
151             <exclusion>\r
152                <groupId>ch.qos.logback</groupId>\r
153                <artifactId>logback-classic</artifactId>\r
154             </exclusion>\r
155          </exclusions>\r
156       </dependency>\r
157       <dependency>\r
158          <groupId>com.h2database</groupId>\r
159          <artifactId>h2</artifactId>\r
160          <scope>test</scope>\r
161       </dependency>\r
162    </dependencies>\r
163    <build>\r
164       <plugins>\r
165          <plugin>\r
166             <groupId>org.springframework.boot</groupId>\r
167             <artifactId>spring-boot-maven-plugin</artifactId>\r
168          </plugin>\r
169          <plugin>\r
170             <groupId>net.revelc.code.formatter</groupId>\r
171             <artifactId>formatter-maven-plugin</artifactId>\r
172             <version>${formatter-maven-plugin.version}</version>\r
173             <configuration>\r
174                <configFile>${project.parent.basedir}/eclipse-formatter.xml</configFile>\r
175             </configuration>\r
176             <!-- https://code.revelc.net/formatter-maven-plugin/ use mvn formatter:format\r
177                                         spotless:apply process-sources -->\r
178          </plugin>\r
179          <plugin>\r
180             <groupId>com.diffplug.spotless</groupId>\r
181             <artifactId>spotless-maven-plugin</artifactId>\r
182             <version>${spotless-maven-plugin.version}</version>\r
183             <configuration>\r
184                <java>\r
185                   <removeUnusedImports />\r
186                   <importOrder>\r
187                      <order>com,java,javax,org</order>\r
188                   </importOrder>\r
189                </java>\r
190             </configuration>\r
191             <!-- https://github.com/diffplug/spotless/tree/master/plugin-maven use\r
192                                         mvn spotless:apply to rewrite source files use mvn spotless:check to validate\r
193                                         source files -->\r
194          </plugin>\r
195          <plugin>\r
196             <groupId>org.apache.maven.plugins</groupId>\r
197             <artifactId>maven-surefire-plugin</artifactId>\r
198             <configuration>\r
199                <skipTests>false</skipTests>\r
200             </configuration>\r
201          </plugin>\r
202          <plugin>\r
203             <artifactId>maven-failsafe-plugin</artifactId>\r
204          </plugin>\r
205          <plugin>\r
206             <groupId>io.fabric8</groupId>\r
207             <artifactId>docker-maven-plugin</artifactId>\r
208             <version>${docker-maven-plugin}</version>\r
209             <inherited>false</inherited>\r
210             <executions>\r
211                <execution>\r
212                   <id>generate-policy-agent-image</id>\r
213                   <phase>package</phase>\r
214                   <goals>\r
215                      <goal>build</goal>\r
216                      <goal>save</goal>\r
217                   </goals>\r
218                   <configuration>\r
219                      <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>\r
220                      <images>\r
221                         <image>\r
222                            <name>${docker.image.name}:${build.version}</name>\r
223                            <build>\r
224                               <cleanup>try</cleanup>\r
225                               <contextDir>${basedir}</contextDir>\r
226                               <dockerFile>Dockerfile</dockerFile>\r
227                               <args>\r
228                                  <JAR>${project.build.finalName}.jar</JAR>\r
229                               </args>\r
230                               <tags>\r
231                                  <tag>${project.version}</tag>\r
232                               </tags>\r
233                            </build>\r
234                         </image>\r
235                      </images>\r
236                   </configuration>\r
237                </execution>\r
238                <execution>\r
239                   <id>push-policy-agent-image</id>\r
240                   <goals>\r
241                      <goal>build</goal>\r
242                      <goal>push</goal>\r
243                   </goals>\r
244                   <configuration>\r
245                      <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>\r
246                      <pushRegistry>${env.CONTAINER_PUSH_REGISTRY}</pushRegistry>\r
247                      <images>\r
248                         <image>\r
249                            <name>${docker.image.name}:${project.version}</name>\r
250                            <build>\r
251                               <contextDir>${basedir}</contextDir>\r
252                               <dockerFile>Dockerfile</dockerFile>\r
253                               <args>\r
254                                  <JAR>${project.build.finalName}.jar</JAR>\r
255                               </args>\r
256                               <tags>\r
257                                  <tag>latest</tag>\r
258                               </tags>\r
259                            </build>\r
260                         </image>\r
261                      </images>\r
262                   </configuration>\r
263                </execution>\r
264             </executions>\r
265          </plugin>\r
266          <!-- support sonar in multi-module project -->\r
267          <plugin>\r
268             <groupId>org.sonarsource.scanner.maven</groupId>\r
269             <artifactId>sonar-maven-plugin</artifactId>\r
270             <version>${sonar-maven-plugin.version}</version>\r
271          </plugin>\r
272       </plugins>\r
273    </build>\r
274    <issueManagement>\r
275       <system>JIRA</system>\r
276       <url>https://jira.o-ran-sc.org/</url>\r
277    </issueManagement>\r
278 </project>\r