additional testcase
[dcaegen2/collectors/ves.git] / pom.xml
1 <!--
2 ================================================================================
3 Copyright (c) 2017-2018 AT&T Intellectual Property. All rights reserved.
4 ================================================================================
5 Licensed under the Apache License, Version 2.0 (the "License");
6 you may not use this file except in compliance with the License.
7 You may obtain a copy of the License at
8
9     http://www.apache.org/licenses/LICENSE-2.0
10
11 Unless required by applicable law or agreed to in writing, software
12 distributed under the License is distributed on an "AS IS" BASIS,
13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 See the License for the specific language governing permissions and
15 limitations under the License.
16 ============LICENSE_END=========================================================
17
18 ECOMP is a trademark and service mark of AT&T Intellectual Property.
19 -->
20 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
21         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
22
23         <modelVersion>4.0.0</modelVersion>
24         <parent>
25                 <groupId>org.onap.oparent</groupId>
26                 <artifactId>oparent</artifactId>
27                 <version>0.1.1</version>
28                 <relativePath/>
29         </parent>
30         <groupId>org.onap.dcaegen2.collectors.ves</groupId>
31         <artifactId>VESCollector</artifactId>
32         <version>1.2.0-SNAPSHOT</version>
33         <name>dcaegen2-collectors-ves</name>
34         <description>VESCollector</description>
35
36         <properties>
37                 <compiler.source.version>1.7</compiler.source.version>
38                 <compiler.target.version>1.7</compiler.target.version>
39                 <main.basedir>${project.basedir}</main.basedir>
40                 <compiler.plugin.version>3.3</compiler.plugin.version>
41                 <jar.plugin.version>2.4</jar.plugin.version>
42                 <deploy.plugin.version>2.8</deploy.plugin.version>
43                 <source.plugin.version>2.4</source.plugin.version>
44                 <javadoc.plugin.version>2.10.4</javadoc.plugin.version>
45
46                 <!--TEST SETTINGS -->
47                 <surefire.redirectTestOutputToFile>true</surefire.redirectTestOutputToFile>
48
49                 <!--PLUGIN SETTINGS -->
50
51                 <dependency.locations.enabled>false</dependency.locations.enabled>
52                 <!-- <maven.test.skip>true</maven.test.skip> -->
53
54                 <nexusproxy>https://nexus.onap.org</nexusproxy>
55                 <snapshots.path>content/repositories/snapshots/</snapshots.path>
56                 <releases.path>content/repositories/releases/</releases.path>
57                 <site.path>content/sites/site/org/onap/dcaegen2/collectors/ves/${project.artifactId}/${project.version}</site.path>
58         </properties>
59
60         <pluginRepositories>
61                 <!-- Black Duck plugin dependencies -->
62                 <pluginRepository>
63                         <id>JCenter</id>
64                         <name>JCenter Repository</name>
65                         <url>http://jcenter.bintray.com</url>
66                 </pluginRepository>
67
68                 <pluginRepository>
69                         <id>Restlet</id>
70                         <name>Restlet Repository</name>
71                         <url>http://maven.restlet.com</url>
72                 </pluginRepository>
73         </pluginRepositories>
74
75         <dependencies>
76
77                 <!-- JSON libraries -->
78                 <dependency>
79                         <groupId>com.googlecode.json-simple</groupId>
80                         <artifactId>json-simple</artifactId>
81                         <version>1.1.1</version>
82                 </dependency>
83
84                 <dependency>
85                         <groupId>com.github.fge</groupId>
86                         <artifactId>json-schema-validator</artifactId>
87                         <version>2.0.1</version>
88                 </dependency>
89
90                 <dependency>
91                         <groupId>com.google.code.gson</groupId>
92                         <artifactId>gson</artifactId>
93                         <version>2.3.1</version>
94                 </dependency>
95
96                 <!-- NSA server library -->
97                 <dependency>
98                         <groupId>com.att.nsa</groupId>
99                         <artifactId>nsaServerLibrary</artifactId>
100                         <version>1.0.10</version>
101                 </dependency>
102
103                 <!-- <dependency> <groupId>com.att.nsa</groupId> <artifactId>saToolkit</artifactId> 
104                         <version>1.1.3</version> </dependency> -->
105
106                 <dependency>
107                         <groupId>org.slf4j</groupId>
108                         <artifactId>slf4j-log4j12</artifactId>
109                         <version>1.7.21</version>
110                 </dependency>
111                 <dependency>
112                         <groupId>log4j</groupId>
113                         <artifactId>apache-log4j-extras</artifactId>
114                         <version>1.2.17</version>
115                 </dependency>
116
117
118                 <!-- https://mvnrepository.com/artifact/org.json/json -->
119                 <dependency>
120                         <groupId>org.json</groupId>
121                         <artifactId>json</artifactId>
122                         <version>20160810</version>
123                 </dependency>
124
125                 <dependency>
126                         <groupId>commons-configuration</groupId>
127                         <artifactId>commons-configuration</artifactId>
128                         <version>1.10</version>
129                 </dependency>
130
131         </dependencies>
132
133
134         <repositories>
135                 <repository>
136                         <id>external-repository</id>
137                         <url>https://oss.sonatype.org/content/repositories</url>
138                 </repository>
139         </repositories>
140
141
142         <build>
143                 <pluginManagement>
144                         <plugins>
145
146                                 <!-- COMPILER PLUGIN -->
147                                 <plugin>
148                                         <groupId>org.apache.maven.plugins</groupId>
149                                         <artifactId>maven-compiler-plugin</artifactId>
150                                         <version>${compiler.plugin.version}</version>
151                                         <configuration>
152                                                 <source>${compiler.target.version}</source>
153                                                 <target>${compiler.source.version}</target>
154                                         </configuration>
155                                 </plugin>
156
157                                 <!-- MAVEN SOURCE PLUGIN -->
158                                 <plugin>
159                                         <groupId>org.apache.maven.plugins</groupId>
160                                         <artifactId>maven-source-plugin</artifactId>
161                                         <version>${source.plugin.version}</version>
162                                         <configuration>
163                                                 <excludeResources>true</excludeResources>
164                                         </configuration>
165                                         <executions>
166                                                 <execution>
167                                                         <id>attach-sources</id>
168                                                         <phase>verify</phase>
169                                                         <goals>
170                                                                 <goal>jar-no-fork</goal>
171                                                         </goals>
172                                                 </execution>
173                                         </executions>
174                                 </plugin>
175
176                                 <!-- JAR PLUGIN -->
177                                 <plugin>
178                                         <groupId>org.apache.maven.plugins</groupId>
179                                         <artifactId>maven-jar-plugin</artifactId>
180                                         <version>${jar.plugin.version}</version>
181                                         <configuration>
182                                                 <archive>
183                                                         <manifest>
184                                                                 <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
185                                                         </manifest>
186                                                         <manifestEntries>
187                                                                 <Implementation-Build-Version>${project.version}</Implementation-Build-Version>
188                                                         </manifestEntries>
189                                                 </archive>
190                                         </configuration>
191                                 </plugin>
192
193                                 <plugin>
194                                         <artifactId>maven-assembly-plugin</artifactId>
195                                         <version>2.4.1</version>
196                                         <configuration>
197                                                 <descriptors>
198                                                         <descriptor>src/assembly/dep.xml</descriptor>
199                                                 </descriptors>
200                                         </configuration>
201
202                                         <executions>
203                                                 <execution>
204                                                         <id>make-assembly</id> <!-- this is used for inheritance merges -->
205                                                         <phase>package</phase> <!-- bind to the packaging phase -->
206                                                         <goals>
207                                                                 <goal>single</goal>
208                                                         </goals>
209                                                 </execution>
210                                         </executions>
211                                 </plugin>
212
213                                 <!-- MAVEN JAVADOC PLUGIN -->
214                                 <plugin>
215                                         <groupId>org.apache.maven.plugins</groupId>
216                                         <artifactId>maven-javadoc-plugin</artifactId>
217                                         <version>${javadoc.plugin.version}</version>
218                                         <configuration>
219                                                 <!-- minimize console output messages -->
220                                                 <quiet>true</quiet>
221                                                 <verbose>false</verbose>
222                                                 <useStandardDocletOptions>false</useStandardDocletOptions>
223                                         </configuration>
224                                         <executions>
225                                                 <execution>
226                                                         <id>aggregate</id>
227                                                         <phase>site</phase>
228                                                         <goals>
229                                                                 <goal>aggregate</goal>
230                                                         </goals>
231                                                 </execution>
232                                                 <execution>
233                                                         <id>attach-javadoc</id>
234                                                         <goals>
235                                                                 <goal>jar</goal>
236                                                         </goals>
237                                                 </execution>
238                                         </executions>
239                                 </plugin>
240
241                                 <plugin>
242                                         <groupId>org.codehaus.mojo</groupId>
243                                         <artifactId>exec-maven-plugin</artifactId>
244                                         <version>1.2.1</version>
245                                         <configuration>
246                                                 <executable>${session.executionRootDirectory}/mvn-phase-script.sh</executable>
247                                                 <environmentVariables>
248                                                         <!-- make mvn properties as env for our script -->
249                                                         <MVN_PROJECT_GROUPID>${project.groupId}</MVN_PROJECT_GROUPID>
250                                                         <MVN_PROJECT_ARTIFACTID>${project.artifactId}</MVN_PROJECT_ARTIFACTID>
251                                                         <MVN_PROJECT_VERSION>${project.version}</MVN_PROJECT_VERSION>
252                                                         <MVN_NEXUSPROXY>${onap.nexus.url}</MVN_NEXUSPROXY>
253                                                         <MVN_RAWREPO_BASEURL_UPLOAD>${onap.nexus.rawrepo.baseurl.upload}</MVN_RAWREPO_BASEURL_UPLOAD>
254                                                         <MVN_RAWREPO_BASEURL_DOWNLOAD>${onap.nexus.rawrepo.baseurl.download}</MVN_RAWREPO_BASEURL_DOWNLOAD>
255                                                         <MVN_RAWREPO_SERVERID>${onap.nexus.rawrepo.serverid}</MVN_RAWREPO_SERVERID>
256                                                         <MVN_DOCKERREGISTRY_DAILY>${onap.nexus.dockerregistry.daily}</MVN_DOCKERREGISTRY_DAILY>
257                                                         <MVN_DOCKERREGISTRY_RELEASE>${onap.nexus.dockerregistry.release}</MVN_DOCKERREGISTRY_RELEASE>
258                                                 </environmentVariables>
259                                         </configuration>
260                                 </plugin>
261
262                         </plugins>
263                 </pluginManagement>
264                 <plugins>
265
266                         <plugin>
267                                 <groupId>org.apache.maven.plugins</groupId>
268                                 <artifactId>maven-compiler-plugin</artifactId>
269                         </plugin>
270
271                         <plugin>
272                                 <groupId>org.apache.maven.plugins</groupId>
273                                 <artifactId>maven-jar-plugin</artifactId>
274                         </plugin>
275
276                 
277                         <plugin>
278                                 <groupId>org.apache.maven.plugins</groupId>
279                                 <artifactId>maven-source-plugin</artifactId>
280                         </plugin>
281
282                         <plugin>
283                                 <groupId>org.apache.maven.plugins</groupId>
284                                 <artifactId>maven-javadoc-plugin</artifactId>
285                         </plugin>
286
287                         <plugin>
288                                 <artifactId>maven-assembly-plugin</artifactId>
289                         </plugin>
290
291
292                         <plugin>
293                                 <groupId>org.codehaus.mojo</groupId>
294                                 <artifactId>exec-maven-plugin</artifactId>
295                                 <version>1.2.1</version>
296                                 <executions>
297                                         <execution>
298                                                 <id>deploy script</id>
299                                                 <phase>deploy</phase>
300                                                 <goals>
301                                                         <goal>exec</goal>
302                                                 </goals>
303                                                 <configuration>
304                                                         <arguments>
305                                                                 <argument>__</argument>
306                                                                 <argument>deploy</argument>
307                                                         </arguments>
308                                                 </configuration>
309                                         </execution>
310                                         <execution>
311                                                 <id>install script</id>
312                                                 <phase>install</phase>
313                                                 <goals>
314                                                         <goal>exec</goal>
315                                                 </goals>
316                                                 <configuration>
317                                                         <arguments>
318                                                                 <argument>__</argument>
319                                                                 <argument>install</argument>
320                                                         </arguments>
321                                                 </configuration>
322                                         </execution>
323                                 </executions>
324                         </plugin>
325
326                 </plugins>
327
328         </build>
329
330         <reporting>
331                 <plugins>
332                         <plugin>
333                                 <groupId>org.apache.maven.plugins</groupId>
334                                 <artifactId>maven-project-info-reports-plugin</artifactId>
335                                 <version>2.6</version>
336                                 <reportSets>
337                                         <reportSet>
338                                                 <reports>
339                                                         <report>dependencies</report>
340                                                         <report>license</report>
341                                                 </reports>
342                                         </reportSet>
343                                 </reportSets>
344
345                         </plugin>
346                         <plugin>
347                                 <groupId>org.apache.maven.plugins</groupId>
348                                 <artifactId>maven-javadoc-plugin</artifactId>
349                                 <version>2.10.4</version>
350                                 <configuration>
351                                         <failOnError>false</failOnError>
352                                         <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
353                                         <docletArtifact>
354                                                 <groupId>org.umlgraph</groupId>
355                                                 <artifactId>umlgraph</artifactId>
356                                                 <version>5.6</version>
357                                         </docletArtifact>
358                                         <additionalparam>-views</additionalparam>
359                                         <useStandardDocletOptions>true</useStandardDocletOptions>
360                                 </configuration>
361                         </plugin>
362
363                 </plugins>
364         </reporting>
365
366
367 </project>
368