Remove dependency on org.powermock (PowerMockito)
[aai/model-loader.git] / pom.xml
1 <!--
2   ============LICENSE_START==========================================
3   org.onap.aai
4   ===================================================================
5   Copyright © 2017-2018 AT&T Intellectual Property. All rights reserved.
6   Copyright © 2017-2018 Amdocs
7   ===================================================================
8   Licensed under the Apache License, Version 2.0 (the "License");
9   you may not use this file except in compliance with the License.
10   You may obtain a copy of the License at
11
12          http://www.apache.org/licenses/LICENSE-2.0
13
14   Unless required by applicable law or agreed to in writing, software
15   distributed under the License is distributed on an "AS IS" BASIS,
16   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17   See the License for the specific language governing permissions and
18   limitations under the License.
19   ============LICENSE_END============================================
20   -->
21
22 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
23         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
24         <modelVersion>4.0.0</modelVersion>
25
26         <parent>
27                 <artifactId>ajsc-archetype-parent</artifactId>
28                 <groupId>com.att.ajsc</groupId>
29                 <version>2.0.0</version>
30         </parent>
31
32         <groupId>org.onap.aai.model-loader</groupId>
33         <artifactId>model-loader</artifactId>
34         <version>1.2.0-SNAPSHOT</version>
35
36         <properties>
37                 <docker.location>${basedir}/target</docker.location>
38                 <module.ajsc.namespace.name>model-loader</module.ajsc.namespace.name>
39                 <module.ajsc.namespace.version>v1</module.ajsc.namespace.version>
40                 <ajscRuntimeVersion>2.0.0</ajscRuntimeVersion>
41                 <absoluteDistFilesRoot>/appl/${project.artifactId}</absoluteDistFilesRoot>
42                 <distFilesRoot>/appl/${project.artifactId}/${project.version}</distFilesRoot>
43                 <runAjscHome>${basedir}/target/swm/package/nix/dist_files${distFilesRoot}</runAjscHome>
44
45         <javax.ws.rs-api.version>2.0.1</javax.ws.rs-api.version>
46                 <apache.lang3.version>3.6</apache.lang3.version>
47                 <apache.commons-text.version>1.1</apache.commons-text.version>
48                 <commons-compress.version>1.14</commons-compress.version>
49                 <fasterxml.version>2.8.1</fasterxml.version>
50                 <mockito.version>1.10.19</mockito.version>
51                 <jsr311-api.version>1.1.1</jsr311-api.version>
52                 <jersey-client.version>1.18</jersey-client.version>
53                 <gson.version>2.7</gson.version>
54                 <hamcrest-all.version>1.3</hamcrest-all.version>
55         <version.jacoco.maven.plugin>0.7.9</version.jacoco.maven.plugin>
56             
57                 <!-- Port Selection. A value of 0 will allow for dynamic port selection. 
58                         For local testing, you may choose to hardcode this value to something like 
59                         8080 -->
60                 <serverPort>9500</serverPort>
61                 <sslport>0</sslport>
62
63
64                 <!-- For SOA Cloud Installation -->
65                 <installOwnerUser>aaiadmin</installOwnerUser>
66                 <installOwnerGroup>aaiadmin</installOwnerGroup>
67                 <ownerManagementGroup>org.openecomp.aai.dev</ownerManagementGroup>
68
69                 <testRouteOffer>workstation</testRouteOffer>
70                 <testEnv>DEV</testEnv>
71
72                 <dependency.scope>provided</dependency.scope>
73                 <checkstyle.config.location>google_checks.xml</checkstyle.config.location>
74                 <maven.compiler.source>1.8</maven.compiler.source>
75                 <maven.compiler.target>1.8</maven.compiler.target>
76                 <sonar.language>java</sonar.language>
77                 <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
78                 <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
79                 <sonar.jacoco.reportPath>${project.build.directory}/coverage-reports/jacoco.exec</sonar.jacoco.reportPath>
80                 <sonar.jacoco.reportMissing.force.zero>false</sonar.jacoco.reportMissing.force.zero>
81                 <sonar.projectVersion>${project.version}</sonar.projectVersion>
82                 <nexusproxy>https://nexus.onap.org</nexusproxy>
83                 <babel.version>1.2.0-SNAPSHOT</babel.version>
84                 <aai.rest.client.version>1.2.1</aai.rest.client.version>
85         </properties>
86
87         <distributionManagement>
88                 <repository>
89                         <id>ecomp-releases</id>
90                         <name>ECOMP Release Repository</name>
91                         <url>${nexusproxy}/content/repositories/releases/</url>
92                 </repository>
93                 <snapshotRepository>
94                         <id>ecomp-snapshots</id>
95                         <name>ECOMP Snapshot Repository</name>
96                         <url>${nexusproxy}/content/repositories/snapshots/</url>
97                 </snapshotRepository>
98         </distributionManagement>
99         
100         <dependencies>
101                 <dependency>
102                         <groupId>org.onap.aai</groupId>
103                         <artifactId>babel</artifactId>
104                         <version>${babel.version}</version>
105                         <classifier>client</classifier>
106                         <exclusions>
107                                 <exclusion>
108                                         <groupId>*</groupId>
109                                         <artifactId>*</artifactId>
110                                 </exclusion>
111                         </exclusions>
112                 </dependency>
113                 <dependency>
114                         <groupId>javax.ws.rs</groupId>
115                         <artifactId>javax.ws.rs-api</artifactId>
116                         <version>${javax.ws.rs-api.version}</version>
117                 </dependency>
118                 <dependency>
119                         <groupId>javax.ws.rs</groupId>
120                         <artifactId>jsr311-api</artifactId>
121                         <version>${jsr311-api.version}</version>
122                 </dependency>
123                 <!-- https://mvnrepository.com/artifact/com.sun.jersey/jersey-bundle -->
124                 <dependency>
125                         <groupId>com.sun.jersey</groupId>
126                         <artifactId>jersey-client</artifactId>
127                         <version>${jersey-client.version}</version>
128                 </dependency>
129                 <dependency>
130                         <groupId>org.onap.aai</groupId>
131                         <artifactId>rest-client</artifactId>
132                         <version>${aai.rest.client.version}</version>
133                 </dependency>
134                 <dependency>
135                         <groupId>com.google.code.gson</groupId>
136                         <artifactId>gson</artifactId>
137                         <version>${gson.version}</version>
138                 </dependency>
139
140                 <!-- Test dependencies -->
141                 <dependency>
142                         <groupId>org.hamcrest</groupId>
143                         <artifactId>hamcrest-all</artifactId>
144                         <version>${hamcrest-all.version}</version>
145                         <scope>test</scope>
146                 </dependency>
147                 <dependency>
148                         <groupId>org.mockito</groupId>
149                         <artifactId>mockito-core</artifactId>
150                         <version>${mockito.version}</version>
151                         <scope>test</scope>
152                 </dependency>
153                 <dependency>
154                         <groupId>org.javassist</groupId>
155                         <artifactId>javassist</artifactId>
156                         <version>3.19.0-GA</version>
157                 </dependency>
158                 <dependency>
159                         <groupId>com.fasterxml.jackson.core</groupId>
160                         <artifactId>jackson-core</artifactId>
161                         <version>${fasterxml.version}</version><!--$NO-MVN-MAN-VER$ -->
162                 </dependency>
163
164                 <!-- xjc dependencies -->
165                 <dependency>
166                         <groupId>javax.xml.bind</groupId>
167                         <artifactId>jaxb-api</artifactId>
168                         <version>2.2.11</version>
169                 </dependency>
170                 <dependency>
171                         <groupId>com.sun.xml.bind</groupId>
172                         <artifactId>jaxb-impl</artifactId>
173                         <version>2.2.11</version>
174                 </dependency>
175                 <dependency>
176                         <groupId>com.sun.xml.bind</groupId>
177                         <artifactId>jaxb-core</artifactId>
178                         <version>2.2.11</version>
179                 </dependency>
180                 <dependency>
181                         <groupId>com.sun.xml.bind</groupId>
182                         <artifactId>jaxb-xjc</artifactId>
183                         <version>2.2.11</version>
184                 </dependency>
185                 <dependency>
186                         <groupId>org.eclipse.persistence</groupId>
187                         <artifactId>org.eclipse.persistence.moxy</artifactId>
188                         <version>2.6.2</version>
189                         <scope>compile</scope>
190                 </dependency>
191                 <!-- https://mvnrepository.com/artifact/com.mikesamuel/json-sanitizer -->
192                 <dependency>
193                         <groupId>com.mikesamuel</groupId>
194                         <artifactId>json-sanitizer</artifactId>
195                         <version>1.2.0</version>
196                 </dependency>
197
198                 <!-- Common logging framework -->
199                 <dependency>
200                         <groupId>org.onap.aai.logging-service</groupId>
201                         <artifactId>common-logging</artifactId>
202                         <version>1.2.2</version>
203                 </dependency>
204                 <dependency>
205                         <groupId>ch.qos.logback</groupId>
206                         <artifactId>logback-core</artifactId>
207                         <version>1.1.7</version>
208                 </dependency>
209                 <dependency>
210                         <groupId>org.openecomp.sdc.sdc-distribution-client</groupId>
211                         <artifactId>sdc-distribution-client</artifactId>
212                         <version>1.2.2</version>
213                 </dependency>
214                 <dependency>
215                         <groupId>org.apache.httpcomponents</groupId>
216                         <artifactId>httpclient</artifactId>
217                         <version>4.5</version>
218                 </dependency>
219                 <dependency>
220                         <groupId>org.json</groupId>
221                         <artifactId>json</artifactId>
222                         <version>20131018</version><!--$NO-MVN-MAN-VER$ -->
223                 </dependency>
224                 <dependency>
225                         <groupId>org.eclipse.jetty</groupId>
226                         <artifactId>jetty-security</artifactId>
227                         <version>9.3.8.RC0</version>
228                 </dependency>
229                 <dependency>
230                         <groupId>org.springframework</groupId>
231                         <artifactId>spring-webmvc</artifactId>
232                 </dependency>
233                 <dependency>
234                         <groupId>jline</groupId>
235                         <artifactId>jline</artifactId>
236                         <version>2.12.1</version>
237                 </dependency>
238                 <dependency>
239                         <groupId>org.yaml</groupId>
240                         <artifactId>snakeyaml</artifactId>
241                         <version>1.18</version>
242                 </dependency>
243
244                 <!-- apache commons -->
245                 <dependency>
246                         <groupId>org.apache.commons</groupId>
247                         <artifactId>commons-compress</artifactId>
248                         <version>${commons-compress.version}</version>
249                 </dependency>
250                 <dependency>
251                         <groupId>commons-io</groupId>
252                         <artifactId>commons-io</artifactId>
253                 </dependency>
254                 <dependency>
255                         <groupId>org.apache.commons</groupId>
256                         <artifactId>commons-lang3</artifactId>
257                         <version>${apache.lang3.version}</version>
258                 </dependency>
259                 <dependency>
260                         <groupId>org.apache.commons</groupId>
261                         <artifactId>commons-text</artifactId>
262                         <version>${apache.commons-text.version}</version>
263                 </dependency>
264         </dependencies>
265
266         <!-- Plugins and repositories -->
267         <pluginRepositories>
268                 <pluginRepository>
269                         <id>central</id>
270                         <url>http://repo1.maven.org/maven2</url>
271                 </pluginRepository>
272                 <pluginRepository>
273                         <id>EvoSuite</id>
274                         <name>EvoSuite Repository</name>
275                         <url>http://www.evosuite.org/m2</url>
276                 </pluginRepository>
277         </pluginRepositories>
278         
279         <repositories>
280                 <repository>
281                         <id>central</id>
282                         <name>Maven 2 repository 2</name>
283                         <url>http://repo2.maven.org/maven2/</url>
284                 </repository>
285                 <repository>
286                         <id>ecomp-releases</id>
287                         <name>ECOMP Release Repository</name>
288                         <url>${nexusproxy}/content/repositories/releases/</url>
289                 </repository>
290                 <repository>
291                         <id>ecomp-snapshots</id>
292                         <name>ECOMP Snapshot Repository</name>
293                         <url>${nexusproxy}/content/repositories/snapshots/</url>
294                 </repository>
295                 <repository>
296                         <id>ecomp-staging</id>
297                         <name>ECOMP Staging Repository</name>
298                         <url>${nexusproxy}/content/repositories/staging/</url>
299                 </repository>
300         </repositories>
301
302         <profiles>
303                 <profile>
304                         <id>runAjsc</id>
305                         <build>
306                                 <defaultGoal>initialize</defaultGoal>
307                                 <plugins>
308                                         <plugin>
309                                                 <groupId>org.codehaus.mojo</groupId>
310                                                 <artifactId>exec-maven-plugin</artifactId>
311                                                 <version>1.3.2</version>
312                                                 <executions>
313                                                         <execution>
314                                                                 <phase>initialize</phase>
315                                                                 <goals>
316                                                                         <goal>java</goal>
317                                                                 </goals>
318                                                                 <configuration>
319                                                                         <includeProjectDependencies>false</includeProjectDependencies>
320                                                                         <includePluginDependencies>true</includePluginDependencies>
321                                                                         <executable>java</executable>
322                                                                         <mainClass>com.att.ajsc.runner.Runner</mainClass>
323                                                                         <executableDependency>
324                                                                                 <groupId>com.att.ajsc</groupId>
325                                                                                 <artifactId>ajsc-runner</artifactId>
326                                                                         </executableDependency>
327                                                                         <additionalClasspathElements>
328                                                                                 <additionalClasspathElement>${basedir}/ajsc-shared-config/etc</additionalClasspathElement>
329                                                                         </additionalClasspathElements>
330
331                                                                         <environmentVariables>
332                                                                                 <AJSC_HOME>${runAjscHome}</AJSC_HOME>
333                                                                         </environmentVariables>
334
335                                                                         <!-- Main AJSC System Properties below (necessary for proper startup) -->
336                                                                         <systemProperties>
337                                                                                 <systemProperty>
338                                                                                         <key>AJSC_HOME</key>
339                                                                                         <value>${runAjscHome}</value>
340                                                                                 </systemProperty>
341                                                                                 <systemProperty>
342                                                                                         <key>CONFIG_HOME</key>
343                                                                                         <value>${basedir}/appconfig-local/</value>
344                                                                                 </systemProperty>
345                                                                                 <systemProperty>
346                                                                                         <key>AJSC_CONF_HOME</key>
347                                                                                         <value>${basedir}/bundleconfig-local</value>
348                                                                                 </systemProperty>
349                                                                                 <systemProperty>
350                                                                                         <key>logback.configurationFile</key>
351                                                                                         <value>${basedir}/ajsc-shared-config/etc/logback.xml</value>
352                                                                                 </systemProperty>
353                                                                                 <systemProperty>
354                                                                                         <key>AJSC_SHARED_CONFIG</key>
355                                                                                         <value>${basedir}/ajsc-shared-config</value>
356                                                                                 </systemProperty>
357
358                                                                                 <sysproperty>
359                                                                                         <key>AJSC_EXTERNAL_LIB_FOLDERS</key>
360                                                                                         <value>${basedir}/target/commonLibs</value>
361                                                                                 </sysproperty>
362                                                                                 <sysproperty>
363                                                                                         <key>AJSC_EXTERNAL_PROPERTIES_FOLDERS</key>
364                                                                                         <value>${basedir}/ajsc-shared-config/etc</value>
365                                                                                 </sysproperty>
366                                                                                 <systemProperty>
367                                                                                         <key>AJSC_SERVICE_NAMESPACE</key>
368                                                                                         <value>${module.ajsc.namespace.name}</value>
369                                                                                 </systemProperty>
370                                                                                 <systemProperty>
371                                                                                         <key>AJSC_SERVICE_VERSION</key>
372                                                                                         <value>${module.ajsc.namespace.version}</value>
373                                                                                 </systemProperty>
374                                                                                 <systemProperty>
375                                                                                         <key>SOACLOUD_SERVICE_VERSION</key>
376                                                                                         <value>${project.version}</value>
377                                                                                 </systemProperty>
378                                                                                 <systemProperty>
379                                                                                         <key>server.port</key>
380                                                                                         <value>${serverPort}</value>
381                                                                                 </systemProperty>
382                                                                         </systemProperties>
383
384                                                                         <!-- Command Line Arguments to add to the java command. Here, you 
385                                                                                 can specify the port as well as the Context you want your service to run 
386                                                                                 in. Use context=/ to run in an unnamed Context (Root Context). The default 
387                                                                                 configuration of the AJSC is to run under the / Context. Setting the port 
388                                                                                 here can aid during the development phase of your service. However, you can 
389                                                                                 leave this argument out entirely, and the AJSC will default to using an Ephemeral 
390                                                                                 port. -->
391                                                                         <arguments>
392                                                                                 <argument>context=//</argument>
393                                                                                 <argument>port=${serverPort}</argument>
394                                                                                 <argument>sslport=${sslport}</argument>
395                                                                         </arguments>
396                                                                 </configuration>
397                                                         </execution>
398                                                 </executions>
399                                                 <configuration>
400                                                         <executable>java</executable>
401                                                 </configuration>
402                                                 <dependencies>
403                                                         <dependency>
404                                                                 <groupId>com.att.ajsc</groupId>
405                                                                 <artifactId>ajsc-runner</artifactId>
406                                                                 <version>${ajscRuntimeVersion}</version>
407                                                         </dependency>
408                                                 </dependencies>
409                                         </plugin>
410                                 </plugins>
411                         </build>
412                 </profile>
413         </profiles>
414
415         <build>
416                 <plugins>
417                         <plugin>
418                                 <groupId>org.apache.maven.plugins</groupId>
419                                 <artifactId>maven-resources-plugin</artifactId>
420                                 <version>2.7</version>
421                                 <executions>
422                                         <execution>
423                                                 <id>copy-docker-file</id>
424                                                 <phase>package</phase>
425                                                 <goals>
426                                                         <goal>copy-resources</goal>
427                                                 </goals>
428                                                 <configuration>
429                                                         <outputDirectory>target</outputDirectory>
430                                                         <overwrite>true</overwrite>
431                                                         <resources>
432                                                                 <resource>
433                                                                         <directory>${basedir}/src/main/docker</directory>
434                                                                         <filtering>true</filtering>
435                                                                         <includes>
436                                                                                 <include>**/*</include>
437                                                                         </includes>
438                                                                 </resource>
439                                                                 <resource>
440                                                                         <directory>${basedir}/src/main/bin/</directory>
441                                                                 </resource>
442                                                         </resources>
443                                                 </configuration>
444                                         </execution>
445                                 </executions>
446                         </plugin>
447                         <plugin>
448                                 <groupId>com.spotify</groupId>
449                                 <artifactId>docker-maven-plugin</artifactId>
450                                 <version>0.4.11</version>
451                                 <configuration>
452                                         <verbose>true</verbose>
453                                         <serverId>docker-hub</serverId>
454                                         <imageName>${docker.push.registry}/onap/${project.artifactId}</imageName>
455                                         <dockerDirectory>${docker.location}</dockerDirectory>
456                                         <imageTags>
457                                                 <imageTag>latest</imageTag>
458                                         </imageTags>
459                                         <forceTags>true</forceTags>
460                                 </configuration>
461                         </plugin>
462                         <plugin>
463                                 <groupId>org.apache.maven.plugins</groupId>
464                                 <artifactId>maven-surefire-plugin</artifactId>
465                                 <version>2.12.4</version><!--$NO-MVN-MAN-VER$ -->
466                                 <configuration>
467                                         <argLine>-noverify ${argLine}</argLine>
468                                 </configuration>
469                         </plugin>
470                         <plugin>
471                                 <groupId>org.apache.maven.plugins</groupId>
472                                 <artifactId>maven-compiler-plugin</artifactId>
473                                 <version>3.1</version>
474                         </plugin>
475
476                         <!-- Checkstyle plugin - used to report on compliance with -->
477                         <!-- the Google style guide. -->
478                         <plugin>
479                                 <groupId>org.apache.maven.plugins</groupId>
480                                 <artifactId>maven-site-plugin</artifactId>
481                                 <version>3.3</version>
482                                 <configuration>
483                                         <reportPlugins>
484                                                 <plugin>
485                                                         <groupId>org.apache.maven.plugins</groupId>
486                                                         <artifactId>maven-checkstyle-plugin</artifactId>
487                                                         <version>2.17</version>
488                                                         <reportSets>
489                                                                 <reportSet>
490                                                                         <reports>
491                                                                                 <report>checkstyle</report>
492                                                                         </reports>
493                                                                 </reportSet>
494                                                         </reportSets>
495                                                 </plugin>
496                                         </reportPlugins>
497                                 </configuration>
498                         </plugin>
499
500                         <!-- license plugin -->
501                         <plugin>
502                                 <groupId>com.mycila</groupId>
503                                 <artifactId>license-maven-plugin</artifactId>
504                                 <version>3.0</version>
505                                 <configuration>
506                                         <header>License.txt</header>
507                                         <includes>
508                                                 <include>src/main/java/**</include>
509                                                 <include>src/test/java/**</include>
510                                         </includes>
511                                 </configuration>
512                                 <executions>
513                                         <execution>
514                                                 <goals>
515                                                         <goal>format</goal>
516                                                 </goals>
517                                                 <phase>process-sources</phase>
518                                         </execution>
519                                 </executions>
520                         </plugin>
521
522                         <plugin>
523                                 <groupId>org.apache.maven.plugins</groupId>
524                                 <artifactId>maven-deploy-plugin</artifactId>
525                                 <configuration>
526                                         <skip>true</skip>
527                                 </configuration>
528                         </plugin>
529                         <plugin>
530                                 <groupId>org.codehaus.mojo</groupId>
531                                 <artifactId>sonar-maven-plugin</artifactId>
532                                 <version>3.2</version>
533                         </plugin>
534             <plugin>
535                 <groupId>org.jacoco</groupId>
536                 <artifactId>jacoco-maven-plugin</artifactId>
537                 <version>${version.jacoco.maven.plugin}</version>
538                 <executions>
539                         <execution>
540                             <id>jacoco-initialize-unit-tests</id>
541                             <goals>
542                                 <goal>prepare-agent</goal>
543                             </goals>
544                         </execution>
545                         <execution> 
546                             <id>report</id>
547                             <phase>package</phase>
548                             <goals>
549                                 <goal>report</goal>
550                             </goals>
551                         </execution>
552                 </executions>
553             </plugin>
554                         <plugin>
555                                 <groupId>org.sonatype.plugins</groupId>
556                                 <artifactId>nexus-staging-maven-plugin</artifactId>
557                                 <version>1.6.7</version>
558                                 <extensions>true</extensions>
559                                 <configuration>
560                                         <nexusUrl>${nexusproxy}</nexusUrl>
561                                         <stagingProfileId>176c31dfe190a</stagingProfileId>
562                                         <serverId>ecomp-staging</serverId>
563                                 </configuration>
564                         </plugin>
565
566                 </plugins>
567         </build>
568 </project>