Moving data-router to Springboot for security
[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    </properties>
70
71    <dependencies>
72       <dependency>
73          <groupId>org.apache.camel</groupId>
74          <artifactId>camel-spring-boot-starter</artifactId>
75       </dependency>
76       <dependency>
77          <groupId>org.apache.camel</groupId>
78          <artifactId>camel-core</artifactId>
79          <version>2.20.1</version>
80       </dependency>
81       <dependency>
82          <groupId>org.apache.camel</groupId>
83          <artifactId>camel-servlet-starter</artifactId>
84       </dependency>
85       <dependency>
86          <groupId>org.apache.camel</groupId>
87          <artifactId>camel-cxf</artifactId>
88          <version>2.20.1</version>
89       </dependency>
90       <!-- Spring dependencies -->
91       <dependency>
92          <groupId>org.springframework.boot</groupId>
93          <artifactId>spring-boot-starter-web</artifactId>
94
95       </dependency>
96       <dependency>
97          <groupId>org.springframework.boot</groupId>
98          <artifactId>spring-boot-starter</artifactId>
99       </dependency>
100       <dependency>
101          <groupId>org.springframework.boot</groupId>
102          <artifactId>spring-boot-starter-actuator</artifactId>
103       </dependency>
104       <dependency>
105          <groupId>javax.ws.rs</groupId>
106          <artifactId>javax.ws.rs-api</artifactId>
107          <version>2.0.1</version>
108       </dependency>
109       <dependency>
110          <groupId>org.powermock</groupId>
111          <artifactId>powermock-module-junit4</artifactId>
112          <version>1.6.2</version>
113          <scope>test</scope>
114       </dependency>
115
116       <dependency>
117          <groupId>org.powermock</groupId>
118          <artifactId>powermock-api-mockito</artifactId>
119          <version>1.6.2</version>
120          <scope>test</scope>
121       </dependency>
122
123       <dependency>
124          <groupId>org.powermock</groupId>
125          <artifactId>powermock-module-javaagent</artifactId>
126          <version>1.6.2</version>
127          <scope>test</scope>
128       </dependency>
129
130       <dependency>
131          <groupId>org.powermock</groupId>
132          <artifactId>powermock-module-junit4-rule-agent</artifactId>
133          <version>1.6.2</version>
134          <scope>test</scope>
135       </dependency>
136       <dependency>
137          <groupId>dom4j</groupId>
138          <artifactId>dom4j</artifactId>
139          <version>1.6.1</version>
140          <scope>provided</scope>
141       </dependency>
142
143       <dependency>
144          <groupId>com.att.aft</groupId>
145          <artifactId>dme2</artifactId>
146          <version>3.1.200</version>
147          <scope>provided</scope>
148       </dependency>
149       <dependency>
150          <groupId>org.onap.aai.aai-common</groupId>
151          <artifactId>aai-schema</artifactId>
152          <version>1.2.2-SNAPSHOT</version>
153       </dependency>
154       <dependency>
155          <groupId>org.onap.aai.router-core</groupId>
156          <artifactId>router-core</artifactId>
157          <version>1.1.0</version>
158       </dependency>
159
160       <dependency>
161          <groupId>org.json</groupId>
162          <artifactId>json</artifactId>
163       </dependency>
164
165       <dependency>
166          <groupId>com.google.code.gson</groupId>
167          <artifactId>gson</artifactId>
168          <version>2.6.2</version>
169       </dependency>
170
171       <dependency>
172          <groupId>org.eclipse.persistence</groupId>
173          <artifactId>eclipselink</artifactId>
174          <version>2.6.2</version>
175       </dependency>
176
177       <dependency>
178          <groupId>org.onap.aai.logging-service</groupId>
179          <artifactId>common-logging</artifactId>
180          <version>1.1.0</version>
181       </dependency>
182
183       <dependency>
184          <groupId>org.onap.aai.logging-service</groupId>
185          <artifactId>logging-api</artifactId>
186          <version>1.1.0</version>
187       </dependency>
188
189       <dependency>
190          <groupId>org.onap.aai</groupId>
191          <artifactId>rest-client</artifactId>
192          <version>1.1.0</version>
193       </dependency>
194
195       <dependency>
196          <groupId>ch.qos.logback</groupId>
197          <artifactId>logback-core</artifactId>
198          <version>1.1.7</version>
199       </dependency>
200
201    </dependencies>
202
203    <build>
204       <finalName>${project.artifactId}</finalName>
205       <plugins>
206          <!-- Checkstyle plugin - used to report on compliance with -->
207          <!-- the Google style guide. -->
208          <plugin>
209             <groupId>org.apache.maven.plugins</groupId>
210             <artifactId>maven-site-plugin</artifactId>
211             <version>3.3</version>
212             <configuration>
213                <reportPlugins>
214                   <plugin>
215                      <groupId>org.apache.maven.plugins</groupId>
216                      <artifactId>maven-checkstyle-plugin</artifactId>
217                      <version>2.17</version>
218                      <reportSets>
219                         <reportSet>
220                            <reports>
221                               <report>checkstyle</report>
222                            </reports>
223                         </reportSet>
224                      </reportSets>
225                   </plugin>
226                </reportPlugins>
227             </configuration>
228          </plugin>
229          <plugin>
230             <groupId>org.springframework.boot</groupId>
231             <artifactId>spring-boot-maven-plugin</artifactId>
232          </plugin>
233          <plugin>
234             <groupId>org.apache.maven.plugins</groupId>
235             <artifactId>maven-resources-plugin</artifactId>
236             <version>2.7</version>
237             <executions>
238                <execution>
239                   <id>copy-docker-file</id>
240                   <phase>package</phase>
241                   <goals>
242                      <goal>copy-resources</goal>
243                   </goals>
244                   <configuration>
245                      <outputDirectory>target</outputDirectory>
246                      <overwrite>true</overwrite>
247                      <resources>
248                         <resource>
249                            <directory>${basedir}/src/main/docker</directory>
250                            <filtering>true</filtering>
251                            <includes>
252                               <include>**/*</include>
253                            </includes>
254                         </resource>
255                         <resource>
256                            <directory>${basedir}</directory>
257                            <filtering>true</filtering>
258                            <includes>
259                               <include>bundleconfig-local/**</include>
260                            </includes>
261                         </resource>
262                         <resource>
263                            <directory>${basedir}/src/main/bin/</directory>
264                            <filtering>true</filtering>
265                            <includes>
266                               <include>**/*</include>
267                            </includes>
268                         </resource>
269                      </resources>
270                   </configuration>
271                </execution>
272             </executions>
273          </plugin>
274          <plugin>
275             <groupId>com.spotify</groupId>
276             <artifactId>docker-maven-plugin</artifactId>
277             <version>0.4.11</version>
278             <configuration>
279                <verbose>true</verbose>
280                <serverId>docker-hub</serverId>
281                <imageName>${docker.push.registry}/onap/${project.artifactId}</imageName>
282                <dockerDirectory>${docker.location}</dockerDirectory>
283                <imageTags>
284                   <imageTag>latest</imageTag>
285                </imageTags>
286                <forceTags>true</forceTags>
287             </configuration>
288          </plugin>
289          <!-- license plugin -->
290          <!-- Uncomment this to add a license header to every source file 
291             <plugin> <groupId>com.mycila</groupId> <artifactId>license-maven-plugin</artifactId> 
292             <version>3.0</version> <configuration> <header>License.txt</header> <includes> 
293             <include>src/main/java/**</include> <include>src/test/java/**</include> </includes> 
294             </configuration> <executions> <execution> <goals> <goal>format</goal> </goals> 
295             <phase>process-sources</phase> </execution> </executions> </plugin> -->
296          <plugin>
297             <groupId>org.sonatype.plugins</groupId>
298             <artifactId>nexus-staging-maven-plugin</artifactId>
299             <version>1.6.7</version>
300             <extensions>true</extensions>
301             <configuration>
302                <nexusUrl>${nexusproxy}</nexusUrl>
303                <stagingProfileId>176c31dfe190a</stagingProfileId>
304                <serverId>ecomp-staging</serverId>
305             </configuration>
306          </plugin>
307          <plugin>
308             <groupId>org.apache.maven.plugins</groupId>
309             <artifactId>maven-deploy-plugin</artifactId>
310             <configuration>
311                <skip>true</skip>
312             </configuration>
313          </plugin>
314          <plugin>
315             <groupId>org.codehaus.mojo</groupId>
316             <artifactId>sonar-maven-plugin</artifactId>
317             <version>3.2</version>
318          </plugin>
319          <plugin>
320             <groupId>org.jacoco</groupId>
321             <artifactId>jacoco-maven-plugin</artifactId>
322             <version>0.7.7.201606060606</version>
323             <configuration>
324                <dumpOnExit>true</dumpOnExit>
325             </configuration>
326             <executions>
327                <execution>
328                   <id>jacoco-initialize-unit-tests</id>
329                   <goals>
330                      <goal>prepare-agent</goal>
331                   </goals>
332                   <configuration>
333                      <destFile>${project.build.directory}/coverage-reports/jacoco.exec
334                      </destFile>
335                   </configuration>
336                </execution>
337             </executions>
338          </plugin>
339
340       </plugins>
341    </build>
342
343
344    <dependencyManagement>
345       <dependencies>
346          <dependency>
347             <groupId>org.apache.camel</groupId>
348             <artifactId>camel-spring-boot-dependencies</artifactId>
349             <version>${camel-spring-boot.version}</version>
350             <type>pom</type>
351             <scope>import</scope>
352          </dependency>
353          <dependency>
354             <groupId>org.apache.httpcomponents</groupId>
355             <artifactId>httpclient</artifactId>
356             <version>4.5</version>
357          </dependency>
358          <dependency>
359             <groupId>org.apache.httpcomponents</groupId>
360             <artifactId>httpcore</artifactId>
361             <version>4.4.1</version>
362          </dependency>
363          <dependency>
364             <groupId>org.json</groupId>
365             <artifactId>json</artifactId>
366             <version>20131018</version>
367          </dependency>
368       </dependencies>
369    </dependencyManagement>
370    <distributionManagement>
371       <repository>
372          <id>ecomp-releases</id>
373          <name>ECOMP Release Repository</name>
374          <url>${nexusproxy}/content/repositories/releases/</url>
375       </repository>
376       <snapshotRepository>
377          <id>ecomp-snapshots</id>
378          <name>ECOMP Snapshot Repository</name>
379          <url>${nexusproxy}/content/repositories/snapshots/</url>
380       </snapshotRepository>
381    </distributionManagement>
382 </project>