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</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 <nexusproxy>https://nexus.onap.org</nexusproxy>
26 <sitePath>/content/sites/site/${project.artifactId}/${project.version}</sitePath>
27 <ajscRuntimeVersion>2.0.0</ajscRuntimeVersion>
29 <!-- This will be the Absolute Root of the Project and should contain NO
31 <absoluteDistFilesRoot>/opt/app/ajsc-aai</absoluteDistFilesRoot>
33 <!-- For Versioning upon installation, add /${openecomp.release} to distFilesRoot.
34 For NO Versioning, leave as is -->
35 <!-- example: /appl/${project.artifactId}/${openecomp.release}. Also, add
36 ${openecomp.release} to ${runAjscHome} for running locally. -->
37 <distFilesRoot>/opt/app/ajsc-aai/${project.version}</distFilesRoot>
38 <aaiAppHome>${basedir}/ajsc-aai</aaiAppHome>
39 <runAjscHome>${aaiAppHome}/target/swm/package/nix/dist_files${distFilesRoot}</runAjscHome>
41 <!-- For SOA Cloud Installation -->
42 <installOwnerUser>aaiadmin</installOwnerUser>
43 <installOwnerGroup>aaiadmin</installOwnerGroup>
44 <ownerManagementGroup>org.openecomp.aai.dev</ownerManagementGroup>
46 <!-- Port Selection. A value of 0 will allow for dynamic port selection.
47 For local testing, you may choose to hardcode this value to something like
49 <serverPort>8080</serverPort>
50 <sslport>8443</sslport>
52 <testRouteOffer>workstation</testRouteOffer>
53 <testEnv>DEV</testEnv>
55 <!-- For using CXF with Maven -->
56 <cxf.version>3.0.4</cxf.version>
58 <distributionManagement>
60 <id>ecomp-releases</id>
61 <name>ECOMP Release Repository</name>
62 <url>${nexusproxy}/content/repositories/releases/</url>
65 <id>ecomp-snapshots</id>
66 <name>ECOMP Snapshot Repository</name>
67 <url>${nexusproxy}/content/repositories/snapshots/</url>
71 <url>dav:${nexusproxy}${sitePath}</url>
73 </distributionManagement>
75 <!-- Plugins and repositories -->
79 <url>http://repo1.maven.org/maven2</url>
83 <name>EvoSuite Repository</name>
84 <url>http://www.evosuite.org/m2</url>
90 <name>AJSC repository</name>
91 <url>https://mvnrepository.com/artifact/com.att.ajsc</url>
95 <name>maven reslet</name>
96 <url>https://maven.restlet.com/</url>
101 <name>Maven 2 repository 2</name>
102 <url>http://repo2.maven.org/maven2/</url>
105 <id>ecomp-releases</id>
106 <name>ECOMP Release Repository</name>
107 <url>${nexusproxy}/content/repositories/releases/</url>
110 <id>ecomp-staging</id>
111 <name>ECOMP Staging Repository</name>
112 <url>${nexusproxy}/content/repositories/staging/</url>
115 <id>ecomp-snapshots</id>
116 <name>ECOMP Snapshot Repository</name>
117 <url>${nexusproxy}/content/repositories/snapshots/</url>
123 <!-- The standard build tasks for this project are inherited from the parent.
124 Please do not override the build tasks. However tasks and/or profiles can
125 be included here as well as additional dependencies for your service. Any
126 runtime or compile scope dependencies will be copied to the INSTALLATION_PATH/extJars
127 folder and will be made available on the AJSC classpath for your service.
128 Please, NOTE: DME2 and CSM related dependencies are EXTERNALIZED within the
129 CSI environment. Therefore, they are provided within this project as "provided"
130 dependencies. In order for the AJSC to run properly, locally, the CSM and
131 DME2 dependencies will be copied into the target/commonLibs folder and will
132 be made available to the classpath of the AJSC through the use of the system
133 property, "AJSC_EXTERNAL_LIB_FOLDERS". This system property needs to be set
134 in the "runAjsc" maven profile within the pom.xml (and, is defaulted to do
138 <groupId>dom4j</groupId>
139 <artifactId>dom4j</artifactId>
140 <version>1.6.1</version>
141 <scope>provided</scope>
144 <groupId>com.att.aft</groupId>
145 <artifactId>dme2</artifactId>
146 <version>3.1.200</version>
147 <scope>provided</scope>
150 <groupId>com.att.ajsc</groupId>
151 <artifactId>ajsc-runner</artifactId>
152 <version>${ajscRuntimeVersion}</version>
153 <scope>runtime</scope>
156 <groupId>com.att.ajsc</groupId>
157 <artifactId>ajsc-core</artifactId>
158 <version>${ajscRuntimeVersion}</version>
159 <scope>provided</scope>
164 <id>jenkins-properties</id>
167 <family>unix</family>
174 <defaultGoal>initialize</defaultGoal>
178 <groupId>org.codehaus.mojo</groupId>
179 <artifactId>exec-maven-plugin</artifactId>
180 <version>1.3.2</version>
184 <phase>initialize</phase>
189 <!-- In order to better mimic a SOA cloud installation of AJSC (and
190 to help eliminate Maven/Eclipse/AJSC classpath issues that may be difficult
191 to diagnose), within this profile used to run locally, we are NOT including
192 project dependencies. These will be loaded by AJSC from $AJSC_HOME/extJars.
193 The only jar needed to run AJSC is the ajsc-runner.jar, and therefore is
194 the only dependency required by this profile to run locally. -->
195 <includeProjectDependencies>false</includeProjectDependencies>
196 <includePluginDependencies>true</includePluginDependencies>
197 <executable>java</executable>
198 <mainClass>com.att.ajsc.runner.Runner</mainClass>
199 <executableDependency>
200 <groupId>com.att.ajsc</groupId>
201 <artifactId>ajsc-runner</artifactId>
202 </executableDependency>
204 <environmentVariables>
205 <AJSC_HOME>${runAjscHome}</AJSC_HOME>
206 </environmentVariables>
207 <additionalClasspathElements>
208 <additionalClasspathElement>${runAjscHome}/extJars/logback-access-1.1.7.jar</additionalClasspathElement>
209 <additionalClasspathElement>${runAjscHome}/extJars/logback-core-1.1.7.jar</additionalClasspathElement>
210 <additionalClasspathElement>${runAjscHome}/extJars/aai-custom.jar</additionalClasspathElement>
211 </additionalClasspathElements>
213 <!-- Main AJSC System Properties below (necessary for proper startup) -->
217 <value>${runAjscHome}</value>
221 <value>${runAjscHome}/bundleconfig/</value>
224 <key>AJSC_CONF_HOME</key>
225 <value>${aaiAppHome}/bundleconfig-local</value>
228 <key>logback.configurationFile</key>
229 <value>${aaiAppHome}/ajsc-shared-config/etc/logback.xml</value>
232 <key>AJSC_SHARED_CONFIG</key>
233 <value>${aaiAppHome}/ajsc-shared-config</value>
236 <key>file.separator</key>
240 <!-- Please, NOTE: The following 2 system properties will normally
241 be set within the sys-props.properties file once deployed to a node. We are
242 setting them HERE to run locally to make more efficient use of maven variable
243 replacement for ${basedir} -->
244 <!-- AJSC_EXTERNAL_LIB_FOLDERS represents the particular jars that
245 will be externalized on a CSI node. This includes dme2 and csm related artifact. -->
247 <key>AJSC_EXTERNAL_LIB_FOLDERS</key>
248 <value>${aaiAppHome}/target/commonLibs</value>
250 <!-- AJSC_EXTERNAL_PROPERTIES_FOLDERS represents the particular
251 files that may need to be added to the classpath. These files will be externalized
252 on a CSI node. This includes dme2 and csm related artifact (such as csm-config-app.properties).
253 Failure to have these files on the classpath may result in errors thrown
254 by csm framework. -->
256 <key>AJSC_EXTERNAL_PROPERTIES_FOLDERS</key>
257 <value>${aaiAppHome}/ajsc-shared-config/etc</value>
261 <key>AJSC_SERVICE_NAMESPACE</key>
262 <value>${module.ajsc.namespace.name}</value>
265 <key>AJSC_SERVICE_VERSION</key>
266 <value>${module.ajsc.namespace.version}</value>
269 <key>SOACLOUD_SERVICE_VERSION</key>
270 <value>${project.version}</value>
273 <key>server.port</key>
274 <value>${serverPort}</value>
278 <!-- Command Line Arguments to add to the java command. Here, you
279 can specify the port as well as the Context you want your service to run
280 in. Use context=/ to run in an unnamed Context (Root Context). The default
281 configuration of the AJSC is to run under the / Context. Setting the port
282 here can aid during the development phase of your service. However, you can
283 leave this argument out entirely, and the AJSC will default to using an Ephemeral
286 <argument>context=/</argument>
287 <argument>port=${serverPort}</argument>
288 <argument>sslport=${sslport}</argument>
294 <executable>java</executable>
298 <groupId>com.att.ajsc</groupId>
299 <artifactId>ajsc-runner</artifactId>
300 <version>${ajscRuntimeVersion}</version>
310 <!-- license plugin -->
312 <groupId>org.codehaus.mojo</groupId>
313 <artifactId>license-maven-plugin</artifactId>
314 <version>1.12</version>
316 <addJavaLicenseAfterPackage>false</addJavaLicenseAfterPackage>
317 <licenseName>apache_v2</licenseName>
318 <inceptionYear>2017</inceptionYear>
319 <organizationName>AT&T Intellectual Property. All rights reserved.</organizationName>
320 <projectName>org.openecomp.aai</projectName>
321 <canUpdateCopyright>true</canUpdateCopyright>
322 <canUpdateDescription>true</canUpdateDescription>
323 <canUpdateLicense>true</canUpdateLicense>
324 <emptyLineAfterHeader>true</emptyLineAfterHeader>
325 <processStartTag>============LICENSE_START=======================================================</processStartTag>
326 <processEndTag>============LICENSE_END=========================================================</processEndTag>
327 <sectionDelimiter>================================================================================</sectionDelimiter>
329 <include>**/*.java</include>
330 <include>**/*.ksh</include>
331 <include>**/*.sh</include>
332 <include>**/*.ftl</include>
333 <include>**/*.xsd</include>
334 <include>**/*.xjb</include>
335 <include>**/aai*.xml</include>
336 <include>**/*logback*.xml</include>
337 <include>**/*aaiconfig*.properties</include>
338 <include>**/*titan*.properties</include>
345 <goal>update-file-header</goal>
347 <phase>process-sources</phase>
352 <groupId>org.codehaus.mojo</groupId>
353 <artifactId>sonar-maven-plugin</artifactId>
354 <version>3.2</version>
357 <groupId>org.apache.maven.plugins</groupId>
358 <artifactId>maven-site-plugin</artifactId>
359 <version>3.6</version>
363 <groupId>org.apache.maven.plugins</groupId>
364 <artifactId>maven-project-info-reports-plugin</artifactId>
365 <version>2.4</version>
367 <dependencyDetailsEnabled>false</dependencyDetailsEnabled>
368 <dependencyLocationsEnabled>false</dependencyLocationsEnabled>
371 <report>dependencies</report>
375 <groupId>org.apache.maven.plugins</groupId>
376 <artifactId>maven-javadoc-plugin</artifactId>
377 <version>2.8</version>
379 <additionalparam>-Xdoclint:none</additionalparam>
386 <groupId>org.apache.maven.wagon</groupId>
387 <artifactId>wagon-webdav-jackrabbit</artifactId>
388 <version>2.10</version>
393 <groupId>org.apache.maven.plugins</groupId>
394 <artifactId>maven-deploy-plugin</artifactId>
397 <id>default-deploy</id>
403 <groupId>org.sonatype.plugins</groupId>
404 <artifactId>nexus-staging-maven-plugin</artifactId>
405 <version>1.6.7</version>
406 <extensions>true</extensions>
408 <nexusUrl>${nexusproxy}</nexusUrl>
409 <stagingProfileId>176c31dfe190a</stagingProfileId>
410 <serverId>ecomp-staging</serverId>
419 <groupId>org.apache.maven.plugins</groupId>
420 <artifactId>maven-javadoc-plugin</artifactId>
421 <version>2.10.4</version>
423 <failOnError>false</failOnError>
424 <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
426 <groupId>org.umlgraph</groupId>
427 <artifactId>umlgraph</artifactId>
428 <version>5.6</version>
430 <additionalparam>-views</additionalparam>
431 <useStandardDocletOptions>true</useStandardDocletOptions>