Docker Compose file checkin for tr069-adapter
[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.springframework.boot</groupId>
139             <artifactId>spring-boot-maven-plugin</artifactId>
140          </plugin>
141          <plugin>
142             <groupId>net.revelc.code.formatter</groupId>
143             <artifactId>formatter-maven-plugin</artifactId>
144             <version>${formatter-maven-plugin.version}</version>
145             <configuration>
146                <configFile>${project.parent.basedir}/eclipse-formatter.xml</configFile>
147             </configuration>
148             <!-- https://code.revelc.net/formatter-maven-plugin/ use mvn formatter:format 
149                                         spotless:apply process-sources -->
150          </plugin>
151          <plugin>
152             <groupId>com.diffplug.spotless</groupId>
153             <artifactId>spotless-maven-plugin</artifactId>
154             <version>${spotless-maven-plugin.version}</version>
155             <configuration>
156                <java>
157                   <removeUnusedImports />
158                   <importOrder>
159                      <order>com,java,javax,org</order>
160                   </importOrder>
161                </java>
162             </configuration>
163             <!-- https://github.com/diffplug/spotless/tree/master/plugin-maven use 
164                                         mvn spotless:apply to rewrite source files use mvn spotless:check to validate 
165                                         source files -->
166          </plugin>
167          <plugin>
168             <groupId>org.apache.maven.plugins</groupId>
169             <artifactId>maven-surefire-plugin</artifactId>
170             <version>2.17</version>
171             <configuration>
172                <skipTests>false</skipTests>
173             </configuration>
174          </plugin>
175          <plugin>
176             <artifactId>maven-failsafe-plugin</artifactId>
177          </plugin>
178          <plugin>
179             <groupId>io.fabric8</groupId>
180             <artifactId>docker-maven-plugin</artifactId>
181             <version>${docker-maven-plugin}</version>
182             <inherited>false</inherited>
183             <executions>
184                <execution>
185                   <id>generate-policy-agent-image</id>
186                   <phase>package</phase>
187                   <goals>
188                      <goal>build</goal>
189                      <goal>save</goal>
190                   </goals>
191                   <configuration>
192                      <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>
193                      <images>
194                         <image>
195                            <name>${docker.image.name}:${build.version}</name>
196                            <build>
197                               <cleanup>try</cleanup>
198                               <contextDir>${basedir}</contextDir>
199                               <dockerFile>Dockerfile</dockerFile>
200                               <args>
201                                  <JAR>${project.build.finalName}.jar</JAR>
202                               </args>
203                               <tags>
204                                  <tag>${project.version}</tag>
205                               </tags>
206                            </build>
207                         </image>
208                      </images>
209                   </configuration>
210                </execution>
211                <execution>
212                   <id>push-policy-agent-image</id>
213                   <goals>
214                      <goal>build</goal>
215                      <goal>push</goal>
216                   </goals>
217                   <configuration>
218                      <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>
219                      <pushRegistry>${env.CONTAINER_PUSH_REGISTRY}</pushRegistry>
220                      <images>
221                         <image>
222                            <name>${docker.image.name}:${project.version}</name>
223                            <build>
224                               <contextDir>${basedir}</contextDir>
225                               <dockerFile>Dockerfile</dockerFile>
226                               <args>
227                                  <JAR>${project.build.finalName}.jar</JAR>
228                               </args>
229                               <tags>
230                                  <tag>latest</tag>
231                               </tags>
232                            </build>
233                         </image>
234                      </images>
235                   </configuration>
236                </execution>
237             </executions>
238          </plugin>
239          <!-- support sonar in multi-module project -->
240          <plugin>
241             <groupId>org.sonarsource.scanner.maven</groupId>
242             <artifactId>sonar-maven-plugin</artifactId>
243             <version>${sonar-maven-plugin.version}</version>
244          </plugin>
245       </plugins>
246    </build>
247    <issueManagement>
248       <system>JIRA</system>
249       <url>https://jira.o-ran-sc.org/</url>
250    </issueManagement>
251 </project>