Fixing reading key store pwd from env
[aai/data-router.git] / pom.xml
1 <!--
2 ============LICENSE_START=======================================================
3 org.onap.aai
4 ================================================================================
5 Copyright © 2017-2018 AT&T Intellectual Property. All rights reserved.
6 Copyright © 2017-2018 Amdocs
7 ================================================================================
8 Licensed under the Apache License, Version 2.0 (the "License");
9 you may not use this file except in compliance with the License.
10 You may obtain a copy of the License at
11
12       http://www.apache.org/licenses/LICENSE-2.0
13
14 Unless required by applicable law or agreed to in writing, software
15 distributed under the License is distributed on an "AS IS" BASIS,
16 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 See the License for the specific language governing permissions and
18 limitations under the License.
19 ============LICENSE_END=========================================================
20 -->
21 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
22    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
23    <modelVersion>4.0.0</modelVersion>
24
25    <parent>
26       <groupId>org.springframework.boot</groupId>
27       <artifactId>spring-boot-starter-parent</artifactId>
28       <version>1.5.10.RELEASE</version>
29       <relativePath />
30    </parent>
31    <groupId>org.onap.aai.data-router</groupId>
32    <artifactId>data-router</artifactId>
33    <version>1.2.0-SNAPSHOT</version>
34    <name>aai-data-router</name>
35
36    <properties>
37       <java.version>1.8</java.version>
38       <camel-spring-boot.version>2.20.0</camel-spring-boot.version>
39       <docker.location>${basedir}/target</docker.location>
40       <absoluteDistFilesRoot>/appl/${project.artifactId}</absoluteDistFilesRoot>
41       <!-- For NO Versioning, REMOVE the /${project.version} from the <distFilesRoot> 
42          property, below. PLEASE, NOTE: If your ${project.version} is a "-SNAPSHOT" 
43          version, THIS will be used as your directory structure. If you do NOT want 
44          this, simply remove the "-SNAPSHOT" from your <version> declaration at the 
45          top of pom.xml -->
46       <distFilesRoot>/appl/${project.artifactId}/${project.version}</distFilesRoot>
47       <!-- For SOA Cloud Installation -->
48       <installOwnerUser>aaiadmin</installOwnerUser>
49       <installOwnerGroup>aaiadmin</installOwnerGroup>
50       <ownerManagementGroup>com.att.csid.lab</ownerManagementGroup>
51
52       <!-- Port Selection. A value of 0 will allow for dynamic port selection. 
53          For local testing, you may choose to hardcode this value to something like 
54          8080 -->
55       <serverPort>0</serverPort>
56       <sslport>9502</sslport>
57
58       <testRouteOffer>workstation</testRouteOffer>
59       <testEnv>DEV</testEnv>
60       <checkstyle.config.location>google_checks.xml</checkstyle.config.location>
61       <nexusproxy>https://nexus.onap.org</nexusproxy>
62       <!-- Sonar Properties -->
63       <sonar.language>java</sonar.language>
64       <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
65       <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
66       <sonar.jacoco.reportPath>${project.build.directory}/coverage-reports/jacoco.exec</sonar.jacoco.reportPath>
67       <sonar.jacoco.reportMissing.force.zero>false</sonar.jacoco.reportMissing.force.zero>
68       <sonar.projectVersion>${project.version}</sonar.projectVersion>
69       <logback.version>1.2.3</logback.version>
70    </properties>
71
72    <dependencies>
73     <dependency>
74             <groupId>org.springframework.boot</groupId>
75             <artifactId>spring-boot-starter-jersey</artifactId>           
76         </dependency>
77     <dependency>
78             <groupId>ch.qos.logback</groupId>
79             <artifactId>logback-core</artifactId>
80             <version>${logback.version}</version>
81         </dependency>
82         <dependency>
83             <groupId>ch.qos.logback</groupId>
84             <artifactId>logback-classic</artifactId>
85             <version>${logback.version}</version>
86         </dependency>
87         <dependency>
88             <groupId>ch.qos.logback</groupId>
89             <artifactId>logback-access</artifactId>
90             <version>${logback.version}</version>
91         </dependency>
92       <dependency>
93          <groupId>org.apache.camel</groupId>
94          <artifactId>camel-spring-boot-starter</artifactId>
95       </dependency>
96
97       <dependency>
98          <groupId>org.apache.camel</groupId>
99          <artifactId>camel-servlet-starter</artifactId>
100       </dependency>
101       <dependency>
102          <groupId>org.apache.camel</groupId>
103          <artifactId>camel-cxf</artifactId>
104          <version>2.20.1</version>
105       </dependency>
106       <!-- Spring dependencies -->
107       <dependency>
108          <groupId>org.springframework.boot</groupId>
109          <artifactId>spring-boot-starter-web</artifactId>
110       </dependency>      
111       <dependency>
112          <groupId>org.springframework.boot</groupId>
113          <artifactId>spring-boot-starter</artifactId>
114       </dependency>
115       <dependency>
116          <groupId>org.springframework.boot</groupId>
117          <artifactId>spring-boot-starter-actuator</artifactId>
118       </dependency>
119       <dependency>
120          <groupId>javax.ws.rs</groupId>
121          <artifactId>javax.ws.rs-api</artifactId>
122          <version>2.0.1</version>
123       </dependency>
124          <dependency>
125       <groupId>org.eclipse.jetty</groupId>
126       <artifactId>jetty-security</artifactId>
127       <version>9.3.8.RC0</version>
128    </dependency>
129       <dependency>
130          <groupId>org.powermock</groupId>
131          <artifactId>powermock-module-junit4</artifactId>
132          <version>1.6.2</version>
133          <scope>test</scope>
134       </dependency>
135
136       <dependency>
137          <groupId>org.powermock</groupId>
138          <artifactId>powermock-api-mockito</artifactId>
139          <version>1.6.2</version>
140          <scope>test</scope>
141       </dependency>
142
143       <dependency>
144          <groupId>org.powermock</groupId>
145          <artifactId>powermock-module-javaagent</artifactId>
146          <version>1.6.2</version>
147          <scope>test</scope>
148       </dependency>
149
150       <dependency>
151          <groupId>org.powermock</groupId>
152          <artifactId>powermock-module-junit4-rule-agent</artifactId>
153          <version>1.6.2</version>
154          <scope>test</scope>
155       </dependency>
156       <dependency>
157          <groupId>dom4j</groupId>
158          <artifactId>dom4j</artifactId>
159          <version>1.6.1</version>
160          <scope>provided</scope>
161       </dependency>
162
163       <dependency>
164          <groupId>com.att.aft</groupId>
165          <artifactId>dme2</artifactId>
166          <version>3.1.200</version>
167          <scope>provided</scope>
168       </dependency>
169       <dependency>
170          <groupId>org.onap.aai.aai-common</groupId>
171          <artifactId>aai-schema</artifactId>
172          <version>1.2.2-SNAPSHOT</version>
173       </dependency>
174       <dependency>
175          <groupId>org.onap.aai.router-core</groupId>
176          <artifactId>router-core</artifactId>
177          <version>1.1.0</version>
178       </dependency>
179
180       <dependency>
181          <groupId>org.json</groupId>
182          <artifactId>json</artifactId>
183       </dependency>
184
185       <dependency>
186          <groupId>com.google.code.gson</groupId>
187          <artifactId>gson</artifactId>
188          <version>2.6.2</version>
189       </dependency>
190
191       <dependency>
192          <groupId>org.eclipse.persistence</groupId>
193          <artifactId>eclipselink</artifactId>
194          <version>2.6.2</version>
195       </dependency>
196
197       <dependency>
198          <groupId>org.onap.aai.logging-service</groupId>
199          <artifactId>common-logging</artifactId>
200          <version>1.2.2</version>
201       </dependency>
202
203       <dependency>
204          <groupId>org.onap.aai.logging-service</groupId>
205          <artifactId>logging-api</artifactId>
206          <version>1.1.0</version>
207       </dependency>
208
209       <dependency>
210          <groupId>org.onap.aai</groupId>
211          <artifactId>rest-client</artifactId>
212          <version>1.1.0</version>
213       </dependency>
214
215
216
217    </dependencies>
218
219    <build>
220       <finalName>${project.artifactId}</finalName>
221       <plugins>
222          <!-- Checkstyle plugin - used to report on compliance with -->
223          <!-- the Google style guide. -->
224          <plugin>
225             <groupId>org.apache.maven.plugins</groupId>
226             <artifactId>maven-site-plugin</artifactId>
227             <version>3.3</version>
228             <configuration>
229                <reportPlugins>
230                   <plugin>
231                      <groupId>org.apache.maven.plugins</groupId>
232                      <artifactId>maven-checkstyle-plugin</artifactId>
233                      <version>2.17</version>
234                      <reportSets>
235                         <reportSet>
236                            <reports>
237                               <report>checkstyle</report>
238                            </reports>
239                         </reportSet>
240                      </reportSets>
241                   </plugin>
242                </reportPlugins>
243             </configuration>
244          </plugin>
245          <plugin>
246             <groupId>org.springframework.boot</groupId>
247             <artifactId>spring-boot-maven-plugin</artifactId>
248          </plugin>
249          <plugin>
250             <groupId>org.apache.maven.plugins</groupId>
251             <artifactId>maven-resources-plugin</artifactId>
252             <version>2.7</version>
253             <executions>
254                <execution>
255                   <id>copy-docker-file</id>
256                   <phase>package</phase>
257                   <goals>
258                      <goal>copy-resources</goal>
259                   </goals>
260                   <configuration>
261                      <outputDirectory>target</outputDirectory>
262                      <overwrite>true</overwrite>
263                      <resources>
264                         <resource>
265                            <directory>${basedir}/src/main/docker</directory>
266                            <filtering>true</filtering>
267                            <includes>
268                               <include>**/*</include>
269                            </includes>
270                         </resource>
271                         <resource>
272                            <directory>${basedir}</directory>
273                            <filtering>true</filtering>
274                            <includes>
275                               <include>bundleconfig-local/**</include>
276                            </includes>
277                         </resource>
278                         <resource>
279                            <directory>${basedir}/src/main/bin/</directory>
280                            <filtering>true</filtering>
281                            <includes>
282                               <include>**/*</include>
283                            </includes>
284                         </resource>
285                      </resources>
286                   </configuration>
287                </execution>
288             </executions>
289          </plugin>
290          <plugin>
291             <groupId>com.spotify</groupId>
292             <artifactId>docker-maven-plugin</artifactId>
293             <version>0.4.11</version>
294             <configuration>
295                <verbose>true</verbose>
296                <serverId>docker-hub</serverId>
297                <imageName>${docker.push.registry}/onap/${project.artifactId}</imageName>
298                <dockerDirectory>${docker.location}</dockerDirectory>
299                <imageTags>
300                   <imageTag>latest</imageTag>
301                </imageTags>
302                <forceTags>true</forceTags>
303             </configuration>
304          </plugin>
305          <!-- license plugin -->
306          <!-- Uncomment this to add a license header to every source file -->
307             <plugin> <groupId>com.mycila</groupId> <artifactId>license-maven-plugin</artifactId> 
308             <version>3.0</version> <configuration> <header>License.txt</header> <includes> 
309             <include>src/main/java/**</include> <include>src/test/java/**</include> </includes> 
310             </configuration> <executions> <execution> <goals> <goal>format</goal> </goals> 
311             <phase>process-sources</phase> </execution> </executions> </plugin> 
312          <plugin>
313             <groupId>org.sonatype.plugins</groupId>
314             <artifactId>nexus-staging-maven-plugin</artifactId>
315             <version>1.6.7</version>
316             <extensions>true</extensions>
317             <configuration>
318                <nexusUrl>${nexusproxy}</nexusUrl>
319                <stagingProfileId>176c31dfe190a</stagingProfileId>
320                <serverId>ecomp-staging</serverId>
321             </configuration>
322          </plugin>
323          <plugin>
324             <groupId>org.apache.maven.plugins</groupId>
325             <artifactId>maven-deploy-plugin</artifactId>
326             <configuration>
327                <skip>true</skip>
328             </configuration>
329          </plugin>
330          <plugin>
331             <groupId>org.codehaus.mojo</groupId>
332             <artifactId>sonar-maven-plugin</artifactId>
333             <version>3.2</version>
334          </plugin>
335          <plugin>
336             <groupId>org.jacoco</groupId>
337             <artifactId>jacoco-maven-plugin</artifactId>
338             <version>0.7.7.201606060606</version>
339             <configuration>
340                <dumpOnExit>true</dumpOnExit>
341             </configuration>
342             <executions>
343                <execution>
344                   <id>jacoco-initialize-unit-tests</id>
345                   <goals>
346                      <goal>prepare-agent</goal>
347                   </goals>
348                   <configuration>
349                      <destFile>${project.build.directory}/coverage-reports/jacoco.exec
350                      </destFile>
351                   </configuration>
352                </execution>
353             </executions>
354          </plugin>
355
356       </plugins>
357    </build>
358
359
360    <dependencyManagement>
361       <dependencies>
362          <dependency>
363             <groupId>org.apache.camel</groupId>
364             <artifactId>camel-spring-boot-dependencies</artifactId>
365             <version>${camel-spring-boot.version}</version>
366             <type>pom</type>
367             <scope>import</scope>
368          </dependency>
369          <dependency>
370             <groupId>org.apache.httpcomponents</groupId>
371             <artifactId>httpclient</artifactId>
372             <version>4.5</version>
373          </dependency>
374          <dependency>
375             <groupId>org.apache.httpcomponents</groupId>
376             <artifactId>httpcore</artifactId>
377             <version>4.4.1</version>
378          </dependency>
379          <dependency>
380             <groupId>org.json</groupId>
381             <artifactId>json</artifactId>
382             <version>20131018</version>
383          </dependency>
384       </dependencies>
385    </dependencyManagement>
386    <distributionManagement>
387       <repository>
388          <id>ecomp-releases</id>
389          <name>ECOMP Release Repository</name>
390          <url>${nexusproxy}/content/repositories/releases/</url>
391       </repository>
392       <snapshotRepository>
393          <id>ecomp-snapshots</id>
394          <name>ECOMP Snapshot Repository</name>
395          <url>${nexusproxy}/content/repositories/snapshots/</url>
396       </snapshotRepository>
397    </distributionManagement>
398 </project>