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