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.0.0</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>
20 <!-- For NO Versioning, REMOVE the /${project.version} from the <distFilesRoot>
21 property, below. PLEASE, NOTE: If your ${project.version} is a "-SNAPSHOT"
22 version, THIS will be used as your directory structure. If you do NOT want
23 this, simply remove the "-SNAPSHOT" from your <version> declaration at the
25 <distFilesRoot>/appl/${project.artifactId}/${project.version}</distFilesRoot>
26 <runAjscHome>${basedir}/target/swm/package/nix/dist_files${distFilesRoot}</runAjscHome>
28 <!-- For SOA Cloud Installation -->
29 <installOwnerUser>aaiadmin</installOwnerUser>
30 <installOwnerGroup>aaiadmin</installOwnerGroup>
31 <ownerManagementGroup>com.att.csid.lab</ownerManagementGroup>
33 <!-- Port Selection. A value of 0 will allow for dynamic port selection.
34 For local testing, you may choose to hardcode this value to something like
36 <serverPort>8080</serverPort>
37 <sslport>9509</sslport>
39 <testRouteOffer>workstation</testRouteOffer>
40 <testEnv>DEV</testEnv>
41 <generatedSourceDir>${basedir}/src/main/java-gen</generatedSourceDir>
42 <checkstyle.config.location>google_checks.xml</checkstyle.config.location>
48 <groupId>com.googlecode.json-simple</groupId>
49 <artifactId>json-simple</artifactId>
50 <version>1.1.1</version>
53 <groupId>dom4j</groupId>
54 <artifactId>dom4j</artifactId>
55 <version>1.6.1</version>
56 <scope>provided</scope>
60 <groupId>com.att.aft</groupId>
61 <artifactId>dme2</artifactId>
62 <version>3.1.200</version>
63 <scope>provided</scope>
68 <groupId>org.elasticsearch</groupId>
69 <artifactId>elasticsearch</artifactId>
70 <version>2.3.1</version>
73 <groupId>commons-io</groupId>
74 <artifactId>commons-io</artifactId>
75 <version>2.4</version>
79 <!-- Common logging framework -->
81 <groupId>org.openecomp.aai.logging-service</groupId>
82 <artifactId>common-logging</artifactId>
83 <version>1.0.0-SNAPSHOT</version>
86 <!-- Jersey Test Framework. -->
88 <groupId>org.glassfish.jersey.test-framework.providers</groupId>
89 <artifactId>jersey-test-framework-provider-grizzly2</artifactId>
90 <version>2.23.2</version>
94 <!-- For JSON Mapping Support. -->
96 <groupId>com.fasterxml.jackson.core</groupId>
97 <artifactId>jackson-databind</artifactId>
98 <version>2.7.8</version>
107 <defaultGoal>initialize</defaultGoal>
110 <groupId>org.codehaus.mojo</groupId>
111 <artifactId>exec-maven-plugin</artifactId>
112 <version>1.3.2</version>
115 <phase>initialize</phase>
120 <includeProjectDependencies>false</includeProjectDependencies>
121 <includePluginDependencies>true</includePluginDependencies>
122 <executable>java</executable>
123 <mainClass>com.att.ajsc.runner.Runner</mainClass>
124 <executableDependency>
125 <groupId>com.att.ajsc</groupId>
126 <artifactId>ajsc-runner</artifactId>
127 </executableDependency>
128 <additionalClasspathElements>
129 <additionalClasspathElement>${basedir}/ajsc-shared-config/etc
130 </additionalClasspathElement>
131 </additionalClasspathElements>
133 <environmentVariables>
134 <AJSC_HOME>${runAjscHome}</AJSC_HOME>
135 </environmentVariables>
137 <!-- Main AJSC System Properties below (necessary for proper startup) -->
141 <value>${runAjscHome}</value>
144 <key>CONFIG_HOME</key>
145 <value>${basedir}/appconfig-local/</value>
148 <key>AJSC_CONF_HOME</key>
149 <value>${basedir}/bundleconfig-local</value>
152 <key>logback.configurationFile</key>
153 <value>${basedir}/ajsc-shared-config/etc/logback.xml</value>
156 <key>AJSC_SHARED_CONFIG</key>
157 <value>${basedir}/ajsc-shared-config</value>
161 <key>AJSC_EXTERNAL_LIB_FOLDERS</key>
162 <value>${basedir}/target/commonLibs</value>
165 <key>AJSC_EXTERNAL_PROPERTIES_FOLDERS</key>
166 <value>${basedir}/ajsc-shared-config/etc</value>
170 <key>AJSC_SERVICE_NAMESPACE</key>
171 <value>${module.ajsc.namespace.name}</value>
174 <key>AJSC_SERVICE_VERSION</key>
175 <value>${module.ajsc.namespace.version}</value>
178 <key>SOACLOUD_SERVICE_VERSION</key>
179 <value>${project.version}</value>
182 <key>server.port</key>
183 <value>${serverPort}</value>
187 <!-- Command Line Arguments to add to the java command. Here, you
188 can specify the port as well as the Context you want your service to run
189 in. Use context=/ to run in an unnamed Context (Root Context). The default
190 configuration of the AJSC is to run under the / Context. Setting the port
191 here can aid during the development phase of your service. However, you can
192 leave this argument out entirely, and the AJSC will default to using an Ephemeral
195 <argument>context=//</argument>
196 <argument>port=${serverPort}</argument>
197 <argument>sslport=${sslport}</argument>
203 <executable>java</executable>
207 <groupId>com.att.ajsc</groupId>
208 <artifactId>ajsc-runner</artifactId>
209 <version>${ajscRuntimeVersion}</version>
217 <dependencyManagement>
220 <groupId>ch.qos.logback</groupId>
221 <artifactId>logback-classic</artifactId>
222 <version>1.1.1</version>
225 <groupId>com.fasterxml.jackson.core</groupId>
226 <artifactId>jackson-core</artifactId>
227 <version>2.7.8</version>
230 </dependencyManagement>
234 <!-- Checkstyle plugin - used to report on compliance with -->
235 <!-- the Google style guide. -->
237 <groupId>org.apache.maven.plugins</groupId>
238 <artifactId>maven-site-plugin</artifactId>
239 <version>3.3</version>
243 <groupId>org.apache.maven.plugins</groupId>
244 <artifactId>maven-checkstyle-plugin</artifactId>
245 <version>2.17</version>
249 <report>checkstyle</report>
257 <!-- This plugin overrides the compiler settings to use java 1.8 -->
259 <groupId>org.apache.maven.plugins</groupId>
260 <artifactId>maven-compiler-plugin</artifactId>
261 <version>3.1</version>
263 <compilerId>groovy-eclipse-compiler</compilerId>
264 <verbose>true</verbose>
270 <groupId>org.codehaus.groovy</groupId>
271 <artifactId>groovy-eclipse-compiler</artifactId>
272 <version>2.9.0-01</version>
275 <groupId>org.codehaus.groovy</groupId>
276 <artifactId>groovy-eclipse-batch</artifactId>
277 <version>2.3.4-01</version>
282 <!-- This plugin is used to generate Java POJO's from json format schema
285 <groupId>org.jsonschema2pojo</groupId>
286 <artifactId>jsonschema2pojo-maven-plugin</artifactId>
287 <version>0.4.26</version>
289 <addCompileSourceRoot>true</addCompileSourceRoot>
290 <sourceDirectory>${basedir}/src/main/resources/json/schema</sourceDirectory>
291 <outputDirectory>${generatedSourceDir}</outputDirectory>
292 <targetPackage>org.openecomp.sa.rest</targetPackage>
297 <goal>generate</goal>
304 <groupId>org.apache.maven.plugins</groupId>
305 <artifactId>maven-resources-plugin</artifactId>
306 <version>2.7</version>
309 <id>copy-docker-file</id>
310 <phase>package</phase>
312 <goal>copy-resources</goal>
315 <outputDirectory>target</outputDirectory>
316 <overwrite>true</overwrite>
319 <directory>${basedir}/src/main/docker</directory>
320 <filtering>true</filtering>
322 <include>**/*</include>
326 <directory>${basedir}/src/main/bin/</directory>
333 <!-- license plugin -->
335 <groupId>com.mycila</groupId>
336 <artifactId>license-maven-plugin</artifactId>
337 <version>3.0</version>
339 <header>License.txt</header>
341 <include>src/main/java/**</include>
342 <include>src/test/java/**</include>
350 <phase>process-sources</phase>
354 <!-- This plugin adds the generated sources directory to the clean lifecycle
355 so that automatically generated code will get cleaned up properly. -->
357 <artifactId>maven-clean-plugin</artifactId>
358 <version>3.0.0</version>
362 <directory>${generatedSourceDir}</directory>