pom.xml: Updating maven-dependency-plugin version
[aai/aai-service.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.0.0</version>
9         </parent>
10         <groupId>org.openecomp.aai.aai-service</groupId>
11         <artifactId>aai-service</artifactId>
12         <version>1.1.0-SNAPSHOT</version>
13         <name>aai</name>
14         <packaging>pom</packaging>
15         <modules>
16                 <module>aai-schema</module>
17                 <module>annotations</module>
18                 <module>ajsc-aai</module>
19         </modules>
20         <properties>
21                 <maven.compiler.target>1.8</maven.compiler.target>
22                 <maven.compiler.source>1.8</maven.compiler.source>
23                 <module.ajsc.namespace.name>ActiveAndAvailableInventory-CloudNetwork</module.ajsc.namespace.name>
24                 <module.ajsc.namespace.version>v1</module.ajsc.namespace.version>
25                 <nexusproxy>https://nexus.onap.org</nexusproxy>
26                 <sitePath>/content/sites/site/${project.artifactId}/${project.version}</sitePath>
27         <ajscRuntimeVersion>2.0.0</ajscRuntimeVersion>
28
29                 <!-- This will be the Absolute Root of the Project and should contain NO 
30                         Versioning -->
31                 <absoluteDistFilesRoot>/opt/app/ajsc-aai</absoluteDistFilesRoot>
32
33                 <!-- For Versioning upon installation, add /${openecomp.release} to distFilesRoot. 
34                         For NO Versioning, leave as is -->
35                 <!-- example: /appl/${project.artifactId}/${openecomp.release}. Also, add 
36                         ${openecomp.release} to ${runAjscHome} for running locally. -->
37                 <distFilesRoot>/opt/app/ajsc-aai/${project.version}</distFilesRoot>
38                 <aaiAppHome>${basedir}/ajsc-aai</aaiAppHome>
39                 <runAjscHome>${aaiAppHome}/target/swm/package/nix/dist_files${distFilesRoot}</runAjscHome>
40
41                 <!-- For SOA Cloud Installation -->
42                 <installOwnerUser>aaiadmin</installOwnerUser>
43                 <installOwnerGroup>aaiadmin</installOwnerGroup>
44                 <ownerManagementGroup>org.openecomp.aai.dev</ownerManagementGroup>
45
46                 <!-- Port Selection. A value of 0 will allow for dynamic port selection. 
47                         For local testing, you may choose to hardcode this value to something like 
48                         8080 -->
49                 <serverPort>8080</serverPort>
50                 <sslport>8443</sslport>
51
52                 <testRouteOffer>workstation</testRouteOffer>
53                 <testEnv>DEV</testEnv>
54
55                 <!-- For using CXF with Maven -->
56                 <cxf.version>3.0.4</cxf.version>
57         </properties>
58         <distributionManagement>
59                 <repository>
60                         <id>ecomp-releases</id>
61                         <name>ECOMP Release Repository</name>
62                         <url>${nexusproxy}/content/repositories/releases/</url>
63                 </repository>
64                 <snapshotRepository>
65                         <id>ecomp-snapshots</id>
66                         <name>ECOMP Snapshot Repository</name>
67                         <url>${nexusproxy}/content/repositories/snapshots/</url>
68                 </snapshotRepository>
69                 <site>
70                     <id>ecomp-site</id>
71                     <url>dav:${nexusproxy}${sitePath}</url>
72                 </site>
73         </distributionManagement>
74         
75                 <!-- Plugins and repositories -->
76           <pluginRepositories>
77                 <pluginRepository>
78                            <id>central</id>
79                           <url>http://repo1.maven.org/maven2</url>
80                    </pluginRepository>
81                   <pluginRepository>
82                           <id>EvoSuite</id>
83                         <name>EvoSuite Repository</name>
84                          <url>http://www.evosuite.org/m2</url>
85                   </pluginRepository>
86           </pluginRepositories>
87            <repositories>
88                  <repository>
89                           <id>AJSC</id>
90                           <name>AJSC repository</name>
91                           <url>https://mvnrepository.com/artifact/com.att.ajsc</url>
92                   </repository>
93                    <repository>
94                           <id>restlet</id>
95                           <name>maven reslet</name>
96                           <url>https://maven.restlet.com/</url>
97                   </repository>
98                   
99                    <repository>
100                           <id>central</id>
101                           <name>Maven 2 repository 2</name>
102                           <url>http://repo2.maven.org/maven2/</url>
103                   </repository>
104               <repository>
105                          <id>ecomp-releases</id>
106                           <name>ECOMP Release Repository</name>
107                          <url>${nexusproxy}/content/repositories/releases/</url>
108                   </repository>
109                 <repository>
110                     <id>ecomp-staging</id>
111                     <name>ECOMP Staging Repository</name>
112                     <url>${nexusproxy}/content/repositories/staging/</url>
113                 </repository>
114                   <repository>
115                          <id>ecomp-snapshots</id>
116                           <name>ECOMP Snapshot Repository</name>
117                           <url>${nexusproxy}/content/repositories/snapshots/</url>
118                   </repository>
119
120           </repositories>
121         
122
123         <!-- The standard build tasks for this project are inherited from the parent. 
124                 Please do not override the build tasks. However tasks and/or profiles can 
125                 be included here as well as additional dependencies for your service. Any 
126                 runtime or compile scope dependencies will be copied to the INSTALLATION_PATH/extJars 
127                 folder and will be made available on the AJSC classpath for your service. 
128                 Please, NOTE: DME2 and CSM related dependencies are EXTERNALIZED within the 
129                 CSI environment. Therefore, they are provided within this project as "provided" 
130                 dependencies. In order for the AJSC to run properly, locally, the CSM and 
131                 DME2 dependencies will be copied into the target/commonLibs folder and will 
132                 be made available to the classpath of the AJSC through the use of the system 
133                 property, "AJSC_EXTERNAL_LIB_FOLDERS". This system property needs to be set 
134                 in the "runAjsc" maven profile within the pom.xml (and, is defaulted to do 
135                 so).   -->
136         <dependencies>  
137                 <dependency>    
138                         <groupId>dom4j</groupId>
139                                   <artifactId>dom4j</artifactId>
140                                   <version>1.6.1</version>
141                                   <scope>provided</scope>
142                   </dependency>
143                   <dependency>
144                                   <groupId>com.att.aft</groupId>
145                                   <artifactId>dme2</artifactId>
146                                   <version>3.1.200</version>
147                                   <scope>provided</scope>
148                 </dependency>
149                 <dependency>
150                         <groupId>com.att.ajsc</groupId>
151                         <artifactId>ajsc-runner</artifactId>
152                         <version>${ajscRuntimeVersion}</version>
153                         <scope>runtime</scope>
154                 </dependency>
155                 <dependency>
156                         <groupId>com.att.ajsc</groupId>
157                         <artifactId>ajsc-core</artifactId>
158                         <version>${ajscRuntimeVersion}</version>
159                         <scope>provided</scope>
160                 </dependency>
161         </dependencies>
162         <profiles>
163                 <profile>
164                         <id>jenkins-properties</id>
165                         <activation>
166                                 <os>
167                                         <family>unix</family>
168                                 </os>
169                         </activation>
170                 </profile>
171                 <profile>
172                         <id>runAjsc</id>
173                         <build>
174                                 <defaultGoal>initialize</defaultGoal>
175                                 <plugins>
176                                         <plugin>
177                                                 <groupId>org.apache.maven.plugins</groupId>
178                                                 <artifactId>maven-dependency-plugin</artifactId>
179                                                 <version>2.8</version>
180                                                 <executions>
181                                                         <execution>
182                                                                 <id>copy-agent</id>
183                                                                 <phase>process-test-classes</phase>
184                                                                 <goals>
185                                                                         <goal>copy</goal>
186                                                                 </goals>
187                                                                 <configuration>
188                                                                         <artifactItems>
189                                                                                 <artifactItem>
190                                                                                         <groupId>org.powermock</groupId>
191                                                                                         <artifactId>powermock-module-javaagent</artifactId>
192                                                                                         <version>1.6.2</version>
193                                                                                         <outputDirectory>${project.build.directory}/agents</outputDirectory>
194                                                                                         <destFileName>powermock-javaagent.jar</destFileName>
195                                                                                 </artifactItem>
196                                                                         </artifactItems>
197                                                                 </configuration>
198                                                         </execution>
199                                                 </executions>
200                                         </plugin>
201                                         <plugin>
202                                                 <groupId>org.codehaus.mojo</groupId>
203                                                 <artifactId>exec-maven-plugin</artifactId>
204                                                 <version>1.3.2</version>
205                                                 <executions>
206                                                         <execution>
207                                                                 <id>run ajsc</id>
208                                                                 <phase>initialize</phase>
209                                                                 <goals>
210                                                                         <goal>java</goal>
211                                                                 </goals>
212                                                                 <configuration>
213                                                                         <!-- In order to better mimic a SOA cloud installation of AJSC (and 
214                                                                                 to help eliminate Maven/Eclipse/AJSC classpath issues that may be difficult 
215                                                                                 to diagnose), within this profile used to run locally, we are NOT including 
216                                                                                 project dependencies. These will be loaded by AJSC from $AJSC_HOME/extJars. 
217                                                                                 The only jar needed to run AJSC is the ajsc-runner.jar, and therefore is 
218                                                                                 the only dependency required by this profile to run locally. -->
219                                                                         <includeProjectDependencies>false</includeProjectDependencies>
220                                                                         <includePluginDependencies>true</includePluginDependencies>
221                                                                         <executable>java</executable>
222                                                                         <mainClass>com.att.ajsc.runner.Runner</mainClass>
223                                                                         <executableDependency>
224                                                                                 <groupId>com.att.ajsc</groupId>
225                                                                                 <artifactId>ajsc-runner</artifactId>
226                                                                         </executableDependency>
227
228                                                                         <environmentVariables>
229                                                                                 <AJSC_HOME>${runAjscHome}</AJSC_HOME>
230                                                                         </environmentVariables>
231                                                                         <additionalClasspathElements>
232                                                                                 <additionalClasspathElement>${runAjscHome}/extJars/logback-access-1.1.7.jar</additionalClasspathElement>
233                                                                                 <additionalClasspathElement>${runAjscHome}/extJars/logback-core-1.1.7.jar</additionalClasspathElement>
234                                                                                 <additionalClasspathElement>${runAjscHome}/extJars/aai-custom.jar</additionalClasspathElement>
235                                                                         </additionalClasspathElements>
236
237                                                                         <!-- Main AJSC System Properties below (necessary for proper startup) -->
238                                                                         <systemProperties>
239                                                                                 <systemProperty>
240                                                                                         <key>AJSC_HOME</key>
241                                                                                         <value>${runAjscHome}</value>
242                                                                                 </systemProperty>
243                                                                                 <systemProperty>
244                                                                                         <key>AFT_HOME</key>
245                                                                                         <value>${runAjscHome}/bundleconfig/</value>
246                                                                                 </systemProperty>
247                                                                                 <systemProperty>
248                                                                                         <key>AJSC_CONF_HOME</key>
249                                                                                         <value>${aaiAppHome}/bundleconfig-local</value>
250                                                                                 </systemProperty>
251                                                                                 <systemProperty>
252                                                                                         <key>logback.configurationFile</key>
253                                                                                         <value>${aaiAppHome}/ajsc-shared-config/etc/logback.xml</value>
254                                                                                 </systemProperty>
255                                                                                 <systemProperty>
256                                                                                         <key>AJSC_SHARED_CONFIG</key>
257                                                                                         <value>${aaiAppHome}/ajsc-shared-config</value>
258                                                                                 </systemProperty>
259                                                                                 <systemProperty>
260                                                                                         <key>file.separator</key>
261                                                                                         <value>/</value>
262                                                                                 </systemProperty>
263
264                                                                                 <!-- Please, NOTE: The following 2 system properties will normally 
265                                                                                         be set within the sys-props.properties file once deployed to a node. We are 
266                                                                                         setting them HERE to run locally to make more efficient use of maven variable 
267                                                                                         replacement for ${basedir} -->
268                                                                                 <!-- AJSC_EXTERNAL_LIB_FOLDERS represents the particular jars that 
269                                                                                         will be externalized on a CSI node. This includes dme2 and csm related artifact. -->
270                                                                                 <sysproperty>
271                                                                                         <key>AJSC_EXTERNAL_LIB_FOLDERS</key>
272                                                                                         <value>${aaiAppHome}/target/commonLibs</value>
273                                                                                 </sysproperty>
274                                                                                 <!-- AJSC_EXTERNAL_PROPERTIES_FOLDERS represents the particular 
275                                                                                         files that may need to be added to the classpath. These files will be externalized 
276                                                                                         on a CSI node. This includes dme2 and csm related artifact (such as csm-config-app.properties). 
277                                                                                         Failure to have these files on the classpath may result in errors thrown 
278                                                                                         by csm framework. -->
279                                                                                 <sysproperty>
280                                                                                         <key>AJSC_EXTERNAL_PROPERTIES_FOLDERS</key>
281                                                                                         <value>${aaiAppHome}/ajsc-shared-config/etc</value>
282                                                                                 </sysproperty>
283
284                                                                                 <systemProperty>
285                                                                                         <key>AJSC_SERVICE_NAMESPACE</key>
286                                                                                         <value>${module.ajsc.namespace.name}</value>
287                                                                                 </systemProperty>
288                                                                                 <systemProperty>
289                                                                                         <key>AJSC_SERVICE_VERSION</key>
290                                                                                         <value>${module.ajsc.namespace.version}</value>
291                                                                                 </systemProperty>
292                                                                                 <systemProperty>
293                                                                                         <key>SOACLOUD_SERVICE_VERSION</key>
294                                                                                         <value>${project.version}</value>
295                                                                                 </systemProperty>
296                                                                                 <systemProperty>
297                                                                                         <key>server.port</key>
298                                                                                         <value>${serverPort}</value>
299                                                                                 </systemProperty>
300                                                                         </systemProperties>
301
302                                                                         <!-- Command Line Arguments to add to the java command. Here, you 
303                                                                                 can specify the port as well as the Context you want your service to run 
304                                                                                 in. Use context=/ to run in an unnamed Context (Root Context). The default 
305                                                                                 configuration of the AJSC is to run under the / Context. Setting the port 
306                                                                                 here can aid during the development phase of your service. However, you can 
307                                                                                 leave this argument out entirely, and the AJSC will default to using an Ephemeral 
308                                                                                 port. -->
309                                                                         <arguments>
310                                                                                 <argument>context=/</argument>
311                                                                                 <argument>port=${serverPort}</argument>
312                                                                                 <argument>sslport=${sslport}</argument>
313                                                                         </arguments>
314                                                                 </configuration>
315                                                         </execution>
316                                                 </executions>
317                                                 <configuration>
318                                                         <executable>java</executable>
319                                                 </configuration>
320                                                 <dependencies>
321                                                         <dependency>
322                                                                 <groupId>com.att.ajsc</groupId>
323                                                                 <artifactId>ajsc-runner</artifactId>
324                                                                 <version>${ajscRuntimeVersion}</version>
325                                                         </dependency>
326                                                 </dependencies>
327                                         </plugin>
328                                 </plugins>
329                         </build>
330                 </profile>
331         </profiles>
332         <build>
333         <plugins>
334                 <!-- license plugin -->         
335             <plugin>
336             <groupId>org.codehaus.mojo</groupId>
337             <artifactId>license-maven-plugin</artifactId>
338             <version>1.12</version>
339             <configuration>
340                 <addJavaLicenseAfterPackage>false</addJavaLicenseAfterPackage>
341                 <licenseName>apache_v2</licenseName>
342                 <inceptionYear>2017</inceptionYear>
343                 <organizationName>AT&amp;T Intellectual Property. All rights reserved.</organizationName>
344                 <projectName>org.openecomp.aai</projectName>
345                 <canUpdateCopyright>true</canUpdateCopyright>
346                 <canUpdateDescription>true</canUpdateDescription>
347                 <canUpdateLicense>true</canUpdateLicense>
348                 <emptyLineAfterHeader>true</emptyLineAfterHeader>
349                 <processStartTag>============LICENSE_START=======================================================</processStartTag>
350                 <processEndTag>============LICENSE_END=========================================================</processEndTag>
351                 <sectionDelimiter>================================================================================</sectionDelimiter>
352                 <includes>
353                         <include>**/*.java</include>
354                         <include>**/*.ksh</include>
355                         <include>**/*.sh</include>
356                         <include>**/*.ftl</include>
357                         <include>**/*.xsd</include>
358                         <include>**/*.xjb</include>
359                         <include>**/aai*.xml</include>
360                         <include>**/*logback*.xml</include>
361                         <include>**/*aaiconfig*.properties</include>
362                         <include>**/*titan*.properties</include>
363                 </includes>          
364                 </configuration>
365             <executions>
366                 <execution>
367                      <id>first</id>
368                       <goals>
369                           <goal>update-file-header</goal>
370                       </goals>
371                           <phase>process-sources</phase>
372                  </execution>
373               </executions>
374            </plugin>
375         <plugin>
376                         <groupId>org.codehaus.mojo</groupId>
377                         <artifactId>sonar-maven-plugin</artifactId>
378                         <version>3.2</version>
379                 </plugin>
380         <plugin>
381             <groupId>org.apache.maven.plugins</groupId>
382             <artifactId>maven-site-plugin</artifactId>
383             <version>3.6</version>
384             <configuration>
385                 <reportPlugins>
386                     <plugin>
387                         <groupId>org.apache.maven.plugins</groupId>
388                         <artifactId>maven-project-info-reports-plugin</artifactId>
389                         <version>2.4</version>
390                         <configuration>
391                             <dependencyDetailsEnabled>false</dependencyDetailsEnabled>
392                             <dependencyLocationsEnabled>false</dependencyLocationsEnabled>
393                         </configuration>
394                         <reports>
395                             <report>dependencies</report>
396                         </reports>
397                     </plugin>
398                     <plugin>
399                         <groupId>org.apache.maven.plugins</groupId>
400                         <artifactId>maven-javadoc-plugin</artifactId>
401                         <version>2.8</version>
402                         <configuration>
403                             <additionalparam>-Xdoclint:none</additionalparam>
404                         </configuration>
405                     </plugin>
406                 </reportPlugins>
407             </configuration>
408             <dependencies>
409               <dependency>
410                 <groupId>org.apache.maven.wagon</groupId>
411                 <artifactId>wagon-webdav-jackrabbit</artifactId>
412                 <version>2.10</version>
413               </dependency>
414             </dependencies>
415         </plugin>
416         <plugin>
417                 <groupId>org.apache.maven.plugins</groupId>
418                 <artifactId>maven-deploy-plugin</artifactId>
419                 <executions>
420                         <execution>
421                         <id>default-deploy</id>
422                         <phase>none</phase>
423                         </execution>
424                         </executions>
425                 </plugin>        
426                 <plugin>
427                     <groupId>org.sonatype.plugins</groupId>
428                     <artifactId>nexus-staging-maven-plugin</artifactId>
429                     <version>1.6.7</version>
430                     <extensions>true</extensions>
431                     <configuration>
432                         <nexusUrl>${nexusproxy}</nexusUrl>
433                         <stagingProfileId>176c31dfe190a</stagingProfileId>
434                         <serverId>ecomp-staging</serverId>
435                     </configuration>
436                 </plugin>
437         </plugins>
438 </build>
439
440     <reporting>
441       <plugins>
442         <plugin>
443           <groupId>org.apache.maven.plugins</groupId>
444           <artifactId>maven-javadoc-plugin</artifactId>
445           <version>2.10.4</version>
446           <configuration>
447             <failOnError>false</failOnError>
448             <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
449             <docletArtifact>
450               <groupId>org.umlgraph</groupId>
451               <artifactId>umlgraph</artifactId>
452               <version>5.6</version>
453             </docletArtifact>
454             <additionalparam>-views</additionalparam>
455             <useStandardDocletOptions>true</useStandardDocletOptions>
456           </configuration>
457         </plugin>
458       </plugins>
459     </reporting>
460
461
462 </project>