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