fix build error for vescollector
[dcaegen2/collectors/ves.git] / pom.xml
1 <!--
2 ================================================================================
3 Copyright (c) 2017-2018 AT&T Intellectual Property. All rights reserved.
4 Copyright (c) 2018 Nokia. All rights reserved.
5 ================================================================================
6 Licensed under the Apache License, Version 2.0 (the "License");
7 you may not use this file except in compliance with the License.
8 You may obtain a copy of the License at
9
10     http://www.apache.org/licenses/LICENSE-2.0
11
12 Unless required by applicable law or agreed to in writing, software
13 distributed under the License is distributed on an "AS IS" BASIS,
14 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 See the License for the specific language governing permissions and
16 limitations under the License.
17 ============LICENSE_END=========================================================
18 -->
19
20 <project xmlns="http://maven.apache.org/POM/4.0.0"
21          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
22          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
23     <modelVersion>4.0.0</modelVersion>
24
25     <parent>
26         <groupId>org.onap.oparent</groupId>
27         <artifactId>oparent</artifactId>
28         <version>0.1.1</version>
29         <relativePath/>
30     </parent>
31
32     <groupId>org.onap.dcaegen2.collectors.ves</groupId>
33     <artifactId>VESCollector</artifactId>
34     <version>1.3.0-SNAPSHOT</version>
35
36     <name>dcaegen2-collectors-ves</name>
37     <description>VESCollector</description>
38
39     <properties>
40         <!-- PROJECT SETTINGS -->
41         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
42         <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
43         <java.version>8</java.version>
44         <docker.image.name>onap/org.onap.dcaegen2.collectors.ves.vescollector</docker.image.name>
45
46         <!-- TEST SETTINGS -->
47         <surefire.redirectTestOutputToFile>true</surefire.redirectTestOutputToFile>
48
49         <!-- PLUGIN SETTINGS -->
50         <dependency.locations.enabled>false</dependency.locations.enabled>
51
52         <!-- NEXUS RELATED SETTINGS -->
53         <nexusproxy>https://nexus.onap.org</nexusproxy>
54         <snapshots.path>content/repositories/snapshots/</snapshots.path>
55         <releases.path>content/repositories/releases/</releases.path>
56         <site.path>
57             content/sites/site/org/onap/dcaegen2/collectors/ves/${project.artifactId}/${project.version}
58         </site.path>
59         <maven.build.timestamp.format>yyyyMMdd'T'HHmmss</maven.build.timestamp.format>
60
61     </properties>
62
63     <build>
64         <pluginManagement>
65             <plugins>
66                 <plugin>
67                     <artifactId>maven-compiler-plugin</artifactId>
68                     <version>3.7.0</version>
69                 </plugin>
70                 <plugin>
71                     <artifactId>maven-source-plugin</artifactId>
72                     <version>3.0.1</version>
73                 </plugin>
74                 <plugin>
75                     <artifactId>maven-jar-plugin</artifactId>
76                     <version>3.1.0</version>
77                 </plugin>
78                 <plugin>
79                     <artifactId>maven-assembly-plugin</artifactId>
80                     <version>3.1.0</version>
81                 </plugin>
82                 <plugin>
83                     <artifactId>maven-javadoc-plugin</artifactId>
84                     <version>3.0.1</version>
85                 </plugin>
86                 <plugin>
87                     <artifactId>maven-project-info-reports-plugin</artifactId>
88                     <version>2.9</version>
89                 </plugin>
90                 <plugin>
91                     <groupId>com.spotify</groupId>
92                     <artifactId>docker-maven-plugin</artifactId>
93                     <version>1.1.1</version>
94                 </plugin>
95             </plugins>
96         </pluginManagement>
97
98         <plugins>
99             <plugin>
100                 <artifactId>maven-compiler-plugin</artifactId>
101                 <configuration>
102                     <source>${java.version}</source>
103                     <target>${java.version}</target>
104                     <showWarnings>true</showWarnings>
105                     <showDeprecation>true</showDeprecation>
106                 </configuration>
107             </plugin>
108
109             <plugin>
110                 <artifactId>maven-source-plugin</artifactId>
111                 <configuration>
112                     <excludeResources>true</excludeResources>
113                 </configuration>
114                 <executions>
115                     <execution>
116                         <id>attach-sources</id>
117                         <phase>verify</phase>
118                         <goals>
119                             <goal>jar-no-fork</goal>
120                         </goals>
121                     </execution>
122                 </executions>
123             </plugin>
124
125             <plugin>
126                 <artifactId>maven-jar-plugin</artifactId>
127                 <configuration>
128                     <archive>
129                         <manifest>
130                             <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
131                         </manifest>
132                         <manifestEntries>
133                             <Implementation-Build-Version>${project.version}</Implementation-Build-Version>
134                         </manifestEntries>
135                     </archive>
136                 </configuration>
137             </plugin>
138
139             <plugin>
140                 <artifactId>maven-assembly-plugin</artifactId>
141                 <configuration>
142                     <descriptors>
143                         <descriptor>src/assembly/dep.xml</descriptor>
144                     </descriptors>
145                     <attach>false</attach>
146                     <appendAssemblyId>false</appendAssemblyId>
147                     <updateOnly>true</updateOnly>
148                 </configuration>
149                 <executions>
150                     <execution>
151                         <id>make-assembly</id>
152                         <phase>package</phase>
153                         <goals>
154                             <goal>single</goal>
155                         </goals>
156                     </execution>
157                 </executions>
158             </plugin>
159
160             <plugin>
161                 <artifactId>maven-javadoc-plugin</artifactId>
162                 <configuration>
163                     <!-- minimize console output messages -->
164                     <quiet>true</quiet>
165                     <verbose>false</verbose>
166                     <useStandardDocletOptions>false</useStandardDocletOptions>
167                 </configuration>
168                 <executions>
169                     <execution>
170                         <id>aggregate</id>
171                         <phase>site</phase>
172                         <goals>
173                             <goal>aggregate</goal>
174                         </goals>
175                     </execution>
176                     <execution>
177                         <id>attach-javadoc</id>
178                         <goals>
179                             <goal>jar</goal>
180                         </goals>
181                     </execution>
182                 </executions>
183             </plugin>
184
185             <plugin>
186                 <groupId>com.spotify</groupId>
187                 <artifactId>docker-maven-plugin</artifactId>
188                 <configuration>
189                     <serverId>${onap.nexus.dockerregistry.daily}</serverId>
190                     <imageName>${docker.image.name}</imageName>
191                     <imageTags>
192                         <tag>latest</tag>
193                     </imageTags>
194
195                     <baseImage>openjdk:8-jre-slim</baseImage>
196                     <env>
197                         <HOSTALIASES>/etc/host.aliases</HOSTALIASES>
198                     </env>
199                     <workdir>/opt/app/VESCollector</workdir>
200                     <resources>
201                         <resource>
202                             <targetPath>.</targetPath>
203                             <directory>${project.build.directory}/${project.artifactId}-${project.version}</directory>
204                         </resource>
205                     </resources>
206                     <runs>
207                         <run>chmod +x bin/*.sh</run> <!-- Maven is loosing file permissions during artifacts copy -->
208                     </runs>
209                     <exposes>
210                         <expose>8080</expose>
211                         <expose>8443</expose>
212                     </exposes>
213                     <cmd>bin/docker-entry.sh</cmd>
214                 </configuration>
215
216                 <executions>
217                     <execution>
218                         <id>build-image</id>
219                         <phase>package</phase>
220                         <goals>
221                             <goal>build</goal>
222                         </goals>
223                     </execution>
224                     <execution>
225                         <id>tag-and-push-image-latest</id>
226                         <phase>deploy</phase>
227                         <goals>
228                             <goal>tag</goal>
229                         </goals>
230                         <configuration>
231                             <image>${docker.image.name}:latest</image>
232                             <newName>${onap.nexus.dockerregistry.daily}/${docker.image.name}:latest</newName>
233                             <pushImage>true</pushImage>
234                         </configuration>
235                     </execution>
236                     <execution>
237                         <id>tag-and-push-image-with-version</id>
238                         <phase>deploy</phase>
239                         <goals>
240                             <goal>tag</goal>
241                         </goals>
242                         <configuration>
243                             <image>${docker.image.name}:latest</image>
244                             <newName>${onap.nexus.dockerregistry.daily}/${docker.image.name}:${project.version}</newName>
245                             <pushImage>true</pushImage>
246                         </configuration>
247                     </execution>
248                     <execution>
249                         <id>tag-and-push-image-with-version-and-date</id>
250                         <phase>deploy</phase>
251                         <goals>
252                             <goal>tag</goal>
253                         </goals>
254                         <configuration>
255                             <image>${docker.image.name}:latest</image>
256                             <newName>${onap.nexus.dockerregistry.daily}/${docker.image.name}:${project.version}-${maven.build.timestamp}Z</newName>
257                             <pushImage>true</pushImage>
258                         </configuration>
259                     </execution>
260                 </executions>
261             </plugin>
262         </plugins>
263     </build>
264
265     <reporting>
266         <plugins>
267             <plugin>
268                 <artifactId>maven-project-info-reports-plugin</artifactId>
269                 <reportSets>
270                     <reportSet>
271                         <reports>
272                             <report>dependencies</report>
273                             <report>license</report>
274                         </reports>
275                     </reportSet>
276                 </reportSets>
277             </plugin>
278
279             <plugin>
280                 <artifactId>maven-javadoc-plugin</artifactId>
281                 <configuration>
282                     <failOnError>false</failOnError>
283                     <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
284                     <docletArtifact>
285                         <groupId>org.umlgraph</groupId>
286                         <artifactId>umlgraph</artifactId>
287                         <version>5.6</version>
288                     </docletArtifact>
289                     <additionalparam>-views</additionalparam>
290                     <useStandardDocletOptions>true</useStandardDocletOptions>
291                 </configuration>
292             </plugin>
293         </plugins>
294     </reporting>
295
296     <dependencies>
297         <!-- JSON RELATED -->
298         <dependency>
299             <groupId>com.googlecode.json-simple</groupId>
300             <artifactId>json-simple</artifactId>
301             <version>1.1.1</version>
302         </dependency>
303         <dependency>
304             <groupId>com.github.fge</groupId>
305             <artifactId>json-schema-validator</artifactId>
306             <version>2.2.6</version>
307         </dependency>
308         <dependency>
309             <groupId>com.github.fge</groupId>
310             <artifactId>json-schema-core</artifactId>
311             <version>1.2.5</version>
312         </dependency>
313         <dependency>
314             <groupId>com.google.code.gson</groupId>
315             <artifactId>gson</artifactId>
316             <version>2.3.1</version>
317         </dependency>
318         <dependency>
319             <groupId>org.json</groupId>
320             <artifactId>json</artifactId>
321             <version>20160810</version>
322         </dependency>
323
324         <!-- REST API RELATED -->
325         <dependency>
326             <groupId>org.apache.tomcat.embed</groupId>
327             <artifactId>tomcat-embed-core</artifactId>
328             <version>8.5.23</version>
329         </dependency>
330         <dependency>
331             <groupId>org.apache.tomcat</groupId>
332             <artifactId>tomcat-catalina</artifactId>
333             <version>8.5.23</version>
334         </dependency>
335         <dependency>
336             <groupId>org.apache.tomcat</groupId>
337             <artifactId>tomcat-coyote</artifactId>
338             <version>8.5.23</version>
339         </dependency>
340         <dependency>
341             <groupId>com.att.nsa</groupId>
342             <artifactId>nsaServerLibrary</artifactId>
343             <version>1.0.10</version>
344         </dependency>
345         <dependency>
346             <groupId>org.apache.httpcomponents</groupId>
347             <artifactId>httpclient</artifactId>
348             <version>4.5.3</version>
349         </dependency>
350         <dependency>
351             <groupId>com.fasterxml.jackson.core</groupId>
352             <artifactId>jackson-databind</artifactId>
353             <version>2.8.11</version>
354         </dependency>
355
356         <!-- LOGGING RELATED -->
357         <dependency>
358             <groupId>org.slf4j</groupId>
359             <artifactId>slf4j-log4j12</artifactId>
360             <version>1.7.21</version>
361         </dependency>
362         <dependency>
363             <groupId>log4j</groupId>
364             <artifactId>apache-log4j-extras</artifactId>
365             <version>1.2.17</version>
366         </dependency>
367
368         <!-- MISCELLANEOUS -->
369         <dependency>
370             <groupId>com.google.guava</groupId>
371             <artifactId>guava</artifactId>
372             <version>18.0</version>
373         </dependency>
374         <dependency>
375             <groupId>commons-collections</groupId>
376             <artifactId>commons-collections</artifactId>
377             <version>3.2.2</version>
378         </dependency>
379         <dependency>
380             <groupId>commons-configuration</groupId>
381             <artifactId>commons-configuration</artifactId>
382             <version>1.10</version>
383         </dependency>
384         <dependency>
385             <groupId>javax.mail</groupId>
386             <artifactId>mail</artifactId>
387             <version>1.4.7</version>
388         </dependency>
389
390         <!-- TESTING -->
391         <dependency>
392             <groupId>org.mockito</groupId>
393             <artifactId>mockito-core</artifactId>
394             <version>2.18.0</version>
395             <scope>test</scope>
396         </dependency>
397         <dependency>
398             <groupId>org.assertj</groupId>
399             <artifactId>assertj-core</artifactId>
400             <version>3.8.0</version>
401             <scope>test</scope>
402         </dependency>
403     </dependencies>
404
405     <repositories>
406         <repository>
407             <id>external-repository</id>
408             <url>https://oss.sonatype.org/content/repositories</url>
409         </repository>
410     </repositories>
411
412     <pluginRepositories>
413         <!-- Black Duck plugin dependencies -->
414         <pluginRepository>
415             <id>JCenter</id>
416             <name>JCenter Repository</name>
417             <url>http://jcenter.bintray.com</url>
418         </pluginRepository>
419         <pluginRepository>
420             <id>Restlet</id>
421             <name>Restlet Repository</name>
422             <url>http://maven.restlet.com</url>
423         </pluginRepository>
424     </pluginRepositories>
425
426 </project>