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