Cleanup project's name in Sonar
[aai/search-data-service.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</groupId>
11     <artifactId>search-data-service</artifactId>
12     <version>1.1.0-SNAPSHOT</version>
13     <name>aai-search-data-service</name>
14
15     <properties>
16         <module.ajsc.namespace.name>search-data-service</module.ajsc.namespace.name>
17         <module.ajsc.namespace.version>v1</module.ajsc.namespace.version>
18         <ajscRuntimeVersion>2.0.0</ajscRuntimeVersion>
19         <absoluteDistFilesRoot>/appl/${project.artifactId}</absoluteDistFilesRoot>
20         <docker.location>${basedir}/target</docker.location>
21         <nexusproxy>https://nexus.onap.org</nexusproxy>
22
23         <!-- For NO Versioning, REMOVE the /${project.version} from the <distFilesRoot>
24             property, below. PLEASE, NOTE: If your ${project.version} is a "-SNAPSHOT"
25             version, THIS will be used as your directory structure. If you do NOT want
26             this, simply remove the "-SNAPSHOT" from your <version> declaration at the
27             top of pom.xml -->
28         <distFilesRoot>/appl/${project.artifactId}/${project.version}</distFilesRoot>
29         <runAjscHome>${basedir}/target/swm/package/nix/dist_files${distFilesRoot}</runAjscHome>
30
31         <!-- For SOA Cloud Installation -->
32         <installOwnerUser>aaiadmin</installOwnerUser>
33         <installOwnerGroup>aaiadmin</installOwnerGroup>
34         <ownerManagementGroup>com.att.csid.lab</ownerManagementGroup>
35
36         <!-- Port Selection. A value of 0 will allow for dynamic port selection.
37             For local testing, you may choose to hardcode this value to something like
38             8080 -->
39         <serverPort>8080</serverPort>
40         <sslport>9509</sslport>
41
42         <testRouteOffer>workstation</testRouteOffer>
43         <testEnv>DEV</testEnv>
44         <generatedSourceDir>${basedir}/src/main/java-gen</generatedSourceDir>
45         <checkstyle.config.location>google_checks.xml</checkstyle.config.location>
46
47         <sonar.language>java</sonar.language>
48         <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
49         <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports
50         </sonar.surefire.reportsPath>
51         <sonar.jacoco.reportPath>${project.build.directory}/coverage-reports/jacoco.exec
52         </sonar.jacoco.reportPath>
53         <sonar.jacoco.reportMissing.force.zero>false</sonar.jacoco.reportMissing.force.zero>
54         <sonar.projectVersion>${project.version}</sonar.projectVersion>
55     </properties>
56
57     <dependencies>
58
59         <dependency>
60             <groupId>com.googlecode.json-simple</groupId>
61             <artifactId>json-simple</artifactId>
62             <version>1.1.1</version>
63         </dependency>
64         <dependency>
65             <groupId>dom4j</groupId>
66             <artifactId>dom4j</artifactId>
67             <version>1.6.1</version>
68             <scope>provided</scope>
69         </dependency>
70
71         <dependency>
72             <groupId>com.att.aft</groupId>
73             <artifactId>dme2</artifactId>
74             <version>3.1.200</version>
75             <scope>provided</scope>
76         </dependency>
77
78
79         <dependency>
80             <groupId>org.elasticsearch</groupId>
81             <artifactId>elasticsearch</artifactId>
82             <version>2.3.1</version>
83         </dependency>
84         <dependency>
85             <groupId>commons-io</groupId>
86             <artifactId>commons-io</artifactId>
87             <version>2.4</version>
88         </dependency>
89
90
91         <!-- Common logging framework -->
92         <dependency>
93           <groupId>org.openecomp.aai.logging-service</groupId>
94           <artifactId>common-logging</artifactId>
95           <!--<version>1.0.0-SNAPSHOT</version>-->
96           <version>1.0.0</version>
97         </dependency>
98
99         <!--  Jersey Test Framework. -->
100         <dependency>
101             <groupId>org.glassfish.jersey.test-framework.providers</groupId>
102             <artifactId>jersey-test-framework-provider-grizzly2</artifactId>
103             <version>2.23.2</version>
104             <scope>test</scope>
105         </dependency>
106
107         <!-- For JSON Mapping Support. -->
108         <dependency>
109             <groupId>com.fasterxml.jackson.core</groupId>
110             <artifactId>jackson-databind</artifactId>
111             <version>2.7.8</version>
112         </dependency>
113
114     </dependencies>
115
116     <repositories>
117         <repository>
118             <id>central</id>
119             <name>Maven 2 repository 2</name>
120             <url>http://repo2.maven.org/maven2/</url>
121         </repository>
122         <repository>
123             <id>ecomp-releases</id>
124             <name>ECOMP Release Repository</name>
125             <url>${nexusproxy}/content/repositories/releases/</url>
126         </repository>
127         <repository>
128             <id>ecomp-snapshots</id>
129             <name>ECOMP Snapshot Repository</name>
130             <url>${nexusproxy}/content/repositories/snapshots/</url>
131         </repository>
132         <repository>
133             <id>ecomp-staging</id>
134             <name>ECOMP Staging Repository</name>
135             <url>${nexusproxy}/content/repositories/staging/</url>
136         </repository>
137
138     </repositories>
139
140     <profiles>
141         <profile>
142             <id>runAjsc</id>
143             <build>
144                 <defaultGoal>initialize</defaultGoal>
145                 <plugins>
146                     <plugin>
147                         <groupId>org.codehaus.mojo</groupId>
148                         <artifactId>exec-maven-plugin</artifactId>
149                         <version>1.3.2</version>
150                         <executions>
151                             <execution>
152                                 <phase>initialize</phase>
153                                 <goals>
154                                     <goal>java</goal>
155                                 </goals>
156                                 <configuration>
157                                     <includeProjectDependencies>false</includeProjectDependencies>
158                                     <includePluginDependencies>true</includePluginDependencies>
159                                     <executable>java</executable>
160                                     <mainClass>com.att.ajsc.runner.Runner</mainClass>
161                                     <executableDependency>
162                                         <groupId>com.att.ajsc</groupId>
163                                         <artifactId>ajsc-runner</artifactId>
164                                     </executableDependency>
165                                     <additionalClasspathElements>
166                                         <additionalClasspathElement>${basedir}/ajsc-shared-config/etc
167                                         </additionalClasspathElement>
168                                     </additionalClasspathElements>
169
170                                     <environmentVariables>
171                                         <AJSC_HOME>${runAjscHome}</AJSC_HOME>
172                                     </environmentVariables>
173
174                                     <!-- Main AJSC System Properties below (necessary for proper startup) -->
175                                     <systemProperties>
176                                         <systemProperty>
177                                             <key>AJSC_HOME</key>
178                                             <value>${runAjscHome}</value>
179                                         </systemProperty>
180                                         <systemProperty>
181                                             <key>CONFIG_HOME</key>
182                                             <value>${basedir}/appconfig-local/</value>
183                                         </systemProperty>
184                                         <systemProperty>
185                                             <key>AJSC_CONF_HOME</key>
186                                             <value>${basedir}/bundleconfig-local</value>
187                                         </systemProperty>
188                                         <systemProperty>
189                                             <key>logback.configurationFile</key>
190                                             <value>${basedir}/ajsc-shared-config/etc/logback.xml</value>
191                                         </systemProperty>
192                                         <systemProperty>
193                                             <key>AJSC_SHARED_CONFIG</key>
194                                             <value>${basedir}/ajsc-shared-config</value>
195                                         </systemProperty>
196
197                                         <sysproperty>
198                                             <key>AJSC_EXTERNAL_LIB_FOLDERS</key>
199                                             <value>${basedir}/target/commonLibs</value>
200                                         </sysproperty>
201                                         <sysproperty>
202                                             <key>AJSC_EXTERNAL_PROPERTIES_FOLDERS</key>
203                                             <value>${basedir}/ajsc-shared-config/etc</value>
204                                         </sysproperty>
205
206                                         <systemProperty>
207                                             <key>AJSC_SERVICE_NAMESPACE</key>
208                                             <value>${module.ajsc.namespace.name}</value>
209                                         </systemProperty>
210                                         <systemProperty>
211                                             <key>AJSC_SERVICE_VERSION</key>
212                                             <value>${module.ajsc.namespace.version}</value>
213                                         </systemProperty>
214                                         <systemProperty>
215                                             <key>SOACLOUD_SERVICE_VERSION</key>
216                                             <value>${project.version}</value>
217                                         </systemProperty>
218                                         <systemProperty>
219                                             <key>server.port</key>
220                                             <value>${serverPort}</value>
221                                         </systemProperty>
222                                     </systemProperties>
223
224                                     <!-- Command Line Arguments to add to the java command. Here, you
225                                         can specify the port as well as the Context you want your service to run
226                                         in. Use context=/ to run in an unnamed Context (Root Context). The default
227                                         configuration of the AJSC is to run under the / Context. Setting the port
228                                         here can aid during the development phase of your service. However, you can
229                                         leave this argument out entirely, and the AJSC will default to using an Ephemeral
230                                         port. -->
231                                     <arguments>
232                                         <argument>context=//</argument>
233                                         <argument>port=${serverPort}</argument>
234                                         <argument>sslport=${sslport}</argument>
235                                     </arguments>
236                                 </configuration>
237                             </execution>
238                         </executions>
239                         <configuration>
240                             <executable>java</executable>
241                         </configuration>
242                         <dependencies>
243                             <dependency>
244                                 <groupId>com.att.ajsc</groupId>
245                                 <artifactId>ajsc-runner</artifactId>
246                                 <version>${ajscRuntimeVersion}</version>
247                             </dependency>
248                         </dependencies>
249                     </plugin>
250                 </plugins>
251             </build>
252         </profile>
253     </profiles>
254     <dependencyManagement>
255         <dependencies>
256             <dependency>
257                 <groupId>ch.qos.logback</groupId>
258                 <artifactId>logback-classic</artifactId>
259                 <version>1.1.1</version>
260             </dependency>
261             <dependency>
262                 <groupId>com.fasterxml.jackson.core</groupId>
263                 <artifactId>jackson-core</artifactId>
264                 <version>2.7.8</version>
265             </dependency>
266         </dependencies>
267     </dependencyManagement>
268
269     <build>
270         <plugins>
271             <!-- Checkstyle plugin - used to report on compliance with -->
272             <!-- the Google style guide. -->
273             <plugin>
274                 <groupId>org.apache.maven.plugins</groupId>
275                 <artifactId>maven-site-plugin</artifactId>
276                 <version>3.3</version>
277                 <configuration>
278                     <reportPlugins>
279                         <plugin>
280                             <groupId>org.apache.maven.plugins</groupId>
281                             <artifactId>maven-checkstyle-plugin</artifactId>
282                             <version>2.17</version>
283                             <reportSets>
284                                 <reportSet>
285                                     <reports>
286                                         <report>checkstyle</report>
287                                     </reports>
288                                 </reportSet>
289                             </reportSets>
290                         </plugin>
291                     </reportPlugins>
292                 </configuration>
293             </plugin>
294             <!-- This plugin overrides the compiler settings to use java 1.8 -->
295             <plugin>
296                 <groupId>org.apache.maven.plugins</groupId>
297                 <artifactId>maven-compiler-plugin</artifactId>
298                 <version>3.1</version>
299                 <configuration>
300                     <compilerId>groovy-eclipse-compiler</compilerId>
301                     <verbose>true</verbose>
302                     <source>1.8</source>
303                     <target>1.8</target>
304                 </configuration>
305                 <dependencies>
306                     <dependency>
307                         <groupId>org.codehaus.groovy</groupId>
308                         <artifactId>groovy-eclipse-compiler</artifactId>
309                         <version>2.9.0-01</version>
310                     </dependency>
311                     <dependency>
312                         <groupId>org.codehaus.groovy</groupId>
313                         <artifactId>groovy-eclipse-batch</artifactId>
314                         <version>2.3.4-01</version>
315                     </dependency>
316                 </dependencies>
317             </plugin>
318             <plugin>
319                 <groupId>com.spotify</groupId>
320                 <artifactId>docker-maven-plugin</artifactId>
321                 <version>0.4.11</version>
322                 <configuration>
323                     <verbose>true</verbose>
324                     <serverId>docker-hub</serverId>
325                     <imageName>${docker.push.registry}/openecomp/${project.artifactId}</imageName>
326                     <dockerDirectory>${docker.location}</dockerDirectory>
327                     <imageTags>
328                         <imageTag>latest</imageTag>
329                     </imageTags>
330                     <forceTags>true</forceTags>
331                 </configuration>
332             </plugin>
333             <plugin>
334                 <groupId>org.sonatype.plugins</groupId>
335                 <artifactId>nexus-staging-maven-plugin</artifactId>
336                 <version>1.6.7</version>
337                 <extensions>true</extensions>
338                 <configuration>
339                     <nexusUrl>${nexusproxy}</nexusUrl>
340                     <stagingProfileId>176c31dfe190a</stagingProfileId>
341                     <serverId>ecomp-staging</serverId>
342                 </configuration>
343             </plugin>
344
345             <!-- This plugin is used to generate Java POJO's from json format schema
346                 file. -->
347             <plugin>
348                 <groupId>org.jsonschema2pojo</groupId>
349                 <artifactId>jsonschema2pojo-maven-plugin</artifactId>
350                 <version>0.4.26</version>
351                 <configuration>
352                     <addCompileSourceRoot>true</addCompileSourceRoot>
353                     <sourceDirectory>${basedir}/src/main/resources/json/schema</sourceDirectory>
354                     <outputDirectory>${generatedSourceDir}</outputDirectory>
355                     <targetPackage>org.openecomp.sa.rest</targetPackage>
356                 </configuration>
357                 <executions>
358                     <execution>
359                         <goals>
360                             <goal>generate</goal>
361                         </goals>
362                     </execution>
363                 </executions>
364             </plugin>
365
366             <plugin>
367                 <groupId>org.apache.maven.plugins</groupId>
368                 <artifactId>maven-resources-plugin</artifactId>
369                 <version>2.7</version>
370                 <executions>
371                     <execution>
372                         <id>copy-docker-file</id>
373                         <phase>package</phase>
374                         <goals>
375                             <goal>copy-resources</goal>
376                         </goals>
377                         <configuration>
378                             <outputDirectory>target</outputDirectory>
379                             <overwrite>true</overwrite>
380                             <resources>
381                                 <resource>
382                                     <directory>${basedir}/src/main/docker</directory>
383                                     <filtering>true</filtering>
384                                     <includes>
385                                         <include>**/*</include>
386                                     </includes>
387                                 </resource>
388                                 <resource>
389                                     <directory>${basedir}/src/main/bin/</directory>
390                                 </resource>
391                             </resources>
392                         </configuration>
393                     </execution>
394                 </executions>
395             </plugin>
396             <!-- license plugin -->
397             <plugin>
398                 <groupId>com.mycila</groupId>
399                 <artifactId>license-maven-plugin</artifactId>
400                 <version>3.0</version>
401                 <configuration>
402                     <header>License.txt</header>
403                     <includes>
404                         <include>src/main/java/**</include>
405                         <include>src/test/java/**</include>
406                     </includes>
407                 </configuration>
408                 <executions>
409                     <execution>
410                         <goals>
411                             <goal>format</goal>
412                         </goals>
413                         <phase>process-sources</phase>
414                     </execution>
415                 </executions>
416             </plugin>
417
418             <plugin>
419                 <groupId>org.apache.maven.plugins</groupId>
420                 <artifactId>maven-deploy-plugin</artifactId>
421                 <configuration>
422                     <skip>true</skip>
423                 </configuration>
424             </plugin>
425             <plugin>
426                 <groupId>org.codehaus.mojo</groupId>
427                 <artifactId>sonar-maven-plugin</artifactId>
428                 <version>3.2</version>
429             </plugin>
430             <plugin>
431                 <groupId>org.jacoco</groupId>
432                 <artifactId>jacoco-maven-plugin</artifactId>
433                 <version>0.7.7.201606060606</version>
434                 <configuration>
435                     <dumpOnExit>true</dumpOnExit>
436                 </configuration>
437                 <executions>
438                     <execution>
439                         <id>jacoco-initialize-unit-tests</id>
440                         <goals>
441                             <goal>prepare-agent</goal>
442                         </goals>
443                         <configuration>
444                             <destFile>${project.build.directory}/coverage-reports/jacoco.exec
445                             </destFile>
446                             <!-- <append>true</append> -->
447                         </configuration>
448                     </execution>
449                 </executions>
450             </plugin>
451
452             <!-- This plugin adds the generated sources directory to the clean lifecycle
453                 so that automatically generated code will get cleaned up properly. -->
454             <plugin>
455                 <artifactId>maven-clean-plugin</artifactId>
456                 <version>3.0.0</version>
457                 <configuration>
458                     <filesets>
459                         <fileset>
460                             <directory>${generatedSourceDir}</directory>
461                         </fileset>
462                     </filesets>
463                 </configuration>
464             </plugin>
465         </plugins>
466     </build>
467     <distributionManagement>
468         <repository>
469             <id>ecomp-releases</id>
470             <name>ECOMP Release Repository</name>
471             <url>${nexusproxy}/content/repositories/releases/</url>
472         </repository>
473         <snapshotRepository>
474             <id>ecomp-snapshots</id>
475             <name>ECOMP Snapshot Repository</name>
476             <url>${nexusproxy}/content/repositories/snapshots/</url>
477         </snapshotRepository>
478         <site>
479             <id>ecomp-javadoc</id>
480             <url>dav:https://ecomp-nexus:8443/repository/aai/search-data-service-javadoc/${project.version}</url>
481         </site>
482     </distributionManagement>
483 </project>