SPV is failing if Admin state
[oam/tr069-adapter.git] / mapper / pom.xml
1 <!--
2 /*
3  * ============LICENSE_START========================================================================
4  * O-RAN-SC : tr-069-adapter
5  * =================================================================================================
6  * Copyright (C) 2020 CommScope Inc Intellectual Property.
7  * =================================================================================================
8  * This tr-069-adapter software file is distributed by CommScope Inc
9  * under the Apache License, Version 2.0 (the "License");
10  * you may not use this file except in compliance with the License.
11  * You may obtain a copy of the License at
12  *
13  * http://www.apache.org/licenses/LICENSE-2.0
14  *
15  * This file is distributed on an "AS IS" BASIS,
16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17  * See the License for the specific language governing permissions and
18  * limitations under the License.
19  * ===============LICENSE_END=======================================================================
20 */
21 -->
22 <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">
23    <parent>
24       <groupId>org.commscope.tr069adapter</groupId>
25       <artifactId>tr069adapter</artifactId>
26       <version>1.0.0</version>
27    </parent>
28    <modelVersion>4.0.0</modelVersion>
29    <groupId>org.commscope.tr069adapter.mapper</groupId>
30    <artifactId>mapper</artifactId>
31    <name>TR069_Mapper</name>
32    <licenses>
33       <license>
34          <name>The Apache Software License, Version 2.0</name>
35          <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
36       </license>
37    </licenses>
38    <repositories>
39       <repository>
40          <id>onap-releases</id>
41          <name>onap-releases</name>
42          <url>https://nexus.onap.org/content/repositories/releases/</url>
43       </repository>
44    </repositories>
45    <properties>
46       <docker.image.name>o-ran-sc/tr069adapter-netconfig-mapper</docker.image.name>
47    </properties>
48    <dependencies>
49       <dependency>
50          <groupId>org.springframework.boot</groupId>
51          <artifactId>spring-boot-starter-web</artifactId>
52          <exclusions>
53             <exclusion>
54                <groupId>org.springframework.boot</groupId>
55                <artifactId>spring-boot-starter-logging</artifactId>
56             </exclusion>
57          </exclusions>
58       </dependency>
59       <dependency>
60          <groupId>org.springframework.boot</groupId>
61          <artifactId>spring-boot-starter-log4j2</artifactId>
62       </dependency>
63       <dependency>
64          <groupId>com.lmax</groupId>
65          <artifactId>disruptor</artifactId>
66          <version>3.4.2</version>
67       </dependency>
68       <dependency>
69          <groupId>org.springframework.boot</groupId>
70          <artifactId>spring-boot-starter-activemq</artifactId>
71       </dependency>
72       <dependency>
73          <groupId>com.fasterxml.jackson.core</groupId>
74          <artifactId>jackson-databind</artifactId>
75       </dependency>
76       <dependency>
77          <groupId>org.commscope.tr069adapter.acs.common</groupId>
78          <artifactId>acs-common</artifactId>
79          <version>1.0.0</version>
80       </dependency>
81       <dependency>
82                 <groupId>org.mariadb.jdbc</groupId>
83                 <artifactId>mariadb-java-client</artifactId>
84         </dependency>
85         <dependency>
86                         <groupId>org.springframework.boot</groupId>
87                         <artifactId>spring-boot-starter-data-jpa</artifactId>
88                 </dependency>
89       <dependency>
90          <groupId>commons-io</groupId>
91          <artifactId>commons-io</artifactId>
92          <version>2.6</version>
93       </dependency>
94       <dependency>
95          <groupId>junit</groupId>
96          <artifactId>junit</artifactId>
97          <scope>test</scope>
98       </dependency>
99       <dependency>
100          <groupId>junit</groupId>
101          <artifactId>junit-dep</artifactId>
102          <version>4.11</version>
103          <scope>test</scope>
104       </dependency>
105       <dependency>
106          <groupId>org.springframework.boot</groupId>
107          <artifactId>spring-boot-starter-test</artifactId>
108          <scope>test</scope>
109       </dependency>
110       <dependency>
111          <groupId>com.h2database</groupId>
112          <artifactId>h2</artifactId>
113          <scope>test</scope>
114       </dependency>
115    </dependencies>
116    <build>
117       <plugins>
118          <plugin>
119             <groupId>org.apache.maven.plugins</groupId>
120             <artifactId>maven-jar-plugin</artifactId>
121             <executions>
122                <execution>
123                   <id>mapper-client</id>
124                   <goals>
125                      <goal>jar</goal>
126                   </goals>
127                   <configuration>
128                      <finalName>mapper-client</finalName>
129                      <classifier>lib</classifier>
130                      <includes>
131                         <include>org/commscope/tr069adapter/mapper/model/*</include>
132                      </includes>
133                   </configuration>
134                </execution>
135             </executions>
136          </plugin>
137                  <plugin>
138             <groupId>org.apache.maven.plugins</groupId>
139             <artifactId>maven-jar-plugin</artifactId>
140             <executions>
141                <execution>
142                   <id>mapper-jar</id>
143                   <goals>
144                      <goal>jar</goal>
145                   </goals>
146                   <configuration>
147                      <finalName>mapper-jar</finalName>
148                      <classifier>lib</classifier>
149                   </configuration>
150                </execution>
151             </executions>
152          </plugin>
153          <plugin>
154             <groupId>org.springframework.boot</groupId>
155             <artifactId>spring-boot-maven-plugin</artifactId>
156          </plugin>
157          <plugin>
158             <groupId>net.revelc.code.formatter</groupId>
159             <artifactId>formatter-maven-plugin</artifactId>
160             <version>${formatter-maven-plugin.version}</version>
161             <configuration>
162                <configFile>${project.parent.basedir}/eclipse-formatter.xml</configFile>
163             </configuration>
164             <!-- https://code.revelc.net/formatter-maven-plugin/ use mvn formatter:format 
165                                         spotless:apply process-sources -->
166          </plugin>
167          <plugin>
168             <groupId>com.diffplug.spotless</groupId>
169             <artifactId>spotless-maven-plugin</artifactId>
170             <version>${spotless-maven-plugin.version}</version>
171             <configuration>
172                <java>
173                   <removeUnusedImports />
174                   <importOrder>
175                      <order>com,java,javax,org</order>
176                   </importOrder>
177                </java>
178             </configuration>
179             <!-- https://github.com/diffplug/spotless/tree/master/plugin-maven use 
180                                         mvn spotless:apply to rewrite source files use mvn spotless:check to validate 
181                                         source files -->
182          </plugin>
183          <plugin>
184             <groupId>org.apache.maven.plugins</groupId>
185             <artifactId>maven-surefire-plugin</artifactId>
186             <version>2.17</version>
187             <configuration>
188                <skipTests>false</skipTests>
189             </configuration>
190          </plugin>
191          <plugin>
192             <artifactId>maven-failsafe-plugin</artifactId>
193          </plugin>
194          <plugin>
195             <groupId>io.fabric8</groupId>
196             <artifactId>docker-maven-plugin</artifactId>
197             <version>${docker-maven-plugin}</version>
198             <inherited>false</inherited>
199             <executions>
200                <execution>
201                   <id>generate-policy-agent-image</id>
202                   <phase>package</phase>
203                   <goals>
204                      <goal>build</goal>
205                      <goal>save</goal>
206                   </goals>
207                   <configuration>
208                      <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>
209                      <images>
210                         <image>
211                            <name>${docker.image.name}:${build.version}</name>
212                            <build>
213                               <cleanup>try</cleanup>
214                               <contextDir>${basedir}</contextDir>
215                               <dockerFile>Dockerfile</dockerFile>
216                               <args>
217                                  <JAR>${project.build.finalName}.jar</JAR>
218                               </args>
219                               <tags>
220                                  <tag>${project.version}</tag>
221                               </tags>
222                            </build>
223                         </image>
224                      </images>
225                   </configuration>
226                </execution>
227                <execution>
228                   <id>push-policy-agent-image</id>
229                   <goals>
230                      <goal>build</goal>
231                      <goal>push</goal>
232                   </goals>
233                   <configuration>
234                      <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>
235                      <pushRegistry>${env.CONTAINER_PUSH_REGISTRY}</pushRegistry>
236                      <images>
237                         <image>
238                            <name>${docker.image.name}:${project.version}</name>
239                            <build>
240                               <contextDir>${basedir}</contextDir>
241                               <dockerFile>Dockerfile</dockerFile>
242                               <args>
243                                  <JAR>${project.build.finalName}.jar</JAR>
244                               </args>
245                               <tags>
246                                  <tag>latest</tag>
247                               </tags>
248                            </build>
249                         </image>
250                      </images>
251                   </configuration>
252                </execution>
253             </executions>
254          </plugin>
255          <!-- support sonar in multi-module project -->
256          <plugin>
257             <groupId>org.sonarsource.scanner.maven</groupId>
258             <artifactId>sonar-maven-plugin</artifactId>
259             <version>${sonar-maven-plugin.version}</version>
260          </plugin>
261       </plugins>
262    </build>
263    <issueManagement>
264       <system>JIRA</system>
265       <url>https://jira.o-ran-sc.org/</url>
266    </issueManagement>
267 </project>