Initial commit for AAI-UI(sparky-backend)
[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                                                                                 <additionalClasspathElement>${basedir}/appconfig-local</additionalClasspathElement>
234                                                                         </additionalClasspathElements>
235
236                                                                         <environmentVariables>
237                                                                                 <AJSC_HOME>${runAjscHome}</AJSC_HOME>
238                                                                         </environmentVariables>
239
240                                                                         <!-- Main AJSC System Properties below (necessary for proper startup) -->
241                                                                         <systemProperties>
242                                                                                 <systemProperty>
243                                                                                         <key>AJSC_HOME</key>
244                                                                                         <value>${runAjscHome}</value>
245                                                                                 </systemProperty>
246                                                                                 <systemProperty>
247                                                                                         <key>CONFIG_HOME</key>
248                                                                                         <value>${basedir}/appconfig-local/</value>
249                                                                                 </systemProperty>
250                                                                                 <systemProperty>
251                                                                                         <key>AJSC_CONF_HOME</key>
252                                                                                         <value>${basedir}/bundleconfig-local</value>
253                                                                                 </systemProperty>
254                                                                                 <systemProperty>
255                                                                                         <key>logback.configurationFile</key>
256                                                                                         <value>${basedir}/ajsc-shared-config/etc/logback.xml</value>
257                                                                                 </systemProperty>
258                                                                                 <systemProperty>
259                                                                                         <key>AJSC_SHARED_CONFIG</key>
260                                                                                         <value>${basedir}/ajsc-shared-config</value>
261                                                                                 </systemProperty>
262
263                                                                                 <sysproperty>
264                                                                                         <key>AJSC_EXTERNAL_LIB_FOLDERS</key>
265                                                                                         <value>${basedir}/target/commonLibs</value>
266                                                                                 </sysproperty>
267                                                                                 <sysproperty>
268                                                                                         <key>AJSC_EXTERNAL_PROPERTIES_FOLDERS</key>
269                                                                                         <value>${basedir}/ajsc-shared-config/etc</value>
270                                                                                 </sysproperty>
271
272                                                                                 <systemProperty>
273                                                                                         <key>AJSC_SERVICE_NAMESPACE</key>
274                                                                                         <value>${module.ajsc.namespace.name}</value>
275                                                                                 </systemProperty>
276                                                                                 <systemProperty>
277                                                                                         <key>AJSC_SERVICE_VERSION</key>
278                                                                                         <value>${module.ajsc.namespace.version}</value>
279                                                                                 </systemProperty>
280                                                                                 <systemProperty>
281                                                                                         <key>SOACLOUD_SERVICE_VERSION</key>
282                                                                                         <value>${project.version}</value>
283                                                                                 </systemProperty>
284                                                                                 <systemProperty>
285                                                                                         <key>server.port</key>
286                                                                                         <value>${serverPort}</value>
287                                                                                 </systemProperty>
288                                                                         </systemProperties>
289
290                                                                         <!-- Command Line Arguments to add to the java command. Here, you 
291                                                                                 can specify the port as well as the Context you want your service to run 
292                                                                                 in. Use context=/ to run in an unnamed Context (Root Context). The default 
293                                                                                 configuration of the AJSC is to run under the / Context. Setting the port 
294                                                                                 here can aid during the development phase of your service. However, you can 
295                                                                                 leave this argument out entirely, and the AJSC will default to using an Ephemeral 
296                                                                                 port. -->
297                                                                         <arguments>
298                                                                                 <argument>context=/</argument>
299                                                                                 <argument>port=${serverPort}</argument>
300                                                                                 <argument>sslport=${sslport}</argument>
301                                                                         </arguments>
302                                                                 </configuration>
303                                                         </execution>
304                                                 </executions>
305                                                 <configuration>
306                                                         <executable>java</executable>
307                                                 </configuration>
308                                                 <dependencies>
309                                                         <dependency>
310                                                                 <groupId>com.att.ajsc</groupId>
311                                                                 <artifactId>ajsc-runner</artifactId>
312                                                                 <version>${ajscRuntimeVersion}</version>
313                                                         </dependency>
314                                                 </dependencies>
315                                         </plugin>
316                                 </plugins>
317                         </build>
318                 </profile>
319         </profiles>
320         <build>
321                 <pluginManagement>
322                         <plugins>
323
324                                 <!-- purposely disable cobertura from parent pom as it is very broken 
325                                         Java1.8 code. It can't handle lamdas and comes apart with a bunch of errors -->
326
327                                 <plugin>
328                                         <groupId>org.codehaus.mojo</groupId>
329                                         <artifactId>cobertura-maven-plugin</artifactId>
330                                         <version>2.7</version>
331                                         <configuration>
332                                                 <quiet>true</quiet>
333                                         </configuration>
334                                 </plugin>
335
336
337                                 <!--This plugin's configuration is used to store Eclipse m2e settings 
338                                         only. It has no influence on the Maven build itself. -->
339                                 <plugin>
340                                         <groupId>org.eclipse.m2e</groupId>
341                                         <artifactId>lifecycle-mapping</artifactId>
342                                         <version>1.0.0</version>
343                                         <configuration>
344                                                 <lifecycleMappingMetadata>
345                                                         <pluginExecutions>
346                                                                 <pluginExecution>
347                                                                         <pluginExecutionFilter>
348                                                                                 <groupId>
349                                                                                         org.codehaus.mojo
350                                                                                 </groupId>
351                                                                                 <artifactId>
352                                                                                         properties-maven-plugin
353                                                                                 </artifactId>
354                                                                                 <versionRange>
355                                                                                         [1.0-alpha-2,)
356                                                                                 </versionRange>
357                                                                                 <goals>
358                                                                                         <goal>
359                                                                                                 write-project-properties
360                                                                                         </goal>
361                                                                                 </goals>
362                                                                         </pluginExecutionFilter>
363                                                                         <action>
364                                                                                 <ignore></ignore>
365                                                                         </action>
366                                                                 </pluginExecution>
367                                                         </pluginExecutions>
368                                                 </lifecycleMappingMetadata>
369                                         </configuration>
370                                 </plugin>
371
372                                 <plugin>
373                                         <groupId>org.apache.maven.plugins</groupId>
374                                         <artifactId>maven-dependency-plugin</artifactId>
375                                         <version>3.0.0</version>
376                                         <executions>
377                                                 <execution>
378                                                         <id>copy-installed</id>
379                                                         <phase>install</phase>
380                                                         <goals>
381                                                                 <goal>copy</goal>
382                                                         </goals>
383                                                         <configuration>
384                                                                 <artifactItems>
385                                                                         <artifactItem>
386                                                                                 <groupId>org.openecomp.aai</groupId>
387                                                                                 <artifactId>sparky-fe</artifactId>
388                                                                                 <version>1.0.0-SNAPSHOT</version>
389                                                                                 <type>war</type>
390                                                                                 <outputDirectory>${basedir}/target/swm/package/nix/dist_files${distFilesRoot}/extApps/</outputDirectory>
391                                                                                 <destFileName>aai.war</destFileName>
392                                                                         </artifactItem>
393                                                                 </artifactItems>
394                                                         </configuration>
395                                                 </execution>
396                                         </executions>
397                                 </plugin>
398                                 
399                                 <plugin>
400                                         <groupId>org.apache.maven.plugins</groupId>
401                                         <artifactId>maven-compiler-plugin</artifactId>
402                                         <configuration>
403                                                 <source>1.8</source>
404                                                 <target>1.8</target>
405                                         </configuration>
406                                 </plugin>
407
408
409                                 <plugin>
410                                         <groupId>org.apache.maven.plugins</groupId>
411                                         <artifactId>maven-resources-plugin</artifactId>
412                                         <version>2.7</version>
413                                         <executions>
414                                                 <execution>
415                                                         <id>copy-docker-file</id>
416                                                         <phase>package</phase>
417                                                         <goals>
418                                                                 <goal>copy-resources</goal>
419                                                         </goals>
420                                                         <configuration>
421                                                                 <outputDirectory>target</outputDirectory>
422                                                                 <overwrite>true</overwrite>
423                                                                 <resources>
424                                                                         <resource>
425                                                                                 <directory>${basedir}/src/main/docker</directory>
426                                                                                 <filtering>true</filtering>
427                                                                                 <includes>
428                                                                                         <include>**/*</include>
429                                                                                 </includes>
430                                                                         </resource>
431                                                                         <resource>
432                                                                                 <directory>${basedir}/src/main/scripts/</directory>
433                                                                         </resource>
434                                                                 </resources>
435                                                         </configuration>
436                                                 </execution>
437                                         </executions>
438                                 </plugin>
439
440                         </plugins>
441
442                 </pluginManagement>
443
444                 <plugins>
445                                     <plugin>
446                 <groupId>org.apache.maven.plugins</groupId>
447                 <artifactId>maven-site-plugin</artifactId>
448                 <version>3.3</version>
449                 <configuration>
450                     <reportPlugins>
451                         <plugin>
452                             <groupId>org.apache.maven.plugins</groupId>
453                             <artifactId>maven-checkstyle-plugin</artifactId>
454                             <version>2.17</version>
455                             <reportSets>
456                                 <reportSet>
457                                     <reports>
458                                         <report>checkstyle</report>
459                                     </reports>
460                                 </reportSet>
461                             </reportSets>
462                         </plugin>
463                     </reportPlugins>
464                 </configuration>
465             </plugin>
466             <plugin>
467                 <groupId>org.apache.maven.plugins</groupId>
468                 <artifactId>maven-resources-plugin</artifactId>
469                 <version>2.7</version>
470                 <executions>
471                     <execution>
472                         <id>copy-docker-file</id>
473                         <phase>package</phase>
474                         <goals>
475                             <goal>copy-resources</goal>
476                         </goals>
477                         <configuration>
478                             <outputDirectory>target</outputDirectory>
479                             <overwrite>true</overwrite>
480                             <resources>
481                                 <resource>
482                                     <directory>${basedir}/src/main/docker</directory>
483                                     <filtering>true</filtering>
484                                     <includes>
485                                         <include>**/*</include>
486                                     </includes>
487                                 </resource>
488                                 <resource>
489                                     <directory>${basedir}/src/main/scripts/</directory>
490                                 </resource>
491                             </resources>
492                         </configuration>
493                     </execution>
494                 </executions>
495             </plugin>
496             <plugin>
497                 <groupId>com.spotify</groupId>
498                 <artifactId>docker-maven-plugin</artifactId>
499                 <version>0.4.11</version>
500                 <configuration>
501                     <verbose>true</verbose>
502                     <serverId>docker-hub</serverId>
503                     <imageName>${docker.push.registry}/openecomp/${project.artifactId}</imageName>                              
504                     <dockerDirectory>${docker.location}</dockerDirectory>
505                     <imageTags>
506                         <imageTag>latest</imageTag>
507                     </imageTags>
508                     <forceTags>true</forceTags>
509                 </configuration>
510             </plugin>
511             <!-- license plugin -->
512             <plugin>
513                 <groupId>com.mycila</groupId>
514                 <artifactId>license-maven-plugin</artifactId>
515                 <version>3.0</version>
516                 <configuration>
517                     <header>LICENSE</header>
518                     <includes>
519                         <include>src/main/java/**</include>
520                     </includes>
521                 </configuration>
522                 <executions>
523                     <execution>
524                         <goals>
525                             <goal>format</goal>
526                         </goals>
527                         <phase>process-sources</phase>
528                     </execution>
529                 </executions>
530             </plugin>
531             <plugin>
532                 <groupId>org.sonatype.plugins</groupId>
533                 <artifactId>nexus-staging-maven-plugin</artifactId>
534                 <version>1.6.7</version>
535                 <extensions>true</extensions>
536                 <configuration>
537                     <nexusUrl>${nexusproxy}</nexusUrl>
538                     <stagingProfileId>176c31dfe190a</stagingProfileId>
539                     <serverId>ecomp-staging</serverId>
540                 </configuration>
541             </plugin>
542             <plugin>
543                 <groupId>org.apache.maven.plugins</groupId>
544                 <artifactId>maven-deploy-plugin</artifactId>
545                 <configuration>
546                     <skip>true</skip>
547                 </configuration>
548             </plugin>
549             <plugin>
550                 <groupId>org.codehaus.mojo</groupId>
551                 <artifactId>sonar-maven-plugin</artifactId>
552                 <version>3.2</version>
553             </plugin>
554                         <plugin>
555                                 <groupId>org.jacoco</groupId>
556                                 <artifactId>jacoco-maven-plugin</artifactId>
557                                 <version>0.7.9</version>
558                                 <configuration>
559                                         <destFile>${basedir}/target/coverage-reports/jacoco-unit.exec</destFile>
560                                         <dataFile>${basedir}/target/coverage-reports/jacoco-unit.exec</dataFile>
561                                 </configuration>
562                                 <executions>
563                                         <execution>
564                                                 <id>prepare-agent</id>
565                                                 <goals>
566                                                         <goal>prepare-agent</goal>
567                                                 </goals>
568                                         </execution>
569                                         <execution>
570                                                 <id>jacoco-site</id>
571                                                 <phase>package</phase>
572                                                 <goals>
573                                                         <goal>report</goal>
574                                                 </goals>
575                                         </execution>
576                                 </executions>
577                         </plugin>
578
579                 </plugins>
580         </build>
581
582 </project>