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