[AAI-110 Amsterdam] checkin source code
[aai/traversal.git] / pom.xml
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>
4
5         <parent>
6                 <artifactId>ajsc-archetype-parent</artifactId>
7                 <groupId>com.att.ajsc</groupId>
8                 <version>2.1.0</version>
9         </parent>
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>
15         <modules>
16                 <module>aai-traversal</module>
17         </modules>
18         <properties>
19                 <nexusproxy>https://nexus.onap.org</nexusproxy>
20                 <sitePath>/content/sites/site/org/onap/aai/traversal/${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>1.1.0</aai.project.version>
29                 <aai.docker.version>1.1</aai.docker.version>
30
31                 <!-- This will be the Absolute Root of the Project and should contain NO 
32                         Versioning -->
33                 <absoluteDistFilesRoot>/opt/app/aai-traversal</absoluteDistFilesRoot>
34
35                 <!-- For Versioning upon installation, add /${project.version} to distFilesRoot. 
36                         For NO Versioning, leave as is -->
37                 <!-- example: /appl/${project.artifactId}/${project.version}. Also, add 
38                         ${project.version} to ${runAjscHome} for running locally. -->
39                 <distFilesRoot>/opt/app/${project.artifactId}</distFilesRoot>
40                 <!-- <distFilesRoot>/opt/app/traversal/${project.version}</distFilesRoot> -->
41                 <aaiAppHome>${basedir}</aaiAppHome>
42                 <runAjscHome>${aaiAppHome}/target/swm/package/nix/dist_files${distFilesRoot}</runAjscHome>
43                 <!-- For SOA Cloud Installation -->
44                 <installOwnerUser>aaiadmin</installOwnerUser>
45                 <installOwnerGroup>aaiadmin</installOwnerGroup>
46                 <ownerManagementGroup>org.openecomp.aai.dev</ownerManagementGroup>
47
48                 <!-- Port Selection. A value of 0 will allow for dynamic port selection. 
49                         For local testing, you may choose to hardcode this value to something like 
50                         8080 -->
51                 <serverPort>8083</serverPort>
52                 <sslport>8446</sslport>
53                 <testRouteOffer>workstation</testRouteOffer>
54                 <testEnv>DEV</testEnv>
55
56                 <!-- For using CXF with Maven -->
57                 <cxf.version>3.0.4</cxf.version>
58                 <swmpkgversion>0.0.1</swmpkgversion>
59                 <snapshot.file>int1-data.graphson</snapshot.file>
60                 <aai-core.version>1.1.0-SNAPSHOT</aai-core.version>
61         </properties>
62
63         <distributionManagement>
64                 <repository>
65                         <id>ecomp-releases</id>
66                         <name>ECOMP Release Repository</name>
67                         <url>${nexusproxy}/content/repositories/releases/</url>
68                 </repository>
69                 <snapshotRepository>
70                         <id>ecomp-snapshots</id>
71                         <name>ECOMP Snapshot Repository</name>
72                         <url>${nexusproxy}/content/repositories/snapshots/</url>
73                 </snapshotRepository>
74                 <site>
75                         <id>ecomp-site</id>
76                         <url>dav:${nexusproxy}${sitePath}</url>
77                 </site>
78         </distributionManagement>
79         <profiles>
80                 <profile>
81                         <id>jenkins-properties</id>
82                         <activation>
83                                 <os>
84                                         <family>unix</family>
85                                 </os>
86                         </activation>
87                         <properties>
88                                 <swmpkgversion>${env.swmpkgversion}</swmpkgversion>
89                         </properties>
90                 </profile>
91                 <profile>
92                         <id>runAjsc</id>
93                         <build>
94                                 <defaultGoal>initialize</defaultGoal>
95                                 <plugins>
96
97                                         <plugin>
98                                                 <groupId>org.codehaus.mojo</groupId>
99                                                 <artifactId>exec-maven-plugin</artifactId>
100                                                 <version>1.3.2</version>
101                                                 <executions>
102                                                         <execution>
103                                                                 <id>run ajsc</id>
104                                                                 <phase>initialize</phase>
105                                                                 <goals>
106                                                                         <goal>java</goal>
107                                                                 </goals>
108                                                                 <configuration>
109                                                                         <!-- In order to better mimic a SOA cloud installation of AJSC (and 
110                                                                                 to help eliminate Maven/Eclipse/AJSC classpath issues that may be difficult 
111                                                                                 to diagnose), within this profile used to run locally, we are NOT including 
112                                                                                 project dependencies. These will be loaded by AJSC from $AJSC_HOME/extJars. 
113                                                                                 The only jar needed to run AJSC is the ajsc-runner.jar, and therefore is 
114                                                                                 the only dependency required by this profile to run locally. -->
115                                                                         <includeProjectDependencies>false</includeProjectDependencies>
116                                                                         <includePluginDependencies>true</includePluginDependencies>
117                                                                         <executable>java</executable>
118                                                                         <mainClass>com.att.ajsc.runner.Runner</mainClass>
119                                                                         <executableDependency>
120                                                                                 <groupId>com.att.ajsc</groupId>
121                                                                                 <artifactId>ajsc-runner</artifactId>
122                                                                         </executableDependency>
123
124                                                                         <environmentVariables>
125                                                                                 <AJSC_HOME>${runAjscHome}</AJSC_HOME>
126                                                                         </environmentVariables>
127                                                                         <additionalClasspathElements>
128                                                                                 <additionalClasspathElement>${runAjscHome}/extJars/logback-access-1.1.7.jar</additionalClasspathElement>
129                                                                                 <additionalClasspathElement>${runAjscHome}/extJars/logback-core-1.1.7.jar</additionalClasspathElement>
130                                                                                 <additionalClasspathElement>${runAjscHome}/extJars/aai-core-${aai-core.version}.jar</additionalClasspathElement>
131                                                                         </additionalClasspathElements>
132
133                                                                         <!-- Main AJSC System Properties below (necessary for proper startup) -->
134                                                                         <systemProperties>
135                                                                                 <systemProperty>
136                                                                                         <key>AJSC_HOME</key>
137                                                                                         <value>${runAjscHome}</value>
138                                                                                 </systemProperty>
139                                                                                 <systemProperty>
140                                                                                         <key>AFT_HOME</key>
141                                                                                         <value>${runAjscHome}/bundleconfig/</value>
142                                                                                 </systemProperty>
143                                                                                 <systemProperty>
144                                                                                         <key>AJSC_CONF_HOME</key>
145                                                                                         <value>${aaiAppHome}/bundleconfig-local</value>
146                                                                                 </systemProperty>
147                                                                                 <systemProperty>
148                                                                                         <key>logback.configurationFile</key>
149                                                                                         <value>${aaiAppHome}/ajsc-shared-config/etc/logback.xml</value>
150                                                                                 </systemProperty>
151                                                                                 <systemProperty>
152                                                                                         <key>AJSC_SHARED_CONFIG</key>
153                                                                                         <value>${aaiAppHome}/ajsc-shared-config</value>
154                                                                                 </systemProperty>
155                                                                                 <systemProperty>
156                                                                                         <key>file.separator</key>
157                                                                                         <value>/</value>
158                                                                                 </systemProperty>
159                                                                                 <systemProperty>
160                                                                                         <key>snapshot.location</key>
161                                                                                         <value>${basedir}/ajsc-aai/snapshots/${snapshot.file}</value>
162                                                                                 </systemProperty>
163                                                                                 <!-- Please, NOTE: The following 2 system properties will normally 
164                                                                                         be set within the sys-props.properties file once deployed to a node. We are 
165                                                                                         setting them HERE to run locally to make more efficient use of maven variable 
166                                                                                         replacement for ${basedir} -->
167                                                                                 <!-- AJSC_EXTERNAL_LIB_FOLDERS represents the particular jars that 
168                                                                                         will be externalized on a CSI node. This includes dme2 and csm related artifact. -->
169                                                                                 <sysproperty>
170                                                                                         <key>AJSC_EXTERNAL_LIB_FOLDERS</key>
171                                                                                         <value>${aaiAppHome}/target/commonLibs</value>
172                                                                                 </sysproperty>
173                                                                                 <!-- AJSC_EXTERNAL_PROPERTIES_FOLDERS represents the particular 
174                                                                                         files that may need to be added to the classpath. These files will be externalized 
175                                                                                         on a CSI node. This includes dme2 and csm related artifact (such as csm-config-app.properties). 
176                                                                                         Failure to have these files on the classpath may result in errors thrown 
177                                                                                         by csm framework. -->
178                                                                                 <sysproperty>
179                                                                                         <key>AJSC_EXTERNAL_PROPERTIES_FOLDERS</key>
180                                                                                         <value>${aaiAppHome}/ajsc-shared-config/etc</value>
181                                                                                 </sysproperty>
182
183                                                                                 <systemProperty>
184                                                                                         <key>AJSC_SERVICE_NAMESPACE</key>
185                                                                                         <value>${module.ajsc.namespace.name}</value>
186                                                                                 </systemProperty>
187                                                                                 <systemProperty>
188                                                                                         <key>AJSC_SERVICE_VERSION</key>
189                                                                                         <value>${module.ajsc.namespace.version}</value>
190                                                                                 </systemProperty>
191                                                                                 <systemProperty>
192                                                                                         <key>SOACLOUD_SERVICE_VERSION</key>
193                                                                                         <value>${project.version}</value>
194                                                                                 </systemProperty>
195                                                                                 <systemProperty>
196                                                                                         <key>server.port</key>
197                                                                                         <value>${serverPort}</value>
198                                                                                 </systemProperty>
199                                                                                 <systemProperty>
200                                                                                         <key>aai-core.version</key>
201                                                                                         <value>${aai-core.version}</value>
202                                                                                 </systemProperty>
203                                                                         </systemProperties>
204
205                                                                         <!-- Command Line Arguments to add to the java command. Here, you 
206                                                                                 can specify the port as well as the Context you want your service to run 
207                                                                                 in. Use context=/ to run in an unnamed Context (Root Context). The default 
208                                                                                 configuration of the AJSC is to run under the / Context. Setting the port 
209                                                                                 here can aid during the development phase of your service. However, you can 
210                                                                                 leave this argument out entirely, and the AJSC will default to using an Ephemeral 
211                                                                                 port. -->
212                                                                         <arguments>
213                                                                                 <argument>context=/</argument>
214                                                                                 <argument>port=${serverPort}</argument>
215                                                                                 <argument>sslport=${sslport}</argument>
216                                                                         </arguments>
217                                                                 </configuration>
218                                                         </execution>
219                                                 </executions>
220                                                 <configuration>
221                                                         <executable>java</executable>
222                                                 </configuration>
223                                                 <dependencies>
224                                                         <dependency>
225                                                                 <groupId>com.att.ajsc</groupId>
226                                                                 <artifactId>ajsc-runner</artifactId>
227                                                                 <version>${ajscRuntimeVersion}</version>
228                                                         </dependency>
229                                                 </dependencies>
230                                         </plugin>
231                                 </plugins>
232                         </build>
233                 </profile>
234         </profiles>
235 <build>
236         <pluginManagement>
237                 <plugins>
238                         <plugin>
239                                 <groupId>org.apache.maven.plugins</groupId>
240                                 <artifactId>maven-compiler-plugin</artifactId>
241                                 <version>3.1</version>
242                                 <configuration>
243                                         <compilerId>groovy-eclipse-compiler</compilerId>
244                                         <verbose>false</verbose>
245                                         <source>1.8</source>
246                                         <target>1.8</target>
247                                 </configuration>
248                                 <dependencies>
249                                         <dependency>
250                                                 <groupId>org.codehaus.groovy</groupId>
251                                                 <artifactId>groovy-eclipse-compiler</artifactId>
252                                                 <version>2.9.0-01</version>
253                                         </dependency>
254                                         <dependency>
255                                                 <groupId>org.codehaus.groovy</groupId>
256                                                 <artifactId>groovy-eclipse-batch</artifactId>
257                                                 <version>2.3.4-01</version>
258                                         </dependency>
259                                 </dependencies>
260                         </plugin>
261         <plugin>
262                 <groupId>org.apache.maven.plugins</groupId>
263                 <artifactId>maven-deploy-plugin</artifactId>
264                 <executions>
265                         <execution>
266                         <id>default-deploy</id>
267                         <phase>none</phase>
268                         </execution>
269                         </executions>
270                 </plugin>        
271                 <plugin>
272                     <groupId>org.sonatype.plugins</groupId>
273                     <artifactId>nexus-staging-maven-plugin</artifactId>
274                     <version>1.6.7</version>
275                     <extensions>true</extensions>
276                     <configuration>
277                         <nexusUrl>${nexusproxy}</nexusUrl>
278                         <stagingProfileId>176c31dfe190a</stagingProfileId>
279                         <serverId>ecomp-staging</serverId>
280                     </configuration>
281                 </plugin>
282                 </plugins>
283         </pluginManagement>
284                     <plugins>
285             <!-- license plugin -->
286                     <plugin>
287                     <groupId>org.codehaus.mojo</groupId>
288                     <artifactId>license-maven-plugin</artifactId>
289                     <version>1.12</version>
290                     <configuration>
291                         <addJavaLicenseAfterPackage>false</addJavaLicenseAfterPackage>
292                         <licenseName>apache_v2</licenseName>
293                         <inceptionYear>2017</inceptionYear>
294                         <organizationName>AT&amp;T Intellectual Property. All rights reserved.</organizationName>
295                         <projectName>org.openecomp.aai</projectName>
296                         <canUpdateCopyright>true</canUpdateCopyright>
297                         <canUpdateDescription>true</canUpdateDescription>
298                         <canUpdateLicense>true</canUpdateLicense>
299                         <emptyLineAfterHeader>true</emptyLineAfterHeader>
300                         <processStartTag>============LICENSE_START=======================================================</processStartTag>
301                         <processEndTag>============LICENSE_END=========================================================</processEndTag>
302                         <sectionDelimiter>================================================================================</sectionDelimiter>
303                         <includes>
304                                 <include>**/*.java</include>
305                                 <include>**/*.ksh</include>
306                                 <include>**/*.sh</include>
307                                 <include>**/*.ftl</include>
308                                 <include>**/*.xsd</include>
309                                 <include>**/*.xjb</include>
310                                 <include>**/*.yml</include>
311                                 <include>**/*.yaml</include>
312                                 <include>**/aai*.xml</include>
313                                 <include>**/*logback*.xml</include>
314                                 <include>**/*aaiconfig*.properties</include>
315                                 <include>**/*titan*.properties</include>
316                         </includes>
317                         </configuration>
318                     <executions>
319                         <execution>
320                              <id>first</id>
321                               <goals>
322                                   <goal>update-file-header</goal>
323                               </goals>
324                                   <phase>process-sources</phase>
325                          </execution>
326                       </executions>
327                    </plugin>
328                         <plugin>
329                           <groupId>org.apache.maven.plugins</groupId>
330                           <artifactId>maven-site-plugin</artifactId>
331                           <version>3.6</version>
332                           <dependencies>
333                             <dependency>
334                               <groupId>org.apache.maven.wagon</groupId>
335                               <artifactId>wagon-webdav-jackrabbit</artifactId>
336                               <version>2.10</version>
337                             </dependency>
338                           </dependencies>
339                     </plugin>
340                </plugins>
341         </build>
342     <reporting>
343       <plugins>
344         <plugin>
345           <groupId>org.apache.maven.plugins</groupId>
346           <artifactId>maven-javadoc-plugin</artifactId>
347           <version>2.10.4</version>
348           <configuration>
349             <failOnError>false</failOnError>
350             <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
351             <docletArtifact>
352               <groupId>org.umlgraph</groupId>
353               <artifactId>umlgraph</artifactId>
354               <version>5.6</version>
355             </docletArtifact>
356             <additionalparam>-views</additionalparam>
357             <useStandardDocletOptions>true</useStandardDocletOptions>
358           </configuration>
359         </plugin>
360       </plugins>
361     </reporting>
362         
363 </project>