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