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