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>
100 <!-- The standard build tasks for this project are inherited from the parent.
101 Please do not override the build tasks. However tasks and/or profiles can
102 be included here as well as additional dependencies for your service. Any
103 runtime or compile scope dependencies will be copied to the INSTALLATION_PATH/extJars
104 folder and will be made available on the AJSC classpath for your service.
105 Please, NOTE: DME2 and CSM related dependencies are EXTERNALIZED within the
106 CSI environment. Therefore, they are provided within this project as "provided"
107 dependencies. In order for the AJSC to run properly, locally, the CSM and
108 DME2 dependencies will be copied into the target/commonLibs folder and will
109 be made available to the classpath of the AJSC through the use of the system
110 property, "AJSC_EXTERNAL_LIB_FOLDERS". This system property needs to be set
111 in the "runAjsc" maven profile within the pom.xml (and, is defaulted to do
115 <groupId>dom4j</groupId>
116 <artifactId>dom4j</artifactId>
117 <version>1.6.1</version>
118 <scope>provided</scope>
121 <groupId>com.att.aft</groupId>
122 <artifactId>dme2</artifactId>
123 <version>3.1.200</version>
124 <scope>provided</scope>
127 <groupId>com.att.ajsc</groupId>
128 <artifactId>ajsc-runner</artifactId>
129 <version>${ajscRuntimeVersion}</version>
130 <scope>runtime</scope>
133 <groupId>com.att.ajsc</groupId>
134 <artifactId>ajsc-core</artifactId>
135 <version>${ajscRuntimeVersion}</version>
136 <scope>provided</scope>
141 <id>jenkins-properties</id>
144 <family>unix</family>
151 <defaultGoal>initialize</defaultGoal>
155 <groupId>org.codehaus.mojo</groupId>
156 <artifactId>exec-maven-plugin</artifactId>
157 <version>1.3.2</version>
161 <phase>initialize</phase>
166 <!-- In order to better mimic a SOA cloud installation of AJSC (and
167 to help eliminate Maven/Eclipse/AJSC classpath issues that may be difficult
168 to diagnose), within this profile used to run locally, we are NOT including
169 project dependencies. These will be loaded by AJSC from $AJSC_HOME/extJars.
170 The only jar needed to run AJSC is the ajsc-runner.jar, and therefore is
171 the only dependency required by this profile to run locally. -->
172 <includeProjectDependencies>false</includeProjectDependencies>
173 <includePluginDependencies>true</includePluginDependencies>
174 <executable>java</executable>
175 <mainClass>com.att.ajsc.runner.Runner</mainClass>
176 <executableDependency>
177 <groupId>com.att.ajsc</groupId>
178 <artifactId>ajsc-runner</artifactId>
179 </executableDependency>
181 <environmentVariables>
182 <AJSC_HOME>${runAjscHome}</AJSC_HOME>
183 </environmentVariables>
184 <additionalClasspathElements>
185 <additionalClasspathElement>${runAjscHome}/extJars/logback-access-1.1.7.jar</additionalClasspathElement>
186 <additionalClasspathElement>${runAjscHome}/extJars/logback-core-1.1.7.jar</additionalClasspathElement>
187 <additionalClasspathElement>${runAjscHome}/extJars/aai-custom.jar</additionalClasspathElement>
188 </additionalClasspathElements>
190 <!-- Main AJSC System Properties below (necessary for proper startup) -->
194 <value>${runAjscHome}</value>
198 <value>${runAjscHome}/bundleconfig/</value>
201 <key>AJSC_CONF_HOME</key>
202 <value>${aaiAppHome}/bundleconfig-local</value>
205 <key>logback.configurationFile</key>
206 <value>${aaiAppHome}/ajsc-shared-config/etc/logback.xml</value>
209 <key>AJSC_SHARED_CONFIG</key>
210 <value>${aaiAppHome}/ajsc-shared-config</value>
213 <key>file.separator</key>
217 <!-- Please, NOTE: The following 2 system properties will normally
218 be set within the sys-props.properties file once deployed to a node. We are
219 setting them HERE to run locally to make more efficient use of maven variable
220 replacement for ${basedir} -->
221 <!-- AJSC_EXTERNAL_LIB_FOLDERS represents the particular jars that
222 will be externalized on a CSI node. This includes dme2 and csm related artifact. -->
224 <key>AJSC_EXTERNAL_LIB_FOLDERS</key>
225 <value>${aaiAppHome}/target/commonLibs</value>
227 <!-- AJSC_EXTERNAL_PROPERTIES_FOLDERS represents the particular
228 files that may need to be added to the classpath. These files will be externalized
229 on a CSI node. This includes dme2 and csm related artifact (such as csm-config-app.properties).
230 Failure to have these files on the classpath may result in errors thrown
231 by csm framework. -->
233 <key>AJSC_EXTERNAL_PROPERTIES_FOLDERS</key>
234 <value>${aaiAppHome}/ajsc-shared-config/etc</value>
238 <key>AJSC_SERVICE_NAMESPACE</key>
239 <value>${module.ajsc.namespace.name}</value>
242 <key>AJSC_SERVICE_VERSION</key>
243 <value>${module.ajsc.namespace.version}</value>
246 <key>SOACLOUD_SERVICE_VERSION</key>
247 <value>${project.version}</value>
250 <key>server.port</key>
251 <value>${serverPort}</value>
255 <!-- Command Line Arguments to add to the java command. Here, you
256 can specify the port as well as the Context you want your service to run
257 in. Use context=/ to run in an unnamed Context (Root Context). The default
258 configuration of the AJSC is to run under the / Context. Setting the port
259 here can aid during the development phase of your service. However, you can
260 leave this argument out entirely, and the AJSC will default to using an Ephemeral
263 <argument>context=/</argument>
264 <argument>port=${serverPort}</argument>
265 <argument>sslport=${sslport}</argument>
271 <executable>java</executable>
275 <groupId>com.att.ajsc</groupId>
276 <artifactId>ajsc-runner</artifactId>
277 <version>${ajscRuntimeVersion}</version>
287 <!-- license plugin -->
289 <groupId>org.codehaus.mojo</groupId>
290 <artifactId>license-maven-plugin</artifactId>
291 <version>1.12</version>
293 <addJavaLicenseAfterPackage>false</addJavaLicenseAfterPackage>
294 <licenseName>apache_v2</licenseName>
295 <inceptionYear>2017</inceptionYear>
296 <organizationName>AT&T Intellectual Property. All rights reserved.</organizationName>
297 <projectName>org.openecomp.aai</projectName>
298 <canUpdateCopyright>true</canUpdateCopyright>
299 <canUpdateDescription>true</canUpdateDescription>
300 <canUpdateLicense>true</canUpdateLicense>
301 <emptyLineAfterHeader>true</emptyLineAfterHeader>
302 <processStartTag>============LICENSE_START=======================================================</processStartTag>
303 <processEndTag>============LICENSE_END=========================================================</processEndTag>
304 <sectionDelimiter>================================================================================</sectionDelimiter>
306 <include>**/*.java</include>
307 <include>**/*.ksh</include>
308 <include>**/*.sh</include>
309 <include>**/*.ftl</include>
310 <include>**/*.xsd</include>
311 <include>**/*.xjb</include>
312 <include>**/aai*.xml</include>
313 <include>**/*logback*.xml</include>
314 <include>**/*aaiconfig*.properties</include>
315 <include>**/*titan*.properties</include>
322 <goal>update-file-header</goal>
324 <phase>process-sources</phase>
329 <groupId>org.codehaus.mojo</groupId>
330 <artifactId>sonar-maven-plugin</artifactId>
331 <version>3.2</version>
334 <groupId>org.apache.maven.plugins</groupId>
335 <artifactId>maven-site-plugin</artifactId>
336 <version>3.6</version>
339 <groupId>org.apache.maven.wagon</groupId>
340 <artifactId>wagon-webdav-jackrabbit</artifactId>
341 <version>2.10</version>
346 <groupId>org.apache.maven.plugins</groupId>
347 <artifactId>maven-deploy-plugin</artifactId>
350 <id>default-deploy</id>
361 <groupId>org.apache.maven.plugins</groupId>
362 <artifactId>maven-javadoc-plugin</artifactId>
363 <version>2.10.4</version>
365 <failOnError>false</failOnError>
366 <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
368 <groupId>org.umlgraph</groupId>
369 <artifactId>umlgraph</artifactId>
370 <version>5.6</version>
372 <additionalparam>-views</additionalparam>
373 <useStandardDocletOptions>true</useStandardDocletOptions>