adding the SNAPSHOT in pom
[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>${project.version}</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>${project.version}</version>\r
121       </dependency>\r
122       <dependency>\r
123          <groupId>org.commscope.tr069adapter.mapper</groupId>\r
124          <artifactId>mapper</artifactId>\r
125          <version>${project.version}</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             <groupId>org.jacoco</groupId>\r
180             <artifactId>jacoco-maven-plugin</artifactId>\r
181             <executions>\r
182                <execution>\r
183                   <goals>\r
184                      <goal>prepare-agent</goal>\r
185                   </goals>\r
186                </execution>\r
187                <!-- attached to Maven test phase -->\r
188                <execution>\r
189                   <id>report</id>\r
190                   <phase>test</phase>\r
191                   <goals>\r
192                      <goal>report</goal>\r
193                   </goals>\r
194                </execution>\r
195             </executions>\r
196          </plugin>\r
197          <plugin>\r
198             <artifactId>maven-failsafe-plugin</artifactId>\r
199          </plugin>\r
200          <plugin>\r
201             <groupId>io.fabric8</groupId>\r
202             <artifactId>docker-maven-plugin</artifactId>\r
203             <version>${docker-maven-plugin}</version>\r
204             <inherited>false</inherited>\r
205             <executions>\r
206                <execution>\r
207                   <id>generate-policy-agent-image</id>\r
208                   <phase>package</phase>\r
209                   <goals>\r
210                      <goal>build</goal>\r
211                      <goal>save</goal>\r
212                   </goals>\r
213                   <configuration>\r
214                      <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>\r
215                      <images>\r
216                         <image>\r
217                            <name>${docker.image.name}:${build.version}</name>\r
218                            <build>\r
219                               <cleanup>try</cleanup>\r
220                               <contextDir>${basedir}</contextDir>\r
221                               <dockerFile>Dockerfile</dockerFile>\r
222                               <args>\r
223                                  <JAR>${project.build.finalName}.jar</JAR>\r
224                               </args>\r
225                               <tags>\r
226                                  <tag>${project.version}</tag>\r
227                               </tags>\r
228                            </build>\r
229                         </image>\r
230                      </images>\r
231                   </configuration>\r
232                </execution>\r
233                <execution>\r
234                   <id>push-policy-agent-image</id>\r
235                   <goals>\r
236                      <goal>build</goal>\r
237                      <goal>push</goal>\r
238                   </goals>\r
239                   <configuration>\r
240                      <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>\r
241                      <pushRegistry>${env.CONTAINER_PUSH_REGISTRY}</pushRegistry>\r
242                      <images>\r
243                         <image>\r
244                            <name>${docker.image.name}:${project.version}</name>\r
245                            <build>\r
246                               <contextDir>${basedir}</contextDir>\r
247                               <dockerFile>Dockerfile</dockerFile>\r
248                               <args>\r
249                                  <JAR>${project.build.finalName}.jar</JAR>\r
250                               </args>\r
251                               <tags>\r
252                                  <tag>latest</tag>\r
253                               </tags>\r
254                            </build>\r
255                         </image>\r
256                      </images>\r
257                   </configuration>\r
258                </execution>\r
259             </executions>\r
260          </plugin>\r
261          <!-- support sonar in multi-module project -->\r
262          <plugin>\r
263             <groupId>org.sonarsource.scanner.maven</groupId>\r
264             <artifactId>sonar-maven-plugin</artifactId>\r
265             <version>${sonar-maven-plugin.version}</version>\r
266          </plugin>\r
267       </plugins>\r
268    </build>\r
269    <issueManagement>\r
270       <system>JIRA</system>\r
271       <url>https://jira.o-ran-sc.org/</url>\r
272    </issueManagement>\r
273 </project>\r