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