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