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.0.0</version>
10 <groupId>org.openecomp.aai.aai-service</groupId>
11 <artifactId>aai-service</artifactId>
12 <version>1.0.0-SNAPSHOT</version>
14 <packaging>pom</packaging>
16 <module>aai-schema</module>
17 <module>annotations</module>
18 <module>ajsc-aai</module>
21 <maven.compiler.target>1.8</maven.compiler.target>
22 <maven.compiler.source>1.8</maven.compiler.source>
23 <module.ajsc.namespace.name>ActiveAndAvailableInventory-CloudNetwork</module.ajsc.namespace.name>
24 <module.ajsc.namespace.version>v1</module.ajsc.namespace.version>
25 <ajscRuntimeVersion>2.0.0</ajscRuntimeVersion>
27 <!-- This will be the Absolute Root of the Project and should contain NO
29 <absoluteDistFilesRoot>/opt/app/ajsc-aai</absoluteDistFilesRoot>
31 <!-- For Versioning upon installation, add /${openecomp.release} to distFilesRoot.
32 For NO Versioning, leave as is -->
33 <!-- example: /appl/${project.artifactId}/${openecomp.release}. Also, add
34 ${openecomp.release} to ${runAjscHome} for running locally. -->
35 <distFilesRoot>/opt/app/ajsc-aai/${project.version}</distFilesRoot>
36 <aaiAppHome>${basedir}/ajsc-aai</aaiAppHome>
37 <runAjscHome>${aaiAppHome}/target/swm/package/nix/dist_files${distFilesRoot}</runAjscHome>
39 <!-- For SOA Cloud Installation -->
40 <installOwnerUser>aaiadmin</installOwnerUser>
41 <installOwnerGroup>aaiadmin</installOwnerGroup>
42 <ownerManagementGroup>org.openecomp.aai.dev</ownerManagementGroup>
44 <!-- Port Selection. A value of 0 will allow for dynamic port selection.
45 For local testing, you may choose to hardcode this value to something like
47 <serverPort>8080</serverPort>
48 <sslport>8443</sslport>
50 <testRouteOffer>workstation</testRouteOffer>
51 <testEnv>DEV</testEnv>
53 <!-- For using CXF with Maven -->
54 <cxf.version>3.0.4</cxf.version>
57 <!-- Plugins and repositories -->
61 <url>http://repo1.maven.org/maven2</url>
65 <name>EvoSuite Repository</name>
66 <url>http://www.evosuite.org/m2</url>
72 <name>AJSC repository</name>
73 <url>https://mvnrepository.com/artifact/com.att.ajsc</url>
77 <name>maven reslet</name>
78 <url>https://maven.restlet.com/</url>
83 <name>Maven 2 repository 2</name>
84 <url>http://repo2.maven.org/maven2/</url>
87 <id>ecomp-releases</id>
88 <name>ECOMP Release Repository</name>
89 <url>https://nexus.openecomp.org/content/repositories</url>
92 <id>ecomp-snapshots</id>
93 <name>ECOMP Snapshot Repository</name>
94 <url>https://nexus.openecomp.org/content/repositories/snapshots/</url>
96 <updatePolicy>always</updatePolicy>
99 <updatePolicy>always</updatePolicy>
106 <!-- The standard build tasks for this project are inherited from the parent.
107 Please do not override the build tasks. However tasks and/or profiles can
108 be included here as well as additional dependencies for your service. Any
109 runtime or compile scope dependencies will be copied to the INSTALLATION_PATH/extJars
110 folder and will be made available on the AJSC classpath for your service.
111 Please, NOTE: DME2 and CSM related dependencies are EXTERNALIZED within the
112 CSI environment. Therefore, they are provided within this project as "provided"
113 dependencies. In order for the AJSC to run properly, locally, the CSM and
114 DME2 dependencies will be copied into the target/commonLibs folder and will
115 be made available to the classpath of the AJSC through the use of the system
116 property, "AJSC_EXTERNAL_LIB_FOLDERS". This system property needs to be set
117 in the "runAjsc" maven profile within the pom.xml (and, is defaulted to do
121 <groupId>dom4j</groupId>
122 <artifactId>dom4j</artifactId>
123 <version>1.6.1</version>
124 <scope>provided</scope>
127 <groupId>com.att.aft</groupId>
128 <artifactId>dme2</artifactId>
129 <version>3.1.200</version>
130 <scope>provided</scope>
133 <groupId>com.att.ajsc</groupId>
134 <artifactId>ajsc-runner</artifactId>
135 <version>${ajscRuntimeVersion}</version>
136 <scope>runtime</scope>
139 <groupId>com.att.ajsc</groupId>
140 <artifactId>ajsc-core</artifactId>
141 <version>${ajscRuntimeVersion}</version>
142 <scope>provided</scope>
147 <id>jenkins-properties</id>
150 <family>unix</family>
157 <defaultGoal>initialize</defaultGoal>
161 <groupId>org.codehaus.mojo</groupId>
162 <artifactId>exec-maven-plugin</artifactId>
163 <version>1.3.2</version>
167 <phase>initialize</phase>
172 <!-- In order to better mimic a SOA cloud installation of AJSC (and
173 to help eliminate Maven/Eclipse/AJSC classpath issues that may be difficult
174 to diagnose), within this profile used to run locally, we are NOT including
175 project dependencies. These will be loaded by AJSC from $AJSC_HOME/extJars.
176 The only jar needed to run AJSC is the ajsc-runner.jar, and therefore is
177 the only dependency required by this profile to run locally. -->
178 <includeProjectDependencies>false</includeProjectDependencies>
179 <includePluginDependencies>true</includePluginDependencies>
180 <executable>java</executable>
181 <mainClass>com.att.ajsc.runner.Runner</mainClass>
182 <executableDependency>
183 <groupId>com.att.ajsc</groupId>
184 <artifactId>ajsc-runner</artifactId>
185 </executableDependency>
187 <environmentVariables>
188 <AJSC_HOME>${runAjscHome}</AJSC_HOME>
189 </environmentVariables>
190 <additionalClasspathElements>
191 <additionalClasspathElement>${runAjscHome}/extJars/logback-access-1.1.7.jar</additionalClasspathElement>
192 <additionalClasspathElement>${runAjscHome}/extJars/logback-core-1.1.7.jar</additionalClasspathElement>
193 <additionalClasspathElement>${runAjscHome}/extJars/aai-custom.jar</additionalClasspathElement>
194 </additionalClasspathElements>
196 <!-- Main AJSC System Properties below (necessary for proper startup) -->
200 <value>${runAjscHome}</value>
204 <value>${runAjscHome}/bundleconfig/</value>
207 <key>AJSC_CONF_HOME</key>
208 <value>${aaiAppHome}/bundleconfig-local</value>
211 <key>logback.configurationFile</key>
212 <value>${aaiAppHome}/ajsc-shared-config/etc/logback.xml</value>
215 <key>AJSC_SHARED_CONFIG</key>
216 <value>${aaiAppHome}/ajsc-shared-config</value>
219 <key>file.separator</key>
223 <!-- Please, NOTE: The following 2 system properties will normally
224 be set within the sys-props.properties file once deployed to a node. We are
225 setting them HERE to run locally to make more efficient use of maven variable
226 replacement for ${basedir} -->
227 <!-- AJSC_EXTERNAL_LIB_FOLDERS represents the particular jars that
228 will be externalized on a CSI node. This includes dme2 and csm related artifact. -->
230 <key>AJSC_EXTERNAL_LIB_FOLDERS</key>
231 <value>${aaiAppHome}/target/commonLibs</value>
233 <!-- AJSC_EXTERNAL_PROPERTIES_FOLDERS represents the particular
234 files that may need to be added to the classpath. These files will be externalized
235 on a CSI node. This includes dme2 and csm related artifact (such as csm-config-app.properties).
236 Failure to have these files on the classpath may result in errors thrown
237 by csm framework. -->
239 <key>AJSC_EXTERNAL_PROPERTIES_FOLDERS</key>
240 <value>${aaiAppHome}/ajsc-shared-config/etc</value>
244 <key>AJSC_SERVICE_NAMESPACE</key>
245 <value>${module.ajsc.namespace.name}</value>
248 <key>AJSC_SERVICE_VERSION</key>
249 <value>${module.ajsc.namespace.version}</value>
252 <key>SOACLOUD_SERVICE_VERSION</key>
253 <value>${project.version}</value>
256 <key>server.port</key>
257 <value>${serverPort}</value>
261 <!-- Command Line Arguments to add to the java command. Here, you
262 can specify the port as well as the Context you want your service to run
263 in. Use context=/ to run in an unnamed Context (Root Context). The default
264 configuration of the AJSC is to run under the / Context. Setting the port
265 here can aid during the development phase of your service. However, you can
266 leave this argument out entirely, and the AJSC will default to using an Ephemeral
269 <argument>context=/</argument>
270 <argument>port=${serverPort}</argument>
271 <argument>sslport=${sslport}</argument>
277 <executable>java</executable>
281 <groupId>com.att.ajsc</groupId>
282 <artifactId>ajsc-runner</artifactId>
283 <version>${ajscRuntimeVersion}</version>
293 <!-- license plugin -->
295 <groupId>org.codehaus.mojo</groupId>
296 <artifactId>license-maven-plugin</artifactId>
297 <version>1.10</version>
299 <addJavaLicenseAfterPackage>false</addJavaLicenseAfterPackage>
300 <licenseName>apache_v2</licenseName>
301 <inceptionYear>2017</inceptionYear>
302 <organizationName>AT&T Intellectual Property. All rights reserved.</organizationName>
303 <projectName>org.openecomp.aai</projectName>
304 <canUpdateCopyright>true</canUpdateCopyright>
305 <canUpdateDescription>true</canUpdateDescription>
306 <canUpdateLicense>true</canUpdateLicense>
307 <emptyLineAfterHeader>true</emptyLineAfterHeader>
308 <processStartTag>============LICENSE_START=======================================================</processStartTag>
309 <processEndTag>============LICENSE_END=========================================================</processEndTag>
310 <sectionDelimiter>================================================================================</sectionDelimiter>
312 <include>**/*.java</include>
313 <include>**/*.ksh</include>
314 <include>**/*.sh</include>
315 <include>**/*.ftl</include>
316 <include>**/*.xsd</include>
317 <include>**/*.xjb</include>
318 <include>**/aai*.xml</include>
319 <include>**/*logback*.xml</include>
320 <include>**/*aaiconfig*.properties</include>
321 <include>**/*titan*.properties</include>
328 <goal>update-file-header</goal>
330 <phase>process-sources</phase>
335 <groupId>org.codehaus.mojo</groupId>
336 <artifactId>sonar-maven-plugin</artifactId>
337 <version>3.2</version>
340 <groupId>org.apache.maven.plugins</groupId>
341 <artifactId>maven-site-plugin</artifactId>
342 <version>3.6</version>
345 <groupId>org.apache.maven.wagon</groupId>
346 <artifactId>wagon-webdav-jackrabbit</artifactId>
347 <version>2.10</version>
352 <groupId>org.apache.maven.plugins</groupId>
353 <artifactId>maven-deploy-plugin</artifactId>
356 <id>default-deploy</id>
367 <groupId>org.apache.maven.plugins</groupId>
368 <artifactId>maven-javadoc-plugin</artifactId>
369 <version>2.10.4</version>
371 <failOnError>false</failOnError>
372 <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
374 <groupId>org.umlgraph</groupId>
375 <artifactId>umlgraph</artifactId>
376 <version>5.6</version>
378 <additionalparam>-views</additionalparam>
379 <useStandardDocletOptions>true</useStandardDocletOptions>