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