Docker Compose file checkin for tr069-adapter
[oam/tr069-adapter.git] / netconf-server / 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    <modelVersion>4.0.0</modelVersion>
25    <parent>
26       <groupId>org.commscope.tr069adapter</groupId>
27       <artifactId>tr069adapter</artifactId>
28       <version>1.0.0</version>
29    </parent>
30    <groupId>org.commscope.tr069adapter.netconf.server</groupId>
31    <artifactId>netconf-server</artifactId>
32    <name>netconf-server</name>
33    <packaging>jar</packaging>
34    <licenses>
35       <license>
36          <name>The Apache Software License, Version 2.0</name>
37          <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
38       </license>
39    </licenses>
40    <repositories>
41       <repository>
42          <id>onap-releases</id>
43          <name>onap-releases</name>
44          <url>https://nexus.onap.org/content/repositories/releases/</url>
45       </repository>
46    </repositories>
47    <properties>
48       <docker.image.name>o-ran-sc/tr069adapter-netconf-server</docker.image.name>
49    </properties>
50    <dependencies>
51       <dependency>
52          <groupId>org.springframework.boot</groupId>
53          <artifactId>spring-boot-starter</artifactId>
54          <exclusions>
55             <exclusion>
56                <groupId>org.springframework.boot</groupId>
57                <artifactId>spring-boot-starter-logging</artifactId>
58             </exclusion>
59          </exclusions>
60       </dependency>
61       <dependency>
62          <groupId>org.springframework.boot</groupId>
63          <artifactId>spring-boot-starter-web</artifactId>
64          <exclusions>
65             <exclusion>
66                <groupId>org.springframework.boot</groupId>
67                <artifactId>spring-boot-starter-logging</artifactId>
68             </exclusion>
69          </exclusions>
70       </dependency>
71       <dependency>
72          <groupId>org.springframework.boot</groupId>
73          <artifactId>spring-boot-starter-activemq</artifactId>
74       </dependency>
75       <dependency>
76          <groupId>com.fasterxml.jackson.core</groupId>
77          <artifactId>jackson-databind</artifactId>
78       </dependency>
79       <dependency>
80          <groupId>org.opendaylight.netconf</groupId>
81          <artifactId>netconf-testtool</artifactId>
82          <version>1.7.0</version>
83          <exclusions>
84             <exclusion>
85                <groupId>ch.qos.logback</groupId>
86                <artifactId>logback-classic</artifactId>
87             </exclusion>
88          </exclusions>
89       </dependency>
90       <dependency>
91          <groupId>org.springframework</groupId>
92          <artifactId>spring-context</artifactId>
93       </dependency>
94       <dependency>
95          <groupId>org.commscope.tr069adapter.mapper</groupId>
96          <artifactId>mapper</artifactId>
97          <version>1.0.0</version>
98          <classifier>lib</classifier>
99       </dependency>
100       <dependency>
101          <groupId>org.springframework.boot</groupId>
102          <artifactId>spring-boot-actuator-autoconfigure</artifactId>
103       </dependency>
104       <dependency>
105          <groupId>org.springframework.retry</groupId>
106          <artifactId>spring-retry</artifactId>
107       </dependency>
108       <dependency>
109          <groupId>org.springframework</groupId>
110          <artifactId>spring-aspects</artifactId>
111       </dependency>
112       <dependency>
113          <groupId>org.mariadb.jdbc</groupId>
114          <artifactId>mariadb-java-client</artifactId>
115       </dependency>
116       <dependency>
117          <groupId>org.springframework.boot</groupId>
118          <artifactId>spring-boot-starter-data-jpa</artifactId>
119       </dependency>
120       <dependency>
121          <groupId>org.mockito</groupId>
122          <artifactId>mockito-core</artifactId>
123       </dependency>
124       <dependency>
125          <groupId>org.springframework.boot</groupId>
126          <artifactId>spring-boot-starter-test</artifactId>
127          <scope>test</scope>
128       </dependency>
129       <dependency>
130          <groupId>junit</groupId>
131          <artifactId>junit</artifactId>
132          <scope>test</scope>
133          <exclusions>
134             <exclusion>
135                <groupId>ch.qos.logback</groupId>
136                <artifactId>logback-classic</artifactId>
137             </exclusion>
138          </exclusions>
139       </dependency>
140       <dependency>
141          <groupId>junit</groupId>
142          <artifactId>junit-dep</artifactId>
143          <version>4.11</version>
144          <scope>test</scope>
145          <exclusions>
146             <exclusion>
147                <groupId>ch.qos.logback</groupId>
148                <artifactId>logback-classic</artifactId>
149             </exclusion>
150          </exclusions>
151       </dependency>
152       <dependency>
153          <groupId>com.h2database</groupId>
154          <artifactId>h2</artifactId>
155          <scope>test</scope>
156       </dependency>
157    </dependencies>
158    <build>
159       <plugins>
160          <plugin>
161             <groupId>org.springframework.boot</groupId>
162             <artifactId>spring-boot-maven-plugin</artifactId>
163          </plugin>
164          <plugin>
165             <groupId>net.revelc.code.formatter</groupId>
166             <artifactId>formatter-maven-plugin</artifactId>
167             <version>${formatter-maven-plugin.version}</version>
168             <configuration>
169                <configFile>${project.parent.basedir}/eclipse-formatter.xml</configFile>
170             </configuration>
171             <!-- https://code.revelc.net/formatter-maven-plugin/ use mvn formatter:format
172                                         spotless:apply process-sources -->
173          </plugin>
174          <plugin>
175             <groupId>com.diffplug.spotless</groupId>
176             <artifactId>spotless-maven-plugin</artifactId>
177             <version>${spotless-maven-plugin.version}</version>
178             <configuration>
179                <java>
180                   <removeUnusedImports />
181                   <importOrder>
182                      <order>com,java,javax,org</order>
183                   </importOrder>
184                </java>
185             </configuration>
186             <!-- https://github.com/diffplug/spotless/tree/master/plugin-maven use
187                                         mvn spotless:apply to rewrite source files use mvn spotless:check to validate
188                                         source files -->
189          </plugin>
190          <plugin>
191             <groupId>org.apache.maven.plugins</groupId>
192             <artifactId>maven-surefire-plugin</artifactId>
193             <configuration>
194                <skipTests>false</skipTests>
195             </configuration>
196          </plugin>
197          <plugin>
198             <artifactId>maven-failsafe-plugin</artifactId>
199          </plugin>
200          <plugin>
201             <groupId>io.fabric8</groupId>
202             <artifactId>docker-maven-plugin</artifactId>
203             <version>${docker-maven-plugin}</version>
204             <inherited>false</inherited>
205             <executions>
206                <execution>
207                   <id>generate-policy-agent-image</id>
208                   <phase>package</phase>
209                   <goals>
210                      <goal>build</goal>
211                      <goal>save</goal>
212                   </goals>
213                   <configuration>
214                      <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>
215                      <images>
216                         <image>
217                            <name>${docker.image.name}:${build.version}</name>
218                            <build>
219                               <cleanup>try</cleanup>
220                               <contextDir>${basedir}</contextDir>
221                               <dockerFile>Dockerfile</dockerFile>
222                               <args>
223                                  <JAR>${project.build.finalName}.jar</JAR>
224                               </args>
225                               <tags>
226                                  <tag>${project.version}</tag>
227                               </tags>
228                            </build>
229                         </image>
230                      </images>
231                   </configuration>
232                </execution>
233                <execution>
234                   <id>push-policy-agent-image</id>
235                   <goals>
236                      <goal>build</goal>
237                      <goal>push</goal>
238                   </goals>
239                   <configuration>
240                      <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>
241                      <pushRegistry>${env.CONTAINER_PUSH_REGISTRY}</pushRegistry>
242                      <images>
243                         <image>
244                            <name>${docker.image.name}:${project.version}</name>
245                            <build>
246                               <contextDir>${basedir}</contextDir>
247                               <dockerFile>Dockerfile</dockerFile>
248                               <args>
249                                  <JAR>${project.build.finalName}.jar</JAR>
250                               </args>
251                               <tags>
252                                  <tag>latest</tag>
253                               </tags>
254                            </build>
255                         </image>
256                      </images>
257                   </configuration>
258                </execution>
259             </executions>
260          </plugin>
261          <!-- support sonar in multi-module project -->
262          <plugin>
263             <groupId>org.sonarsource.scanner.maven</groupId>
264             <artifactId>sonar-maven-plugin</artifactId>
265             <version>${sonar-maven-plugin.version}</version>
266          </plugin>
267       </plugins>
268    </build>
269    <issueManagement>
270       <system>JIRA</system>
271       <url>https://jira.o-ran-sc.org/</url>
272    </issueManagement>
273 </project>