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>
15 <module.ajsc.namespace.name>search-data-service</module.ajsc.namespace.name>
16 <module.ajsc.namespace.version>v1</module.ajsc.namespace.version>
17 <ajscRuntimeVersion>2.0.0</ajscRuntimeVersion>
18 <absoluteDistFilesRoot>/appl/${project.artifactId}</absoluteDistFilesRoot>
19 <docker.location>${basedir}/target</docker.location>
20 <nexusproxy>https://nexus.onap.org</nexusproxy>
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
27 <distFilesRoot>/appl/${project.artifactId}/${project.version}</distFilesRoot>
28 <runAjscHome>${basedir}/target/swm/package/nix/dist_files${distFilesRoot}</runAjscHome>
30 <!-- For SOA Cloud Installation -->
31 <installOwnerUser>aaiadmin</installOwnerUser>
32 <installOwnerGroup>aaiadmin</installOwnerGroup>
33 <ownerManagementGroup>com.att.csid.lab</ownerManagementGroup>
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
38 <serverPort>8080</serverPort>
39 <sslport>9509</sslport>
41 <testRouteOffer>workstation</testRouteOffer>
42 <testEnv>DEV</testEnv>
43 <generatedSourceDir>${basedir}/src/main/java-gen</generatedSourceDir>
44 <checkstyle.config.location>google_checks.xml</checkstyle.config.location>
46 <sonar.language>java</sonar.language>
47 <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
48 <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports
49 </sonar.surefire.reportsPath>
50 <sonar.jacoco.reportPath>${project.build.directory}/coverage-reports/jacoco.exec
51 </sonar.jacoco.reportPath>
52 <sonar.jacoco.reportMissing.force.zero>false</sonar.jacoco.reportMissing.force.zero>
53 <sonar.projectVersion>${project.version}</sonar.projectVersion>
59 <groupId>com.googlecode.json-simple</groupId>
60 <artifactId>json-simple</artifactId>
61 <version>1.1.1</version>
64 <groupId>dom4j</groupId>
65 <artifactId>dom4j</artifactId>
66 <version>1.6.1</version>
67 <scope>provided</scope>
71 <groupId>com.att.aft</groupId>
72 <artifactId>dme2</artifactId>
73 <version>3.1.200</version>
74 <scope>provided</scope>
79 <groupId>org.elasticsearch</groupId>
80 <artifactId>elasticsearch</artifactId>
81 <version>2.3.1</version>
84 <groupId>commons-io</groupId>
85 <artifactId>commons-io</artifactId>
86 <version>2.4</version>
90 <!-- Common logging framework -->
92 <groupId>org.openecomp.aai.logging-service</groupId>
93 <artifactId>common-logging</artifactId>
94 <version>1.0.0-SNAPSHOT</version>
97 <!-- Jersey Test Framework. -->
99 <groupId>org.glassfish.jersey.test-framework.providers</groupId>
100 <artifactId>jersey-test-framework-provider-grizzly2</artifactId>
101 <version>2.23.2</version>
105 <!-- For JSON Mapping Support. -->
107 <groupId>com.fasterxml.jackson.core</groupId>
108 <artifactId>jackson-databind</artifactId>
109 <version>2.7.8</version>
117 <name>Maven 2 repository 2</name>
118 <url>http://repo2.maven.org/maven2/</url>
121 <id>ecomp-releases</id>
122 <name>ECOMP Release Repository</name>
123 <url>${nexusproxy}/content/repositories/releases/</url>
126 <id>ecomp-snapshots</id>
127 <name>ECOMP Snapshot Repository</name>
128 <url>${nexusproxy}/content/repositories/snapshots/</url>
131 <id>ecomp-staging</id>
132 <name>ECOMP Staging Repository</name>
133 <url>${nexusproxy}/content/repositories/staging/</url>
142 <defaultGoal>initialize</defaultGoal>
145 <groupId>org.codehaus.mojo</groupId>
146 <artifactId>exec-maven-plugin</artifactId>
147 <version>1.3.2</version>
150 <phase>initialize</phase>
155 <includeProjectDependencies>false</includeProjectDependencies>
156 <includePluginDependencies>true</includePluginDependencies>
157 <executable>java</executable>
158 <mainClass>com.att.ajsc.runner.Runner</mainClass>
159 <executableDependency>
160 <groupId>com.att.ajsc</groupId>
161 <artifactId>ajsc-runner</artifactId>
162 </executableDependency>
163 <additionalClasspathElements>
164 <additionalClasspathElement>${basedir}/ajsc-shared-config/etc
165 </additionalClasspathElement>
166 </additionalClasspathElements>
168 <environmentVariables>
169 <AJSC_HOME>${runAjscHome}</AJSC_HOME>
170 </environmentVariables>
172 <!-- Main AJSC System Properties below (necessary for proper startup) -->
176 <value>${runAjscHome}</value>
179 <key>CONFIG_HOME</key>
180 <value>${basedir}/appconfig-local/</value>
183 <key>AJSC_CONF_HOME</key>
184 <value>${basedir}/bundleconfig-local</value>
187 <key>logback.configurationFile</key>
188 <value>${basedir}/ajsc-shared-config/etc/logback.xml</value>
191 <key>AJSC_SHARED_CONFIG</key>
192 <value>${basedir}/ajsc-shared-config</value>
196 <key>AJSC_EXTERNAL_LIB_FOLDERS</key>
197 <value>${basedir}/target/commonLibs</value>
200 <key>AJSC_EXTERNAL_PROPERTIES_FOLDERS</key>
201 <value>${basedir}/ajsc-shared-config/etc</value>
205 <key>AJSC_SERVICE_NAMESPACE</key>
206 <value>${module.ajsc.namespace.name}</value>
209 <key>AJSC_SERVICE_VERSION</key>
210 <value>${module.ajsc.namespace.version}</value>
213 <key>SOACLOUD_SERVICE_VERSION</key>
214 <value>${project.version}</value>
217 <key>server.port</key>
218 <value>${serverPort}</value>
222 <!-- Command Line Arguments to add to the java command. Here, you
223 can specify the port as well as the Context you want your service to run
224 in. Use context=/ to run in an unnamed Context (Root Context). The default
225 configuration of the AJSC is to run under the / Context. Setting the port
226 here can aid during the development phase of your service. However, you can
227 leave this argument out entirely, and the AJSC will default to using an Ephemeral
230 <argument>context=//</argument>
231 <argument>port=${serverPort}</argument>
232 <argument>sslport=${sslport}</argument>
238 <executable>java</executable>
242 <groupId>com.att.ajsc</groupId>
243 <artifactId>ajsc-runner</artifactId>
244 <version>${ajscRuntimeVersion}</version>
252 <dependencyManagement>
255 <groupId>ch.qos.logback</groupId>
256 <artifactId>logback-classic</artifactId>
257 <version>1.1.1</version>
260 <groupId>com.fasterxml.jackson.core</groupId>
261 <artifactId>jackson-core</artifactId>
262 <version>2.7.8</version>
265 </dependencyManagement>
269 <!-- Checkstyle plugin - used to report on compliance with -->
270 <!-- the Google style guide. -->
272 <groupId>org.apache.maven.plugins</groupId>
273 <artifactId>maven-site-plugin</artifactId>
274 <version>3.3</version>
278 <groupId>org.apache.maven.plugins</groupId>
279 <artifactId>maven-checkstyle-plugin</artifactId>
280 <version>2.17</version>
284 <report>checkstyle</report>
292 <!-- This plugin overrides the compiler settings to use java 1.8 -->
294 <groupId>org.apache.maven.plugins</groupId>
295 <artifactId>maven-compiler-plugin</artifactId>
296 <version>3.1</version>
298 <compilerId>groovy-eclipse-compiler</compilerId>
299 <verbose>true</verbose>
305 <groupId>org.codehaus.groovy</groupId>
306 <artifactId>groovy-eclipse-compiler</artifactId>
307 <version>2.9.0-01</version>
310 <groupId>org.codehaus.groovy</groupId>
311 <artifactId>groovy-eclipse-batch</artifactId>
312 <version>2.3.4-01</version>
317 <groupId>com.spotify</groupId>
318 <artifactId>docker-maven-plugin</artifactId>
319 <version>0.4.11</version>
321 <verbose>true</verbose>
322 <serverId>docker-hub</serverId>
323 <imageName>${docker.push.registry}/openecomp/${project.artifactId}</imageName>
324 <dockerDirectory>${docker.location}</dockerDirectory>
326 <imageTag>latest</imageTag>
328 <forceTags>true</forceTags>
332 <groupId>org.sonatype.plugins</groupId>
333 <artifactId>nexus-staging-maven-plugin</artifactId>
334 <version>1.6.7</version>
335 <extensions>true</extensions>
337 <nexusUrl>${nexusproxy}</nexusUrl>
338 <stagingProfileId>176c31dfe190a</stagingProfileId>
339 <serverId>ecomp-staging</serverId>
343 <!-- This plugin is used to generate Java POJO's from json format schema
346 <groupId>org.jsonschema2pojo</groupId>
347 <artifactId>jsonschema2pojo-maven-plugin</artifactId>
348 <version>0.4.26</version>
350 <addCompileSourceRoot>true</addCompileSourceRoot>
351 <sourceDirectory>${basedir}/src/main/resources/json/schema</sourceDirectory>
352 <outputDirectory>${generatedSourceDir}</outputDirectory>
353 <targetPackage>org.openecomp.sa.rest</targetPackage>
358 <goal>generate</goal>
365 <groupId>org.apache.maven.plugins</groupId>
366 <artifactId>maven-resources-plugin</artifactId>
367 <version>2.7</version>
370 <id>copy-docker-file</id>
371 <phase>package</phase>
373 <goal>copy-resources</goal>
376 <outputDirectory>target</outputDirectory>
377 <overwrite>true</overwrite>
380 <directory>${basedir}/src/main/docker</directory>
381 <filtering>true</filtering>
383 <include>**/*</include>
387 <directory>${basedir}/src/main/bin/</directory>
394 <!-- license plugin -->
396 <groupId>com.mycila</groupId>
397 <artifactId>license-maven-plugin</artifactId>
398 <version>3.0</version>
400 <header>License.txt</header>
402 <include>src/main/java/**</include>
403 <include>src/test/java/**</include>
411 <phase>process-sources</phase>
417 <groupId>org.apache.maven.plugins</groupId>
418 <artifactId>maven-deploy-plugin</artifactId>
424 <groupId>org.codehaus.mojo</groupId>
425 <artifactId>sonar-maven-plugin</artifactId>
426 <version>3.2</version>
429 <groupId>org.jacoco</groupId>
430 <artifactId>jacoco-maven-plugin</artifactId>
431 <version>0.7.7.201606060606</version>
433 <dumpOnExit>true</dumpOnExit>
437 <id>jacoco-initialize-unit-tests</id>
439 <goal>prepare-agent</goal>
442 <destFile>${project.build.directory}/coverage-reports/jacoco.exec
444 <!-- <append>true</append> -->
450 <!-- This plugin adds the generated sources directory to the clean lifecycle
451 so that automatically generated code will get cleaned up properly. -->
453 <artifactId>maven-clean-plugin</artifactId>
454 <version>3.0.0</version>
458 <directory>${generatedSourceDir}</directory>
465 <distributionManagement>
467 <id>ecomp-releases</id>
468 <name>ECOMP Release Repository</name>
469 <url>${nexusproxy}/content/repositories/releases/</url>
472 <id>ecomp-snapshots</id>
473 <name>ECOMP Snapshot Repository</name>
474 <url>${nexusproxy}/content/repositories/snapshots/</url>
475 </snapshotRepository>
477 <id>ecomp-javadoc</id>
478 <url>dav:https://ecomp-nexus:8443/repository/aai/search-data-service-javadoc/${project.version}</url>
480 </distributionManagement>