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