1 <?xml version="1.0" encoding="UTF-8"?>
2 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 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.1.0</version>
10 <groupId>org.onap.aai.traversal</groupId>
11 <artifactId>traversal</artifactId>
12 <version>1.1.0-SNAPSHOT</version>
13 <name>traversal</name>
14 <packaging>pom</packaging>
16 <module>aai-traversal</module>
19 <nexusproxy>https://nexus.onap.org</nexusproxy>
20 <sitePath>/content/sites/site/${project.groupId}/${project.artifactId}/${project.version}</sitePath>
21 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
22 <maven.compiler.target>1.8</maven.compiler.target>
23 <maven.compiler.source>1.8</maven.compiler.source>
24 <module.ajsc.namespace.name>ActiveAndAvailableInventory-Traversal</module.ajsc.namespace.name>
25 <module.ajsc.namespace.version>v1</module.ajsc.namespace.version>
26 <ajscRuntimeVersion>2.1.0</ajscRuntimeVersion>
27 <aai-schema.version>1.1.0-SNAPSHOT</aai-schema.version>
28 <aai.project.version>${project.version}</aai.project.version>
30 <!-- This will be the Absolute Root of the Project and should contain NO
32 <absoluteDistFilesRoot>/opt/app/aai-traversal</absoluteDistFilesRoot>
34 <!-- For Versioning upon installation, add /${project.version} to distFilesRoot.
35 For NO Versioning, leave as is -->
36 <!-- example: /appl/${project.artifactId}/${project.version}. Also, add
37 ${project.version} to ${runAjscHome} for running locally. -->
38 <distFilesRoot>/opt/app/${project.artifactId}</distFilesRoot>
39 <!-- <distFilesRoot>/opt/app/traversal/${project.version}</distFilesRoot> -->
40 <aaiAppHome>${basedir}</aaiAppHome>
41 <runAjscHome>${aaiAppHome}/target/swm/package/nix/dist_files${distFilesRoot}</runAjscHome>
42 <!-- For SOA Cloud Installation -->
43 <installOwnerUser>aaiadmin</installOwnerUser>
44 <installOwnerGroup>aaiadmin</installOwnerGroup>
45 <ownerManagementGroup>org.openecomp.aai.dev</ownerManagementGroup>
47 <!-- Port Selection. A value of 0 will allow for dynamic port selection.
48 For local testing, you may choose to hardcode this value to something like
50 <serverPort>8083</serverPort>
51 <sslport>8446</sslport>
52 <testRouteOffer>workstation</testRouteOffer>
53 <testEnv>DEV</testEnv>
55 <!-- For using CXF with Maven -->
56 <cxf.version>3.0.4</cxf.version>
57 <swmpkgversion>0.0.1</swmpkgversion>
58 <snapshot.file>int1-data.graphson</snapshot.file>
59 <aai-core.version>1.1.0-SNAPSHOT</aai-core.version>
62 <distributionManagement>
64 <id>ecomp-releases</id>
65 <name>ECOMP Release Repository</name>
66 <url>${nexusproxy}/content/repositories/releases/</url>
69 <id>ecomp-snapshots</id>
70 <name>ECOMP Snapshot Repository</name>
71 <url>${nexusproxy}/content/repositories/snapshots/</url>
75 <url>dav:${nexusproxy}${sitePath}</url>
77 </distributionManagement>
80 <id>jenkins-properties</id>
87 <swmpkgversion>${env.swmpkgversion}</swmpkgversion>
93 <defaultGoal>initialize</defaultGoal>
97 <groupId>org.codehaus.mojo</groupId>
98 <artifactId>exec-maven-plugin</artifactId>
99 <version>1.3.2</version>
103 <phase>initialize</phase>
108 <!-- In order to better mimic a SOA cloud installation of AJSC (and
109 to help eliminate Maven/Eclipse/AJSC classpath issues that may be difficult
110 to diagnose), within this profile used to run locally, we are NOT including
111 project dependencies. These will be loaded by AJSC from $AJSC_HOME/extJars.
112 The only jar needed to run AJSC is the ajsc-runner.jar, and therefore is
113 the only dependency required by this profile to run locally. -->
114 <includeProjectDependencies>false</includeProjectDependencies>
115 <includePluginDependencies>true</includePluginDependencies>
116 <executable>java</executable>
117 <mainClass>com.att.ajsc.runner.Runner</mainClass>
118 <executableDependency>
119 <groupId>com.att.ajsc</groupId>
120 <artifactId>ajsc-runner</artifactId>
121 </executableDependency>
123 <environmentVariables>
124 <AJSC_HOME>${runAjscHome}</AJSC_HOME>
125 </environmentVariables>
126 <additionalClasspathElements>
127 <additionalClasspathElement>${runAjscHome}/extJars/logback-access-1.1.7.jar</additionalClasspathElement>
128 <additionalClasspathElement>${runAjscHome}/extJars/logback-core-1.1.7.jar</additionalClasspathElement>
129 <additionalClasspathElement>${runAjscHome}/extJars/aai-core-${aai-core.version}.jar</additionalClasspathElement>
130 </additionalClasspathElements>
132 <!-- Main AJSC System Properties below (necessary for proper startup) -->
136 <value>${runAjscHome}</value>
140 <value>${runAjscHome}/bundleconfig/</value>
143 <key>AJSC_CONF_HOME</key>
144 <value>${aaiAppHome}/bundleconfig-local</value>
147 <key>logback.configurationFile</key>
148 <value>${aaiAppHome}/ajsc-shared-config/etc/logback.xml</value>
151 <key>AJSC_SHARED_CONFIG</key>
152 <value>${aaiAppHome}/ajsc-shared-config</value>
155 <key>file.separator</key>
159 <key>snapshot.location</key>
160 <value>${basedir}/ajsc-aai/snapshots/${snapshot.file}</value>
162 <!-- Please, NOTE: The following 2 system properties will normally
163 be set within the sys-props.properties file once deployed to a node. We are
164 setting them HERE to run locally to make more efficient use of maven variable
165 replacement for ${basedir} -->
166 <!-- AJSC_EXTERNAL_LIB_FOLDERS represents the particular jars that
167 will be externalized on a CSI node. This includes dme2 and csm related artifact. -->
169 <key>AJSC_EXTERNAL_LIB_FOLDERS</key>
170 <value>${aaiAppHome}/target/commonLibs</value>
172 <!-- AJSC_EXTERNAL_PROPERTIES_FOLDERS represents the particular
173 files that may need to be added to the classpath. These files will be externalized
174 on a CSI node. This includes dme2 and csm related artifact (such as csm-config-app.properties).
175 Failure to have these files on the classpath may result in errors thrown
176 by csm framework. -->
178 <key>AJSC_EXTERNAL_PROPERTIES_FOLDERS</key>
179 <value>${aaiAppHome}/ajsc-shared-config/etc</value>
183 <key>AJSC_SERVICE_NAMESPACE</key>
184 <value>${module.ajsc.namespace.name}</value>
187 <key>AJSC_SERVICE_VERSION</key>
188 <value>${module.ajsc.namespace.version}</value>
191 <key>SOACLOUD_SERVICE_VERSION</key>
192 <value>${project.version}</value>
195 <key>server.port</key>
196 <value>${serverPort}</value>
199 <key>aai-core.version</key>
200 <value>${aai-core.version}</value>
204 <!-- Command Line Arguments to add to the java command. Here, you
205 can specify the port as well as the Context you want your service to run
206 in. Use context=/ to run in an unnamed Context (Root Context). The default
207 configuration of the AJSC is to run under the / Context. Setting the port
208 here can aid during the development phase of your service. However, you can
209 leave this argument out entirely, and the AJSC will default to using an Ephemeral
212 <argument>context=/</argument>
213 <argument>port=${serverPort}</argument>
214 <argument>sslport=${sslport}</argument>
220 <executable>java</executable>
224 <groupId>com.att.ajsc</groupId>
225 <artifactId>ajsc-runner</artifactId>
226 <version>${ajscRuntimeVersion}</version>
238 <groupId>org.apache.maven.plugins</groupId>
239 <artifactId>maven-compiler-plugin</artifactId>
240 <version>3.1</version>
242 <compilerId>groovy-eclipse-compiler</compilerId>
243 <verbose>false</verbose>
249 <groupId>org.codehaus.groovy</groupId>
250 <artifactId>groovy-eclipse-compiler</artifactId>
251 <version>2.9.0-01</version>
254 <groupId>org.codehaus.groovy</groupId>
255 <artifactId>groovy-eclipse-batch</artifactId>
256 <version>2.3.4-01</version>
263 <!-- license plugin -->
265 <groupId>org.codehaus.mojo</groupId>
266 <artifactId>license-maven-plugin</artifactId>
267 <version>1.12</version>
269 <addJavaLicenseAfterPackage>false</addJavaLicenseAfterPackage>
270 <licenseName>apache_v2</licenseName>
271 <inceptionYear>2017</inceptionYear>
272 <organizationName>AT&T Intellectual Property. All rights reserved.</organizationName>
273 <projectName>org.openecomp.aai</projectName>
274 <canUpdateCopyright>true</canUpdateCopyright>
275 <canUpdateDescription>true</canUpdateDescription>
276 <canUpdateLicense>true</canUpdateLicense>
277 <emptyLineAfterHeader>true</emptyLineAfterHeader>
278 <processStartTag>============LICENSE_START=======================================================</processStartTag>
279 <processEndTag>============LICENSE_END=========================================================</processEndTag>
280 <sectionDelimiter>================================================================================</sectionDelimiter>
282 <include>**/*.java</include>
283 <include>**/*.ksh</include>
284 <include>**/*.sh</include>
285 <include>**/*.ftl</include>
286 <include>**/*.xsd</include>
287 <include>**/*.xjb</include>
288 <include>**/*.yml</include>
289 <include>**/*.yaml</include>
290 <include>**/aai*.xml</include>
291 <include>**/*logback*.xml</include>
292 <include>**/*aaiconfig*.properties</include>
293 <include>**/*titan*.properties</include>
300 <goal>update-file-header</goal>
302 <phase>process-sources</phase>