Initial source code
[oam/tr069-adapter.git] / mapper / pom.xml
1 <!--\r
2 /*\r
3  * ============LICENSE_START========================================================================\r
4  * ONAP : 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>1.0.0</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>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>1.0.0</version>\r
80       </dependency>\r
81       <dependency>\r
82          <groupId>commons-io</groupId>\r
83          <artifactId>commons-io</artifactId>\r
84          <version>2.6</version>\r
85       </dependency>\r
86       <dependency>\r
87          <groupId>junit</groupId>\r
88          <artifactId>junit</artifactId>\r
89          <scope>test</scope>\r
90       </dependency>\r
91       <dependency>\r
92          <groupId>junit</groupId>\r
93          <artifactId>junit-dep</artifactId>\r
94          <version>4.11</version>\r
95          <scope>test</scope>\r
96       </dependency>\r
97       <dependency>\r
98          <groupId>org.springframework.boot</groupId>\r
99          <artifactId>spring-boot-starter-test</artifactId>\r
100          <scope>test</scope>\r
101       </dependency>\r
102    </dependencies>\r
103    <build>\r
104       <plugins>\r
105          <plugin>\r
106             <groupId>org.apache.maven.plugins</groupId>\r
107             <artifactId>maven-jar-plugin</artifactId>\r
108             <executions>\r
109                <execution>\r
110                   <id>mapper-client</id>\r
111                   <goals>\r
112                      <goal>jar</goal>\r
113                   </goals>\r
114                   <configuration>\r
115                      <finalName>mapper-client</finalName>\r
116                      <classifier>lib</classifier>\r
117                      <includes>\r
118                         <include>org/commscope/tr069adapter/mapper/model/*</include>\r
119                      </includes>\r
120                   </configuration>\r
121                </execution>\r
122             </executions>\r
123          </plugin>\r
124          <plugin>\r
125             <groupId>org.springframework.boot</groupId>\r
126             <artifactId>spring-boot-maven-plugin</artifactId>\r
127          </plugin>\r
128          <plugin>\r
129             <groupId>net.revelc.code.formatter</groupId>\r
130             <artifactId>formatter-maven-plugin</artifactId>\r
131             <version>${formatter-maven-plugin.version}</version>\r
132             <configuration>\r
133                <configFile>${project.parent.basedir}/eclipse-formatter.xml</configFile>\r
134             </configuration>\r
135             <!-- https://code.revelc.net/formatter-maven-plugin/ use mvn formatter:format \r
136                                 spotless:apply process-sources -->\r
137          </plugin>\r
138          <plugin>\r
139             <groupId>com.diffplug.spotless</groupId>\r
140             <artifactId>spotless-maven-plugin</artifactId>\r
141             <version>${spotless-maven-plugin.version}</version>\r
142             <configuration>\r
143                <java>\r
144                   <removeUnusedImports />\r
145                   <importOrder>\r
146                      <order>com,java,javax,org</order>\r
147                   </importOrder>\r
148                </java>\r
149             </configuration>\r
150             <!-- https://github.com/diffplug/spotless/tree/master/plugin-maven use \r
151                                 mvn spotless:apply to rewrite source files use mvn spotless:check to validate \r
152                                 source files -->\r
153          </plugin>\r
154          <plugin>\r
155             <groupId>org.apache.maven.plugins</groupId>\r
156             <artifactId>maven-surefire-plugin</artifactId>\r
157             <version>2.17</version>\r
158             <configuration>\r
159                <skipTests>false</skipTests>\r
160             </configuration>\r
161          </plugin>\r
162          <plugin>\r
163             <artifactId>maven-failsafe-plugin</artifactId>\r
164          </plugin>\r
165          <plugin>\r
166             <groupId>io.fabric8</groupId>\r
167             <artifactId>docker-maven-plugin</artifactId>\r
168             <version>${docker-maven-plugin}</version>\r
169             <inherited>false</inherited>\r
170             <executions>\r
171                <execution>\r
172                   <id>generate-policy-agent-image</id>\r
173                   <phase>package</phase>\r
174                   <goals>\r
175                      <goal>build</goal>\r
176                      <goal>save</goal>\r
177                   </goals>\r
178                   <configuration>\r
179                      <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>\r
180                      <images>\r
181                         <image>\r
182                            <name>${docker.image.name}</name>\r
183                            <build>\r
184                               <cleanup>try</cleanup>\r
185                               <contextDir>${basedir}</contextDir>\r
186                               <dockerFile>Dockerfile</dockerFile>\r
187                               <args>\r
188                                  <JAR>${project.build.finalName}.jar</JAR>\r
189                               </args>\r
190                               <tags>\r
191                                  <tag>${project.version}</tag>\r
192                               </tags>\r
193                            </build>\r
194                         </image>\r
195                      </images>\r
196                   </configuration>\r
197                </execution>\r
198                <execution>\r
199                   <id>push-policy-agent-image</id>\r
200                   <goals>\r
201                      <goal>build</goal>\r
202                      <goal>push</goal>\r
203                   </goals>\r
204                   <configuration>\r
205                      <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>\r
206                      <pushRegistry>${env.CONTAINER_PUSH_REGISTRY}</pushRegistry>\r
207                      <images>\r
208                         <image>\r
209                            <name>${docker.image.name}:${project.version}</name>\r
210                            <build>\r
211                               <contextDir>${basedir}</contextDir>\r
212                               <dockerFile>Dockerfile</dockerFile>\r
213                               <args>\r
214                                  <JAR>${project.build.finalName}.jar</JAR>\r
215                               </args>\r
216                               <tags>\r
217                                  <tag>latest</tag>\r
218                               </tags>\r
219                            </build>\r
220                         </image>\r
221                      </images>\r
222                   </configuration>\r
223                </execution>\r
224             </executions>\r
225          </plugin>\r
226          <!-- support sonar in multi-module project -->\r
227          <plugin>\r
228             <groupId>org.sonarsource.scanner.maven</groupId>\r
229             <artifactId>sonar-maven-plugin</artifactId>\r
230             <version>${sonar-maven-plugin.version}</version>\r
231          </plugin>\r
232       </plugins>\r
233    </build>\r
234    <issueManagement>\r
235       <system>JIRA</system>\r
236       <url>https://jira.o-ran-sc.org/</url>\r
237    </issueManagement>\r
238 </project>