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