Cleanup project's name in Sonar
[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.openecomp.aai.sparky-be</groupId>
11         <artifactId>sparky-be</artifactId>
12         <version>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.openecomp.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.openecomp.aai.logging-service</groupId>
155                   <artifactId>common-logging</artifactId>
156                   <version>1.0.0</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>org.openecomp.ecompsdkos</groupId>
191                         <artifactId>epsdk-fw</artifactId>
192                         <version>1.1.0</version>
193                         <exclusions>
194                                 <exclusion>
195                                         <groupId>commons-logging</groupId>
196                                         <artifactId>commons-logging</artifactId>
197                                 </exclusion>
198                                 <exclusion>
199                                         <groupId>log4j</groupId>
200                                         <artifactId>log4j</artifactId>
201                                 </exclusion>
202                                 <exclusion>
203                                         <groupId>log4j</groupId>
204                                         <artifactId>apache-log4j-extras</artifactId>
205                                 </exclusion>
206                                 <exclusion>
207                                         <groupId>org.slf4j</groupId>
208                                         <artifactId>slf4j-log4j12</artifactId>
209                                 </exclusion>
210                         </exclusions>
211                 </dependency>
212
213         </dependencies>
214
215         <profiles>
216                 <profile>
217                         <id>runAjsc</id>
218                         <build>
219                                 <defaultGoal>initialize</defaultGoal>
220                                 <plugins>
221
222                                         <plugin>
223                                                 <groupId>org.codehaus.mojo</groupId>
224                                                 <artifactId>exec-maven-plugin</artifactId>
225                                                 <version>1.3.2</version>
226                                                 <executions>
227                                                         <execution>
228                                                                 <phase>initialize</phase>
229                                                                 <goals>
230                                                                         <goal>java</goal>
231                                                                 </goals>
232                                                                 <configuration>
233                                                                         <includeProjectDependencies>false</includeProjectDependencies>
234                                                                         <includePluginDependencies>true</includePluginDependencies>
235                                                                         <executable>java</executable>
236                                                                         <mainClass>com.att.ajsc.runner.Runner</mainClass>
237                                                                         <executableDependency>
238                                                                                 <groupId>com.att.ajsc</groupId>
239                                                                                 <artifactId>ajsc-runner</artifactId>
240                                                                         </executableDependency>
241                                                                         <additionalClasspathElements>
242                                                                                 <additionalClasspathElement>${basedir}/ajsc-shared-config/etc</additionalClasspathElement>
243                                                                         </additionalClasspathElements>
244
245                                                                         <environmentVariables>
246                                                                                 <AJSC_HOME>${runAjscHome}</AJSC_HOME>
247                                                                         </environmentVariables>
248
249                                                                         <!-- Main AJSC System Properties below (necessary for proper startup) -->
250                                                                         <systemProperties>
251                                                                                 <systemProperty>
252                                                                                         <key>AJSC_HOME</key>
253                                                                                         <value>${runAjscHome}</value>
254                                                                                 </systemProperty>
255                                                                                 <systemProperty>
256                                                                                         <key>CONFIG_HOME</key>
257                                                                                         <value>${basedir}/appconfig-local/</value>
258                                                                                 </systemProperty>
259                                                                                 <systemProperty>
260                                                                                         <key>AJSC_CONF_HOME</key>
261                                                                                         <value>${basedir}/bundleconfig-local</value>
262                                                                                 </systemProperty>
263                                                                                 <systemProperty>
264                                                                                         <key>logback.configurationFile</key>
265                                                                                         <value>${basedir}/ajsc-shared-config/etc/logback.xml</value>
266                                                                                 </systemProperty>
267                                                                                 <systemProperty>
268                                                                                         <key>AJSC_SHARED_CONFIG</key>
269                                                                                         <value>${basedir}/ajsc-shared-config</value>
270                                                                                 </systemProperty>
271
272                                                                                 <sysproperty>
273                                                                                         <key>AJSC_EXTERNAL_LIB_FOLDERS</key>
274                                                                                         <value>${basedir}/target/commonLibs</value>
275                                                                                 </sysproperty>
276                                                                                 <sysproperty>
277                                                                                         <key>AJSC_EXTERNAL_PROPERTIES_FOLDERS</key>
278                                                                                         <value>${basedir}/ajsc-shared-config/etc</value>
279                                                                                 </sysproperty>
280
281                                                                                 <systemProperty>
282                                                                                         <key>AJSC_SERVICE_NAMESPACE</key>
283                                                                                         <value>${module.ajsc.namespace.name}</value>
284                                                                                 </systemProperty>
285                                                                                 <systemProperty>
286                                                                                         <key>AJSC_SERVICE_VERSION</key>
287                                                                                         <value>${module.ajsc.namespace.version}</value>
288                                                                                 </systemProperty>
289                                                                                 <systemProperty>
290                                                                                         <key>SOACLOUD_SERVICE_VERSION</key>
291                                                                                         <value>${project.version}</value>
292                                                                                 </systemProperty>
293                                                                                 <systemProperty>
294                                                                                         <key>server.port</key>
295                                                                                         <value>${serverPort}</value>
296                                                                                 </systemProperty>
297                                                                         </systemProperties>
298
299                                                                         <!-- Command Line Arguments to add to the java command. Here, you 
300                                                                                 can specify the port as well as the Context you want your service to run 
301                                                                                 in. Use context=/ to run in an unnamed Context (Root Context). The default 
302                                                                                 configuration of the AJSC is to run under the / Context. Setting the port 
303                                                                                 here can aid during the development phase of your service. However, you can 
304                                                                                 leave this argument out entirely, and the AJSC will default to using an Ephemeral 
305                                                                                 port. -->
306                                                                         <arguments>
307                                                                                 <argument>context=/</argument>
308                                                                                 <argument>port=${serverPort}</argument>
309                                                                                 <argument>sslport=${sslport}</argument>
310                                                                         </arguments>
311                                                                 </configuration>
312                                                         </execution>
313                                                 </executions>
314                                                 <configuration>
315                                                         <executable>java</executable>
316                                                 </configuration>
317                                                 <dependencies>
318                                                         <dependency>
319                                                                 <groupId>com.att.ajsc</groupId>
320                                                                 <artifactId>ajsc-runner</artifactId>
321                                                                 <version>${ajscRuntimeVersion}</version>
322                                                         </dependency>
323                                                 </dependencies>
324                                         </plugin>
325                                 </plugins>
326                         </build>
327                 </profile>
328         </profiles>
329         <build>
330                 <pluginManagement>
331                         <plugins>
332
333                                 <!-- purposely disable cobertura from parent pom as it is very broken 
334                                         Java1.8 code. It can't handle lamdas and comes apart with a bunch of errors -->
335
336                                 <plugin>
337                                         <groupId>org.codehaus.mojo</groupId>
338                                         <artifactId>cobertura-maven-plugin</artifactId>
339                                         <version>2.7</version>
340                                         <configuration>
341                                                 <quiet>true</quiet>
342                                         </configuration>
343                                 </plugin>
344
345
346                                 <!--This plugin's configuration is used to store Eclipse m2e settings 
347                                         only. It has no influence on the Maven build itself. -->
348                                 <plugin>
349                                         <groupId>org.eclipse.m2e</groupId>
350                                         <artifactId>lifecycle-mapping</artifactId>
351                                         <version>1.0.0</version>
352                                         <configuration>
353                                                 <lifecycleMappingMetadata>
354                                                         <pluginExecutions>
355                                                                 <pluginExecution>
356                                                                         <pluginExecutionFilter>
357                                                                                 <groupId>
358                                                                                         org.codehaus.mojo
359                                                                                 </groupId>
360                                                                                 <artifactId>
361                                                                                         properties-maven-plugin
362                                                                                 </artifactId>
363                                                                                 <versionRange>
364                                                                                         [1.0-alpha-2,)
365                                                                                 </versionRange>
366                                                                                 <goals>
367                                                                                         <goal>
368                                                                                                 write-project-properties
369                                                                                         </goal>
370                                                                                 </goals>
371                                                                         </pluginExecutionFilter>
372                                                                         <action>
373                                                                                 <ignore></ignore>
374                                                                         </action>
375                                                                 </pluginExecution>
376                                                         </pluginExecutions>
377                                                 </lifecycleMappingMetadata>
378                                         </configuration>
379                                 </plugin>
380
381                                 <plugin>
382                                         <groupId>org.apache.maven.plugins</groupId>
383                                         <artifactId>maven-dependency-plugin</artifactId>
384                                         <version>3.0.0</version>
385                                         <executions>
386                                                 <execution>
387                                                         <id>copy-installed</id>
388                                                         <phase>install</phase>
389                                                         <goals>
390                                                                 <goal>copy</goal>
391                                                         </goals>
392                                                         <configuration>
393                                                                 <artifactItems>
394                                                                         <artifactItem>
395                                                                                 <groupId>org.openecomp.aai</groupId>
396                                                                                 <artifactId>sparky-fe</artifactId>
397                                                                                 <version>1.0.0-SNAPSHOT</version>
398                                                                                 <type>war</type>
399                                                                                 <outputDirectory>${basedir}/target/swm/package/nix/dist_files${distFilesRoot}/extApps/</outputDirectory>
400                                                                                 <destFileName>aai.war</destFileName>
401                                                                         </artifactItem>
402                                                                 </artifactItems>
403                                                         </configuration>
404                                                 </execution>
405                                         </executions>
406                                 </plugin>
407                                 
408                                 <plugin>
409                                         <groupId>org.apache.maven.plugins</groupId>
410                                         <artifactId>maven-compiler-plugin</artifactId>
411                                         <configuration>
412                                                 <source>1.8</source>
413                                                 <target>1.8</target>
414                                         </configuration>
415                                 </plugin>
416
417
418                                 <plugin>
419                                         <groupId>org.apache.maven.plugins</groupId>
420                                         <artifactId>maven-resources-plugin</artifactId>
421                                         <version>2.7</version>
422                                         <executions>
423                                                 <execution>
424                                                         <id>copy-docker-file</id>
425                                                         <phase>package</phase>
426                                                         <goals>
427                                                                 <goal>copy-resources</goal>
428                                                         </goals>
429                                                         <configuration>
430                                                                 <outputDirectory>target</outputDirectory>
431                                                                 <overwrite>true</overwrite>
432                                                                 <resources>
433                                                                         <resource>
434                                                                                 <directory>${basedir}/src/main/docker</directory>
435                                                                                 <filtering>true</filtering>
436                                                                                 <includes>
437                                                                                         <include>**/*</include>
438                                                                                 </includes>
439                                                                         </resource>
440                                                                         <resource>
441                                                                                 <directory>${basedir}/src/main/scripts/</directory>
442                                                                         </resource>
443                                                                 </resources>
444                                                         </configuration>
445                                                 </execution>
446                                         </executions>
447                                 </plugin>
448
449                         </plugins>
450
451                 </pluginManagement>
452
453                 <plugins>
454                                     <plugin>
455                 <groupId>org.apache.maven.plugins</groupId>
456                 <artifactId>maven-site-plugin</artifactId>
457                 <version>3.3</version>
458                 <configuration>
459                     <reportPlugins>
460                         <plugin>
461                             <groupId>org.apache.maven.plugins</groupId>
462                             <artifactId>maven-checkstyle-plugin</artifactId>
463                             <version>2.17</version>
464                             <reportSets>
465                                 <reportSet>
466                                     <reports>
467                                         <report>checkstyle</report>
468                                     </reports>
469                                 </reportSet>
470                             </reportSets>
471                         </plugin>
472                     </reportPlugins>
473                 </configuration>
474             </plugin>
475             <plugin>
476                 <groupId>org.apache.maven.plugins</groupId>
477                 <artifactId>maven-resources-plugin</artifactId>
478                 <version>2.7</version>
479                 <executions>
480                     <execution>
481                         <id>copy-docker-file</id>
482                         <phase>package</phase>
483                         <goals>
484                             <goal>copy-resources</goal>
485                         </goals>
486                         <configuration>
487                             <outputDirectory>target</outputDirectory>
488                             <overwrite>true</overwrite>
489                             <resources>
490                                 <resource>
491                                     <directory>${basedir}/src/main/docker</directory>
492                                     <filtering>true</filtering>
493                                     <includes>
494                                         <include>**/*</include>
495                                     </includes>
496                                 </resource>
497                                 <resource>
498                                     <directory>${basedir}/src/main/scripts/</directory>
499                                 </resource>
500                             </resources>
501                         </configuration>
502                     </execution>
503                 </executions>
504             </plugin>
505             <plugin>
506                 <groupId>com.spotify</groupId>
507                 <artifactId>docker-maven-plugin</artifactId>
508                 <version>0.4.11</version>
509                 <configuration>
510                     <verbose>true</verbose>
511                     <serverId>docker-hub</serverId>
512                     <imageName>${docker.push.registry}/openecomp/${project.artifactId}</imageName>                              
513                     <dockerDirectory>${docker.location}</dockerDirectory>
514                     <imageTags>
515                         <imageTag>latest</imageTag>
516                     </imageTags>
517                     <forceTags>true</forceTags>
518                 </configuration>
519             </plugin>
520             <!-- license plugin -->
521             <plugin>
522                 <groupId>com.mycila</groupId>
523                 <artifactId>license-maven-plugin</artifactId>
524                 <version>3.0</version>
525                 <configuration>
526                     <header>LICENSE</header>
527                     <includes>
528                         <include>src/main/java/**</include>
529                     </includes>
530                 </configuration>
531                 <executions>
532                     <execution>
533                         <goals>
534                             <goal>format</goal>
535                         </goals>
536                         <phase>process-sources</phase>
537                     </execution>
538                 </executions>
539             </plugin>
540             <plugin>
541                 <groupId>org.sonatype.plugins</groupId>
542                 <artifactId>nexus-staging-maven-plugin</artifactId>
543                 <version>1.6.7</version>
544                 <extensions>true</extensions>
545                 <configuration>
546                     <nexusUrl>${nexusproxy}</nexusUrl>
547                     <stagingProfileId>176c31dfe190a</stagingProfileId>
548                     <serverId>ecomp-staging</serverId>
549                 </configuration>
550             </plugin>
551             <plugin>
552                 <groupId>org.apache.maven.plugins</groupId>
553                 <artifactId>maven-deploy-plugin</artifactId>
554                 <configuration>
555                     <skip>true</skip>
556                 </configuration>
557             </plugin>
558             <plugin>
559                 <groupId>org.codehaus.mojo</groupId>
560                 <artifactId>sonar-maven-plugin</artifactId>
561                 <version>3.2</version>
562             </plugin>
563                         <plugin>
564                                 <groupId>org.jacoco</groupId>
565                                 <artifactId>jacoco-maven-plugin</artifactId>
566                                 <version>0.7.7.201606060606</version>
567                                 <configuration>
568                                         <dumpOnExit>true</dumpOnExit>
569                                 </configuration>
570                                 <executions>
571                                         <execution>
572                                      <id>jacoco-initialize-unit-tests</id>
573                                      <goals>
574                                            <goal>prepare-agent</goal>
575                                      </goals>
576                                      <configuration>
577                                            <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
578                                            <!-- <append>true</append> -->
579                                      </configuration>
580                                    </execution>
581                                 </executions>
582                         </plugin>
583
584                 </plugins>
585         </build>
586         <distributionManagement>
587         <repository>
588             <id>ecomp-releases</id>
589             <name>ECOMP Release Repository</name>
590             <url>${nexusproxy}/content/repositories/releases/</url>
591         </repository>
592         <snapshotRepository>
593             <id>ecomp-snapshots</id>
594             <name>ECOMP Snapshot Repository</name>
595             <url>${nexusproxy}/content/repositories/snapshots/</url>
596         </snapshotRepository>
597     </distributionManagement>
598 </project>