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>
6 <artifactId>ajsc-archetype-parent</artifactId>
7 <groupId>com.att.ajsc</groupId>
8 <version>2.0.0</version>
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>
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>
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
28 <distFilesRoot>/appl/${project.artifactId}/${project.version}</distFilesRoot>
29 <runAjscHome>${basedir}/target/swm/package/nix/dist_files${distFilesRoot}</runAjscHome>
31 <!-- For SOA Cloud Installation -->
32 <installOwnerUser>aaiadmin</installOwnerUser>
33 <installOwnerGroup>aaiadmin</installOwnerGroup>
34 <ownerManagementGroup>com.att.csid.lab</ownerManagementGroup>
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
39 <serverPort>8080</serverPort>
40 <sslport>9509</sslport>
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>
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>
60 <groupId>com.googlecode.json-simple</groupId>
61 <artifactId>json-simple</artifactId>
62 <version>1.1.1</version>
65 <groupId>dom4j</groupId>
66 <artifactId>dom4j</artifactId>
67 <version>1.6.1</version>
68 <scope>provided</scope>
72 <groupId>com.att.aft</groupId>
73 <artifactId>dme2</artifactId>
74 <version>3.1.200</version>
75 <scope>provided</scope>
80 <groupId>org.elasticsearch</groupId>
81 <artifactId>elasticsearch</artifactId>
82 <version>2.3.1</version>
85 <groupId>commons-io</groupId>
86 <artifactId>commons-io</artifactId>
87 <version>2.4</version>
91 <!-- Common logging framework -->
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>
99 <!-- Jersey Test Framework. -->
101 <groupId>org.glassfish.jersey.test-framework.providers</groupId>
102 <artifactId>jersey-test-framework-provider-grizzly2</artifactId>
103 <version>2.23.2</version>
107 <!-- For JSON Mapping Support. -->
109 <groupId>com.fasterxml.jackson.core</groupId>
110 <artifactId>jackson-databind</artifactId>
111 <version>2.7.8</version>
119 <name>Maven 2 repository 2</name>
120 <url>http://repo2.maven.org/maven2/</url>
123 <id>ecomp-releases</id>
124 <name>ECOMP Release Repository</name>
125 <url>${nexusproxy}/content/repositories/releases/</url>
128 <id>ecomp-snapshots</id>
129 <name>ECOMP Snapshot Repository</name>
130 <url>${nexusproxy}/content/repositories/snapshots/</url>
133 <id>ecomp-staging</id>
134 <name>ECOMP Staging Repository</name>
135 <url>${nexusproxy}/content/repositories/staging/</url>
144 <defaultGoal>initialize</defaultGoal>
147 <groupId>org.codehaus.mojo</groupId>
148 <artifactId>exec-maven-plugin</artifactId>
149 <version>1.3.2</version>
152 <phase>initialize</phase>
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>
170 <environmentVariables>
171 <AJSC_HOME>${runAjscHome}</AJSC_HOME>
172 </environmentVariables>
174 <!-- Main AJSC System Properties below (necessary for proper startup) -->
178 <value>${runAjscHome}</value>
181 <key>CONFIG_HOME</key>
182 <value>${basedir}/appconfig-local/</value>
185 <key>AJSC_CONF_HOME</key>
186 <value>${basedir}/bundleconfig-local</value>
189 <key>logback.configurationFile</key>
190 <value>${basedir}/ajsc-shared-config/etc/logback.xml</value>
193 <key>AJSC_SHARED_CONFIG</key>
194 <value>${basedir}/ajsc-shared-config</value>
198 <key>AJSC_EXTERNAL_LIB_FOLDERS</key>
199 <value>${basedir}/target/commonLibs</value>
202 <key>AJSC_EXTERNAL_PROPERTIES_FOLDERS</key>
203 <value>${basedir}/ajsc-shared-config/etc</value>
207 <key>AJSC_SERVICE_NAMESPACE</key>
208 <value>${module.ajsc.namespace.name}</value>
211 <key>AJSC_SERVICE_VERSION</key>
212 <value>${module.ajsc.namespace.version}</value>
215 <key>SOACLOUD_SERVICE_VERSION</key>
216 <value>${project.version}</value>
219 <key>server.port</key>
220 <value>${serverPort}</value>
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
232 <argument>context=//</argument>
233 <argument>port=${serverPort}</argument>
234 <argument>sslport=${sslport}</argument>
240 <executable>java</executable>
244 <groupId>com.att.ajsc</groupId>
245 <artifactId>ajsc-runner</artifactId>
246 <version>${ajscRuntimeVersion}</version>
254 <dependencyManagement>
257 <groupId>ch.qos.logback</groupId>
258 <artifactId>logback-classic</artifactId>
259 <version>1.1.1</version>
262 <groupId>com.fasterxml.jackson.core</groupId>
263 <artifactId>jackson-core</artifactId>
264 <version>2.7.8</version>
267 </dependencyManagement>
271 <!-- Checkstyle plugin - used to report on compliance with -->
272 <!-- the Google style guide. -->
274 <groupId>org.apache.maven.plugins</groupId>
275 <artifactId>maven-site-plugin</artifactId>
276 <version>3.3</version>
280 <groupId>org.apache.maven.plugins</groupId>
281 <artifactId>maven-checkstyle-plugin</artifactId>
282 <version>2.17</version>
286 <report>checkstyle</report>
294 <!-- This plugin overrides the compiler settings to use java 1.8 -->
296 <groupId>org.apache.maven.plugins</groupId>
297 <artifactId>maven-compiler-plugin</artifactId>
298 <version>3.1</version>
300 <compilerId>groovy-eclipse-compiler</compilerId>
301 <verbose>true</verbose>
307 <groupId>org.codehaus.groovy</groupId>
308 <artifactId>groovy-eclipse-compiler</artifactId>
309 <version>2.9.0-01</version>
312 <groupId>org.codehaus.groovy</groupId>
313 <artifactId>groovy-eclipse-batch</artifactId>
314 <version>2.3.4-01</version>
319 <groupId>com.spotify</groupId>
320 <artifactId>docker-maven-plugin</artifactId>
321 <version>0.4.11</version>
323 <verbose>true</verbose>
324 <serverId>docker-hub</serverId>
325 <imageName>${docker.push.registry}/openecomp/${project.artifactId}</imageName>
326 <dockerDirectory>${docker.location}</dockerDirectory>
328 <imageTag>latest</imageTag>
330 <forceTags>true</forceTags>
334 <groupId>org.sonatype.plugins</groupId>
335 <artifactId>nexus-staging-maven-plugin</artifactId>
336 <version>1.6.7</version>
337 <extensions>true</extensions>
339 <nexusUrl>${nexusproxy}</nexusUrl>
340 <stagingProfileId>176c31dfe190a</stagingProfileId>
341 <serverId>ecomp-staging</serverId>
345 <!-- This plugin is used to generate Java POJO's from json format schema
348 <groupId>org.jsonschema2pojo</groupId>
349 <artifactId>jsonschema2pojo-maven-plugin</artifactId>
350 <version>0.4.26</version>
352 <addCompileSourceRoot>true</addCompileSourceRoot>
353 <sourceDirectory>${basedir}/src/main/resources/json/schema</sourceDirectory>
354 <outputDirectory>${generatedSourceDir}</outputDirectory>
355 <targetPackage>org.openecomp.sa.rest</targetPackage>
360 <goal>generate</goal>
367 <groupId>org.apache.maven.plugins</groupId>
368 <artifactId>maven-resources-plugin</artifactId>
369 <version>2.7</version>
372 <id>copy-docker-file</id>
373 <phase>package</phase>
375 <goal>copy-resources</goal>
378 <outputDirectory>target</outputDirectory>
379 <overwrite>true</overwrite>
382 <directory>${basedir}/src/main/docker</directory>
383 <filtering>true</filtering>
385 <include>**/*</include>
389 <directory>${basedir}/src/main/bin/</directory>
396 <!-- license plugin -->
398 <groupId>com.mycila</groupId>
399 <artifactId>license-maven-plugin</artifactId>
400 <version>3.0</version>
402 <header>License.txt</header>
404 <include>src/main/java/**</include>
405 <include>src/test/java/**</include>
413 <phase>process-sources</phase>
419 <groupId>org.apache.maven.plugins</groupId>
420 <artifactId>maven-deploy-plugin</artifactId>
426 <groupId>org.codehaus.mojo</groupId>
427 <artifactId>sonar-maven-plugin</artifactId>
428 <version>3.2</version>
431 <groupId>org.jacoco</groupId>
432 <artifactId>jacoco-maven-plugin</artifactId>
433 <version>0.7.7.201606060606</version>
435 <dumpOnExit>true</dumpOnExit>
439 <id>jacoco-initialize-unit-tests</id>
441 <goal>prepare-agent</goal>
444 <destFile>${project.build.directory}/coverage-reports/jacoco.exec
446 <!-- <append>true</append> -->
452 <!-- This plugin adds the generated sources directory to the clean lifecycle
453 so that automatically generated code will get cleaned up properly. -->
455 <artifactId>maven-clean-plugin</artifactId>
456 <version>3.0.0</version>
460 <directory>${generatedSourceDir}</directory>
467 <distributionManagement>
469 <id>ecomp-releases</id>
470 <name>ECOMP Release Repository</name>
471 <url>${nexusproxy}/content/repositories/releases/</url>
474 <id>ecomp-snapshots</id>
475 <name>ECOMP Snapshot Repository</name>
476 <url>${nexusproxy}/content/repositories/snapshots/</url>
477 </snapshotRepository>
479 <id>ecomp-javadoc</id>
480 <url>dav:https://ecomp-nexus:8443/repository/aai/search-data-service-javadoc/${project.version}</url>
482 </distributionManagement>