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