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