Removing configurations moved to test-config
[aai/sparky-be.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         <modelVersion>4.0.0</modelVersion>
4
5         <parent>
6                 <artifactId>ajsc-archetype-parent</artifactId>
7                 <groupId>com.att.ajsc</groupId>
8                 <version>2.0.0</version>
9         </parent>
10         <groupId>org.openecomp.aai</groupId>
11         <artifactId>inventory-ui-service</artifactId>
12         <version>1.0-SNAPSHOT</version>
13
14         <properties>
15                 <module.ajsc.namespace.name>inventory-ui-service</module.ajsc.namespace.name>
16                 <module.ajsc.namespace.version>v1</module.ajsc.namespace.version>
17                 <ajscRuntimeVersion>2.0.0</ajscRuntimeVersion>
18                 <absoluteDistFilesRoot>/appl/${project.artifactId}</absoluteDistFilesRoot>
19
20                 <!-- For NO Versioning, REMOVE the /${project.version} from the <distFilesRoot> 
21                         property, below. PLEASE, NOTE: If your ${project.version} is a "-SNAPSHOT" 
22                         version, THIS will be used as your directory structure. If you do NOT want 
23                         this, simply remove the "-SNAPSHOT" from your <version> declaration at the 
24                         top of pom.xml -->
25                 <distFilesRoot>/appl/${project.artifactId}/${project.version}</distFilesRoot>
26                 <runAjscHome>${basedir}/target/swm/package/nix/dist_files${distFilesRoot}</runAjscHome>
27
28                 <!-- For SOA Cloud Installation -->
29                 <installOwnerUser>aaiadmin</installOwnerUser>
30                 <installOwnerGroup>aaiadmin</installOwnerGroup>
31                 <ownerManagementGroup>com.att.csid.lab</ownerManagementGroup>
32
33                 <!-- Port Selection. A value of 0 will allow for dynamic port selection. 
34                         For local testing, you may choose to hardcode this value to something like 
35                         8080 -->
36                 <serverPort>9517</serverPort>
37                 <sslport>8000</sslport>
38
39                 <testRouteOffer>workstation</testRouteOffer>
40                 <testEnv>DEV</testEnv>
41                 <checkstyle.config.location>google_checks.xml</checkstyle.config.location>
42         <nexusproxy>https://nexus.onap.org</nexusproxy>
43         </properties>
44
45         <dependencies>
46
47                 <dependency>
48                         <groupId>org.mockito</groupId>
49                         <artifactId>mockito-all</artifactId>
50                         <version>1.10.19</version>
51                         <scope>test</scope>
52                 </dependency>
53                 <dependency>
54                         <groupId>org.powermock</groupId>
55                         <artifactId>powermock-module-junit4</artifactId>
56                         <version>1.6.2</version>
57                         <scope>test</scope>
58                 </dependency>
59                 <dependency>
60                         <groupId>org.powermock</groupId>
61                         <artifactId>powermock-api-mockito</artifactId>
62                         <version>1.6.2</version>
63                         <scope>test</scope>
64                 </dependency>
65                 <dependency>
66                         <groupId>org.powermock</groupId>
67                         <artifactId>powermock-module-javaagent</artifactId>
68                         <version>1.6.2</version>
69                         <scope>test</scope>
70                 </dependency>
71                 <dependency>
72                         <groupId>org.powermock</groupId>
73                         <artifactId>powermock-module-junit4-rule-agent</artifactId>
74                         <version>1.6.2</version>
75                         <scope>test</scope>
76                 </dependency>
77
78
79                 <dependency>
80                         <groupId>dom4j</groupId>
81                         <artifactId>dom4j</artifactId>
82                         <version>1.6.1</version>
83                         <scope>provided</scope>
84                 </dependency>
85                 <dependency>
86                         <groupId>com.att.aft</groupId>
87                         <artifactId>dme2</artifactId>
88                         <version>3.1.200</version>
89                         <scope>provided</scope>
90                 </dependency>
91
92                 <dependency>
93                         <groupId>org.slf4j</groupId>
94                         <artifactId>slf4j-api</artifactId>
95                         <version>1.7.20</version>
96                 </dependency>
97
98                 <dependency>
99                         <groupId>org.openecomp.aai</groupId>
100                         <artifactId>rest-client</artifactId>
101             <version>1.1.0-SNAPSHOT</version>
102                 </dependency>
103
104
105                 <dependency>
106                         <groupId>org.hamcrest</groupId>
107                         <artifactId>hamcrest-library</artifactId>
108                         <version>1.3</version>
109                         <scope>test</scope>
110                 </dependency>
111
112                 <!-- <dependency> <groupId>com.att.csp</groupId> <artifactId>gatekeeper</artifactId> 
113                         <version>1.0</version> <scope>system</scope> <systemPath>${project.basedir}/local-repository/gatekeeper-1.0.jar</systemPath> 
114                         </dependency> <dependency> <groupId>com.att.csp</groupId> <artifactId>PSE_Lite</artifactId> 
115                         <version>1.0</version> <scope>system</scope> <systemPath>${project.basedir}/local-repository/PSE_Lite-1.0.jar</systemPath> 
116                         </dependency> -->
117
118                 <dependency>
119                         <groupId>org.eclipse.persistence</groupId>
120                         <artifactId>eclipselink</artifactId>
121                         <version>2.6.2</version>
122                 </dependency>
123
124                 <dependency>
125                         <groupId>com.fasterxml.jackson.core</groupId>
126                         <artifactId>jackson-core</artifactId>
127                         <version>2.7.4</version>
128                 </dependency>
129
130                 <dependency>
131                         <groupId>org.json</groupId>
132                         <artifactId>json</artifactId>
133                         <version>20131018</version>
134                 </dependency>
135
136                 <dependency>
137                         <groupId>com.fasterxml.jackson.core</groupId>
138                         <artifactId>jackson-databind</artifactId>
139                         <version>2.7.4</version>
140                 </dependency>
141
142                 <!-- Common logging framework -->
143                 <dependency>
144                   <groupId>org.openecomp.aai.logging-service</groupId>
145                   <artifactId>common-logging</artifactId>
146                   <version>1.0.0</version>
147                 </dependency>
148                 
149                 <dependency>
150                         <groupId>com.google.code.gson</groupId>
151                         <artifactId>gson</artifactId>
152                         <version>2.6.2</version>
153                 </dependency>
154
155                 <dependency>
156                         <groupId>ch.qos.logback</groupId>
157                         <artifactId>logback-classic</artifactId>
158                         <version>1.1.7</version>
159                 </dependency>
160
161                 <dependency>
162                         <groupId>ch.qos.logback</groupId>
163                         <artifactId>logback-core</artifactId>
164                         <version>1.1.7</version>
165                 </dependency>
166
167                 <dependency>
168                         <groupId>commons-io</groupId>
169                         <artifactId>commons-io</artifactId>
170                         <version>2.4</version>
171                 </dependency>
172                 
173                 <dependency>
174                     <groupId>log4j</groupId>
175                     <artifactId>log4j</artifactId>
176                     <version>1.2.17</version>
177                 </dependency>
178                 
179                 <dependency>
180                         <groupId>org.openecomp.ecompsdkos</groupId>
181                         <artifactId>epsdk-fw</artifactId>
182                         <version>1.1.0-SNAPSHOT</version>
183                         <exclusions>
184                                 <exclusion>
185                                         <groupId>commons-logging</groupId>
186                                         <artifactId>commons-logging</artifactId>
187                                 </exclusion>
188                                 <exclusion>
189                                         <groupId>log4j</groupId>
190                                         <artifactId>log4j</artifactId>
191                                 </exclusion>
192                                 <exclusion>
193                                         <groupId>log4j</groupId>
194                                         <artifactId>apache-log4j-extras</artifactId>
195                                 </exclusion>
196                                 <exclusion>
197                                         <groupId>org.slf4j</groupId>
198                                         <artifactId>slf4j-log4j12</artifactId>
199                                 </exclusion>
200                         </exclusions>
201                 </dependency>
202
203         </dependencies>
204
205         <profiles>
206                 <profile>
207                         <id>runAjsc</id>
208                         <build>
209                                 <defaultGoal>initialize</defaultGoal>
210                                 <plugins>
211
212                                         <plugin>
213                                                 <groupId>org.codehaus.mojo</groupId>
214                                                 <artifactId>exec-maven-plugin</artifactId>
215                                                 <version>1.3.2</version>
216                                                 <executions>
217                                                         <execution>
218                                                                 <phase>initialize</phase>
219                                                                 <goals>
220                                                                         <goal>java</goal>
221                                                                 </goals>
222                                                                 <configuration>
223                                                                         <includeProjectDependencies>false</includeProjectDependencies>
224                                                                         <includePluginDependencies>true</includePluginDependencies>
225                                                                         <executable>java</executable>
226                                                                         <mainClass>com.att.ajsc.runner.Runner</mainClass>
227                                                                         <executableDependency>
228                                                                                 <groupId>com.att.ajsc</groupId>
229                                                                                 <artifactId>ajsc-runner</artifactId>
230                                                                         </executableDependency>
231                                                                         <additionalClasspathElements>
232                                                                                 <additionalClasspathElement>${basedir}/ajsc-shared-config/etc</additionalClasspathElement>
233                                                                         </additionalClasspathElements>
234
235                                                                         <environmentVariables>
236                                                                                 <AJSC_HOME>${runAjscHome}</AJSC_HOME>
237                                                                         </environmentVariables>
238
239                                                                         <!-- Main AJSC System Properties below (necessary for proper startup) -->
240                                                                         <systemProperties>
241                                                                                 <systemProperty>
242                                                                                         <key>AJSC_HOME</key>
243                                                                                         <value>${runAjscHome}</value>
244                                                                                 </systemProperty>
245                                                                                 <systemProperty>
246                                                                                         <key>CONFIG_HOME</key>
247                                                                                         <value>${basedir}/appconfig-local/</value>
248                                                                                 </systemProperty>
249                                                                                 <systemProperty>
250                                                                                         <key>AJSC_CONF_HOME</key>
251                                                                                         <value>${basedir}/bundleconfig-local</value>
252                                                                                 </systemProperty>
253                                                                                 <systemProperty>
254                                                                                         <key>logback.configurationFile</key>
255                                                                                         <value>${basedir}/ajsc-shared-config/etc/logback.xml</value>
256                                                                                 </systemProperty>
257                                                                                 <systemProperty>
258                                                                                         <key>AJSC_SHARED_CONFIG</key>
259                                                                                         <value>${basedir}/ajsc-shared-config</value>
260                                                                                 </systemProperty>
261
262                                                                                 <sysproperty>
263                                                                                         <key>AJSC_EXTERNAL_LIB_FOLDERS</key>
264                                                                                         <value>${basedir}/target/commonLibs</value>
265                                                                                 </sysproperty>
266                                                                                 <sysproperty>
267                                                                                         <key>AJSC_EXTERNAL_PROPERTIES_FOLDERS</key>
268                                                                                         <value>${basedir}/ajsc-shared-config/etc</value>
269                                                                                 </sysproperty>
270
271                                                                                 <systemProperty>
272                                                                                         <key>AJSC_SERVICE_NAMESPACE</key>
273                                                                                         <value>${module.ajsc.namespace.name}</value>
274                                                                                 </systemProperty>
275                                                                                 <systemProperty>
276                                                                                         <key>AJSC_SERVICE_VERSION</key>
277                                                                                         <value>${module.ajsc.namespace.version}</value>
278                                                                                 </systemProperty>
279                                                                                 <systemProperty>
280                                                                                         <key>SOACLOUD_SERVICE_VERSION</key>
281                                                                                         <value>${project.version}</value>
282                                                                                 </systemProperty>
283                                                                                 <systemProperty>
284                                                                                         <key>server.port</key>
285                                                                                         <value>${serverPort}</value>
286                                                                                 </systemProperty>
287                                                                         </systemProperties>
288
289                                                                         <!-- Command Line Arguments to add to the java command. Here, you 
290                                                                                 can specify the port as well as the Context you want your service to run 
291                                                                                 in. Use context=/ to run in an unnamed Context (Root Context). The default 
292                                                                                 configuration of the AJSC is to run under the / Context. Setting the port 
293                                                                                 here can aid during the development phase of your service. However, you can 
294                                                                                 leave this argument out entirely, and the AJSC will default to using an Ephemeral 
295                                                                                 port. -->
296                                                                         <arguments>
297                                                                                 <argument>context=/</argument>
298                                                                                 <argument>port=${serverPort}</argument>
299                                                                                 <argument>sslport=${sslport}</argument>
300                                                                         </arguments>
301                                                                 </configuration>
302                                                         </execution>
303                                                 </executions>
304                                                 <configuration>
305                                                         <executable>java</executable>
306                                                 </configuration>
307                                                 <dependencies>
308                                                         <dependency>
309                                                                 <groupId>com.att.ajsc</groupId>
310                                                                 <artifactId>ajsc-runner</artifactId>
311                                                                 <version>${ajscRuntimeVersion}</version>
312                                                         </dependency>
313                                                 </dependencies>
314                                         </plugin>
315                                 </plugins>
316                         </build>
317                 </profile>
318         </profiles>
319         <build>
320                 <pluginManagement>
321                         <plugins>
322
323                                 <!-- purposely disable cobertura from parent pom as it is very broken 
324                                         Java1.8 code. It can't handle lamdas and comes apart with a bunch of errors -->
325
326                                 <plugin>
327                                         <groupId>org.codehaus.mojo</groupId>
328                                         <artifactId>cobertura-maven-plugin</artifactId>
329                                         <version>2.7</version>
330                                         <configuration>
331                                                 <quiet>true</quiet>
332                                         </configuration>
333                                 </plugin>
334
335
336                                 <!--This plugin's configuration is used to store Eclipse m2e settings 
337                                         only. It has no influence on the Maven build itself. -->
338                                 <plugin>
339                                         <groupId>org.eclipse.m2e</groupId>
340                                         <artifactId>lifecycle-mapping</artifactId>
341                                         <version>1.0.0</version>
342                                         <configuration>
343                                                 <lifecycleMappingMetadata>
344                                                         <pluginExecutions>
345                                                                 <pluginExecution>
346                                                                         <pluginExecutionFilter>
347                                                                                 <groupId>
348                                                                                         org.codehaus.mojo
349                                                                                 </groupId>
350                                                                                 <artifactId>
351                                                                                         properties-maven-plugin
352                                                                                 </artifactId>
353                                                                                 <versionRange>
354                                                                                         [1.0-alpha-2,)
355                                                                                 </versionRange>
356                                                                                 <goals>
357                                                                                         <goal>
358                                                                                                 write-project-properties
359                                                                                         </goal>
360                                                                                 </goals>
361                                                                         </pluginExecutionFilter>
362                                                                         <action>
363                                                                                 <ignore></ignore>
364                                                                         </action>
365                                                                 </pluginExecution>
366                                                         </pluginExecutions>
367                                                 </lifecycleMappingMetadata>
368                                         </configuration>
369                                 </plugin>
370
371                                 <plugin>
372                                         <groupId>org.apache.maven.plugins</groupId>
373                                         <artifactId>maven-dependency-plugin</artifactId>
374                                         <version>3.0.0</version>
375                                         <executions>
376                                                 <execution>
377                                                         <id>copy-installed</id>
378                                                         <phase>install</phase>
379                                                         <goals>
380                                                                 <goal>copy</goal>
381                                                         </goals>
382                                                         <configuration>
383                                                                 <artifactItems>
384                                                                         <artifactItem>
385                                                                                 <groupId>org.openecomp.aai</groupId>
386                                                                                 <artifactId>sparky-fe</artifactId>
387                                                                                 <version>1.0.0-SNAPSHOT</version>
388                                                                                 <type>war</type>
389                                                                                 <outputDirectory>${basedir}/target/swm/package/nix/dist_files${distFilesRoot}/extApps/</outputDirectory>
390                                                                                 <destFileName>aai.war</destFileName>
391                                                                         </artifactItem>
392                                                                 </artifactItems>
393                                                         </configuration>
394                                                 </execution>
395                                         </executions>
396                                 </plugin>
397                                 
398                                 <plugin>
399                                         <groupId>org.apache.maven.plugins</groupId>
400                                         <artifactId>maven-compiler-plugin</artifactId>
401                                         <configuration>
402                                                 <source>1.8</source>
403                                                 <target>1.8</target>
404                                         </configuration>
405                                 </plugin>
406
407
408                                 <plugin>
409                                         <groupId>org.apache.maven.plugins</groupId>
410                                         <artifactId>maven-resources-plugin</artifactId>
411                                         <version>2.7</version>
412                                         <executions>
413                                                 <execution>
414                                                         <id>copy-docker-file</id>
415                                                         <phase>package</phase>
416                                                         <goals>
417                                                                 <goal>copy-resources</goal>
418                                                         </goals>
419                                                         <configuration>
420                                                                 <outputDirectory>target</outputDirectory>
421                                                                 <overwrite>true</overwrite>
422                                                                 <resources>
423                                                                         <resource>
424                                                                                 <directory>${basedir}/src/main/docker</directory>
425                                                                                 <filtering>true</filtering>
426                                                                                 <includes>
427                                                                                         <include>**/*</include>
428                                                                                 </includes>
429                                                                         </resource>
430                                                                         <resource>
431                                                                                 <directory>${basedir}/src/main/scripts/</directory>
432                                                                         </resource>
433                                                                 </resources>
434                                                         </configuration>
435                                                 </execution>
436                                         </executions>
437                                 </plugin>
438
439                         </plugins>
440
441                 </pluginManagement>
442
443                 <plugins>
444                                     <plugin>
445                 <groupId>org.apache.maven.plugins</groupId>
446                 <artifactId>maven-site-plugin</artifactId>
447                 <version>3.3</version>
448                 <configuration>
449                     <reportPlugins>
450                         <plugin>
451                             <groupId>org.apache.maven.plugins</groupId>
452                             <artifactId>maven-checkstyle-plugin</artifactId>
453                             <version>2.17</version>
454                             <reportSets>
455                                 <reportSet>
456                                     <reports>
457                                         <report>checkstyle</report>
458                                     </reports>
459                                 </reportSet>
460                             </reportSets>
461                         </plugin>
462                     </reportPlugins>
463                 </configuration>
464             </plugin>
465             <plugin>
466                 <groupId>org.apache.maven.plugins</groupId>
467                 <artifactId>maven-resources-plugin</artifactId>
468                 <version>2.7</version>
469                 <executions>
470                     <execution>
471                         <id>copy-docker-file</id>
472                         <phase>package</phase>
473                         <goals>
474                             <goal>copy-resources</goal>
475                         </goals>
476                         <configuration>
477                             <outputDirectory>target</outputDirectory>
478                             <overwrite>true</overwrite>
479                             <resources>
480                                 <resource>
481                                     <directory>${basedir}/src/main/docker</directory>
482                                     <filtering>true</filtering>
483                                     <includes>
484                                         <include>**/*</include>
485                                     </includes>
486                                 </resource>
487                                 <resource>
488                                     <directory>${basedir}/src/main/scripts/</directory>
489                                 </resource>
490                             </resources>
491                         </configuration>
492                     </execution>
493                 </executions>
494             </plugin>
495             <plugin>
496                 <groupId>com.spotify</groupId>
497                 <artifactId>docker-maven-plugin</artifactId>
498                 <version>0.4.11</version>
499                 <configuration>
500                     <verbose>true</verbose>
501                     <serverId>docker-hub</serverId>
502                     <imageName>${docker.push.registry}/openecomp/${project.artifactId}</imageName>                              
503                     <dockerDirectory>${docker.location}</dockerDirectory>
504                     <imageTags>
505                         <imageTag>latest</imageTag>
506                     </imageTags>
507                     <forceTags>true</forceTags>
508                 </configuration>
509             </plugin>
510             <!-- license plugin -->
511             <plugin>
512                 <groupId>com.mycila</groupId>
513                 <artifactId>license-maven-plugin</artifactId>
514                 <version>3.0</version>
515                 <configuration>
516                     <header>LICENSE</header>
517                     <includes>
518                         <include>src/main/java/**</include>
519                     </includes>
520                 </configuration>
521                 <executions>
522                     <execution>
523                         <goals>
524                             <goal>format</goal>
525                         </goals>
526                         <phase>process-sources</phase>
527                     </execution>
528                 </executions>
529             </plugin>
530             <plugin>
531                 <groupId>org.sonatype.plugins</groupId>
532                 <artifactId>nexus-staging-maven-plugin</artifactId>
533                 <version>1.6.7</version>
534                 <extensions>true</extensions>
535                 <configuration>
536                     <nexusUrl>${nexusproxy}</nexusUrl>
537                     <stagingProfileId>176c31dfe190a</stagingProfileId>
538                     <serverId>ecomp-staging</serverId>
539                 </configuration>
540             </plugin>
541             <plugin>
542                 <groupId>org.apache.maven.plugins</groupId>
543                 <artifactId>maven-deploy-plugin</artifactId>
544                 <configuration>
545                     <skip>true</skip>
546                 </configuration>
547             </plugin>
548             <plugin>
549                 <groupId>org.codehaus.mojo</groupId>
550                 <artifactId>sonar-maven-plugin</artifactId>
551                 <version>3.2</version>
552             </plugin>
553                         <plugin>
554                                 <groupId>org.jacoco</groupId>
555                                 <artifactId>jacoco-maven-plugin</artifactId>
556                                 <version>0.7.9</version>
557                                 <configuration>
558                                         <destFile>${basedir}/target/coverage-reports/jacoco-unit.exec</destFile>
559                                         <dataFile>${basedir}/target/coverage-reports/jacoco-unit.exec</dataFile>
560                                 </configuration>
561                                 <executions>
562                                         <execution>
563                                                 <id>prepare-agent</id>
564                                                 <goals>
565                                                         <goal>prepare-agent</goal>
566                                                 </goals>
567                                         </execution>
568                                         <execution>
569                                                 <id>jacoco-site</id>
570                                                 <phase>package</phase>
571                                                 <goals>
572                                                         <goal>report</goal>
573                                                 </goals>
574                                         </execution>
575                                 </executions>
576                         </plugin>
577
578                 </plugins>
579         </build>
580
581 </project>