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