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