1b2081a256f0237ea0d2c597f02d6693bbf15bc1
[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/${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>
29
30                 <!-- This will be the Absolute Root of the Project and should contain NO 
31                         Versioning -->
32                 <absoluteDistFilesRoot>/opt/app/aai-traversal</absoluteDistFilesRoot>
33
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>
46
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 
49                         8080 -->
50                 <serverPort>8083</serverPort>
51                 <sslport>8446</sslport>
52                 <testRouteOffer>workstation</testRouteOffer>
53                 <testEnv>DEV</testEnv>
54
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>
60         </properties>
61
62         <distributionManagement>
63                 <repository>
64                         <id>ecomp-releases</id>
65                         <name>ECOMP Release Repository</name>
66                         <url>${nexusproxy}/content/repositories/releases/</url>
67                 </repository>
68                 <snapshotRepository>
69                         <id>ecomp-snapshots</id>
70                         <name>ECOMP Snapshot Repository</name>
71                         <url>${nexusproxy}/content/repositories/snapshots/</url>
72                 </snapshotRepository>
73                 <site>
74                         <id>ecomp-site</id>
75                         <url>dav:${nexusproxy}${sitePath}</url>
76                 </site>
77         </distributionManagement>
78         <profiles>
79                 <profile>
80                         <id>jenkins-properties</id>
81                         <activation>
82                                 <os>
83                                         <family>unix</family>
84                                 </os>
85                         </activation>
86                         <properties>
87                                 <swmpkgversion>${env.swmpkgversion}</swmpkgversion>
88                         </properties>
89                 </profile>
90                 <profile>
91                         <id>runAjsc</id>
92                         <build>
93                                 <defaultGoal>initialize</defaultGoal>
94                                 <plugins>
95
96                                         <plugin>
97                                                 <groupId>org.codehaus.mojo</groupId>
98                                                 <artifactId>exec-maven-plugin</artifactId>
99                                                 <version>1.3.2</version>
100                                                 <executions>
101                                                         <execution>
102                                                                 <id>run ajsc</id>
103                                                                 <phase>initialize</phase>
104                                                                 <goals>
105                                                                         <goal>java</goal>
106                                                                 </goals>
107                                                                 <configuration>
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>
122
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>
131
132                                                                         <!-- Main AJSC System Properties below (necessary for proper startup) -->
133                                                                         <systemProperties>
134                                                                                 <systemProperty>
135                                                                                         <key>AJSC_HOME</key>
136                                                                                         <value>${runAjscHome}</value>
137                                                                                 </systemProperty>
138                                                                                 <systemProperty>
139                                                                                         <key>AFT_HOME</key>
140                                                                                         <value>${runAjscHome}/bundleconfig/</value>
141                                                                                 </systemProperty>
142                                                                                 <systemProperty>
143                                                                                         <key>AJSC_CONF_HOME</key>
144                                                                                         <value>${aaiAppHome}/bundleconfig-local</value>
145                                                                                 </systemProperty>
146                                                                                 <systemProperty>
147                                                                                         <key>logback.configurationFile</key>
148                                                                                         <value>${aaiAppHome}/ajsc-shared-config/etc/logback.xml</value>
149                                                                                 </systemProperty>
150                                                                                 <systemProperty>
151                                                                                         <key>AJSC_SHARED_CONFIG</key>
152                                                                                         <value>${aaiAppHome}/ajsc-shared-config</value>
153                                                                                 </systemProperty>
154                                                                                 <systemProperty>
155                                                                                         <key>file.separator</key>
156                                                                                         <value>/</value>
157                                                                                 </systemProperty>
158                                                                                 <systemProperty>
159                                                                                         <key>snapshot.location</key>
160                                                                                         <value>${basedir}/ajsc-aai/snapshots/${snapshot.file}</value>
161                                                                                 </systemProperty>
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. -->
168                                                                                 <sysproperty>
169                                                                                         <key>AJSC_EXTERNAL_LIB_FOLDERS</key>
170                                                                                         <value>${aaiAppHome}/target/commonLibs</value>
171                                                                                 </sysproperty>
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. -->
177                                                                                 <sysproperty>
178                                                                                         <key>AJSC_EXTERNAL_PROPERTIES_FOLDERS</key>
179                                                                                         <value>${aaiAppHome}/ajsc-shared-config/etc</value>
180                                                                                 </sysproperty>
181
182                                                                                 <systemProperty>
183                                                                                         <key>AJSC_SERVICE_NAMESPACE</key>
184                                                                                         <value>${module.ajsc.namespace.name}</value>
185                                                                                 </systemProperty>
186                                                                                 <systemProperty>
187                                                                                         <key>AJSC_SERVICE_VERSION</key>
188                                                                                         <value>${module.ajsc.namespace.version}</value>
189                                                                                 </systemProperty>
190                                                                                 <systemProperty>
191                                                                                         <key>SOACLOUD_SERVICE_VERSION</key>
192                                                                                         <value>${project.version}</value>
193                                                                                 </systemProperty>
194                                                                                 <systemProperty>
195                                                                                         <key>server.port</key>
196                                                                                         <value>${serverPort}</value>
197                                                                                 </systemProperty>
198                                                                                 <systemProperty>
199                                                                                         <key>aai-core.version</key>
200                                                                                         <value>${aai-core.version}</value>
201                                                                                 </systemProperty>
202                                                                         </systemProperties>
203
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 
210                                                                                 port. -->
211                                                                         <arguments>
212                                                                                 <argument>context=/</argument>
213                                                                                 <argument>port=${serverPort}</argument>
214                                                                                 <argument>sslport=${sslport}</argument>
215                                                                         </arguments>
216                                                                 </configuration>
217                                                         </execution>
218                                                 </executions>
219                                                 <configuration>
220                                                         <executable>java</executable>
221                                                 </configuration>
222                                                 <dependencies>
223                                                         <dependency>
224                                                                 <groupId>com.att.ajsc</groupId>
225                                                                 <artifactId>ajsc-runner</artifactId>
226                                                                 <version>${ajscRuntimeVersion}</version>
227                                                         </dependency>
228                                                 </dependencies>
229                                         </plugin>
230                                 </plugins>
231                         </build>
232                 </profile>
233         </profiles>
234 <build>
235         <pluginManagement>
236                 <plugins>
237                         <plugin>
238                                 <groupId>org.apache.maven.plugins</groupId>
239                                 <artifactId>maven-compiler-plugin</artifactId>
240                                 <version>3.1</version>
241                                 <configuration>
242                                         <compilerId>groovy-eclipse-compiler</compilerId>
243                                         <verbose>false</verbose>
244                                         <source>1.8</source>
245                                         <target>1.8</target>
246                                 </configuration>
247                                 <dependencies>
248                                         <dependency>
249                                                 <groupId>org.codehaus.groovy</groupId>
250                                                 <artifactId>groovy-eclipse-compiler</artifactId>
251                                                 <version>2.9.0-01</version>
252                                         </dependency>
253                                         <dependency>
254                                                 <groupId>org.codehaus.groovy</groupId>
255                                                 <artifactId>groovy-eclipse-batch</artifactId>
256                                                 <version>2.3.4-01</version>
257                                         </dependency>
258                                 </dependencies>
259                         </plugin>
260                 </plugins>
261         </pluginManagement>
262                     <plugins>
263             <!-- license plugin -->
264                     <plugin>
265                     <groupId>org.codehaus.mojo</groupId>
266                     <artifactId>license-maven-plugin</artifactId>
267                     <version>1.12</version>
268                     <configuration>
269                         <addJavaLicenseAfterPackage>false</addJavaLicenseAfterPackage>
270                         <licenseName>apache_v2</licenseName>
271                         <inceptionYear>2017</inceptionYear>
272                         <organizationName>AT&amp;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>
281                         <includes>
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>
294                         </includes>
295                         </configuration>
296                     <executions>
297                         <execution>
298                              <id>first</id>
299                               <goals>
300                                   <goal>update-file-header</goal>
301                               </goals>
302                                   <phase>process-sources</phase>
303                          </execution>
304                       </executions>
305                    </plugin>
306                </plugins>
307         </build>
308         
309 </project>