Update common policy version
[multicloud/framework.git] / artifactbroker / pom.xml
1 <?xml version="1.0"?>
2 <!--
3  Copyright (c) 2017 Wind River Systems, Inc.
4  Copyright (c) 2017-2018 VMware, Inc.
5
6  Licensed under the Apache License, Version 2.0 (the "License");
7  you may not use this file except in compliance with the License.
8  You may obtain a copy of the License at:
9        http://www.apache.org/licenses/LICENSE-2.0
10
11  Unless required by applicable law or agreed to in writing, software
12  distributed under the License is distributed on an "AS IS" BASIS,
13  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 -->
15
16 <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">
17     <parent>
18         <groupId>org.onap.multicloud.framework</groupId>
19         <artifactId>multicloud-framework</artifactId>
20         <version>1.8.3-SNAPSHOT</version>
21     </parent>
22     <modelVersion>4.0.0</modelVersion>
23     <groupId>org.onap.multicloud.framework</groupId>
24     <artifactId>multicloud-framework-artifactbroker</artifactId>
25     <version>1.9.3-SNAPSHOT</version>
26     <packaging>pom</packaging>
27     <name>multicloud-framework-artifactbroker</name>
28     <description>artifact broker</description>
29     <properties>
30         <encoding>UTF-8</encoding>
31         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
32         <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
33         <nexusproxy>https://nexus.onap.org</nexusproxy>
34         <policy.common.version>1.5.0</policy.common.version>
35         <logback.version>1.5.18</logback.version>
36         <jackson.version>2.18.3</jackson.version>
37         <gson.version>2.8.9</gson.version>
38         <sonar.language>java</sonar.language>
39         <sonar.coverage.jacoco.xmlReportPaths>
40             ${project.reporting.outputDirectory}/jacoco-ut/jacoco.xml
41         </sonar.coverage.jacoco.xmlReportPaths>
42         <sdc-dist-client-version>2.0.0</sdc-dist-client-version>
43     </properties>
44     <modules>
45         <module>model</module>
46         <module>main</module>
47         <module>reception</module>
48         <module>forwarding</module>
49         <module>plugins</module>
50         <module>packages</module>
51     </modules>
52     <dependencyManagement>
53         <dependencies>
54         <dependency>
55             <groupId>org.onap.sdc.sdc-distribution-client</groupId>
56             <artifactId>sdc-distribution-client</artifactId>
57             <version>${sdc-dist-client-version}</version>
58             <exclusions>
59                 <exclusion>
60                     <groupId>org.slf4j</groupId>
61                     <artifactId>slf4j-log4j12</artifactId>
62                 </exclusion>
63             </exclusions>
64         </dependency>
65         <dependency>
66             <groupId>org.glassfish.jersey.media</groupId>
67             <artifactId>jersey-media-json-jackson</artifactId>
68             <version>2.25.1</version>
69         </dependency>
70         </dependencies>
71     </dependencyManagement>
72     <dependencies>
73         <dependency>
74             <groupId>junit</groupId>
75             <artifactId>junit</artifactId>
76             <version>4.12</version>
77             <scope>test</scope>
78         </dependency>
79         <dependency>
80             <groupId>org.apache.logging.log4j</groupId>
81             <artifactId>log4j-api</artifactId>
82             <version>2.16.0</version>
83         </dependency>
84         <dependency>
85             <groupId>ch.qos.logback</groupId>
86             <artifactId>logback-core</artifactId>
87             <version>${logback.version}</version>
88         </dependency>
89         <dependency>
90             <groupId>ch.qos.logback</groupId>
91             <artifactId>logback-classic</artifactId>
92             <version>${logback.version}</version>
93         </dependency>
94         <dependency>
95             <groupId>org.onap.policy.common</groupId>
96             <artifactId>common-parameters</artifactId>
97             <version>${policy.common.version}</version>
98         </dependency>
99         <dependency>
100             <groupId>org.onap.policy.common</groupId>
101             <artifactId>ONAP-Logging</artifactId>
102             <version>${policy.common.version}</version>
103             <exclusions>
104                 <exclusion>
105                     <groupId>org.mockito</groupId>
106                     <artifactId>mockito-core</artifactId>
107                 </exclusion>
108                 <exclusion>
109                     <groupId>org.powermock</groupId>
110                     <artifactId>powermock-module-junit4</artifactId>
111                 </exclusion>
112             </exclusions>
113         </dependency>
114         <dependency>
115             <groupId>org.onap.policy.common</groupId>
116             <artifactId>capabilities</artifactId>
117             <version>${policy.common.version}</version>
118         </dependency>
119         <dependency>
120             <groupId>com.fasterxml.jackson.core</groupId>
121             <artifactId>jackson-databind</artifactId>
122             <version>${jackson.version}</version>
123         </dependency>
124         <dependency>
125             <groupId>com.fasterxml.jackson.core</groupId>
126             <artifactId>jackson-core</artifactId>
127             <version>${jackson.version}</version>
128         </dependency>
129         <dependency>
130             <groupId>org.onap.policy.common</groupId>
131             <artifactId>policy-endpoints</artifactId>
132             <version>${policy.common.version}</version>
133             <exclusions>
134                 <exclusion>
135                     <groupId>com.fasterxml.jackson.core</groupId>
136                     <artifactId>jackson-databind</artifactId>
137                 </exclusion>
138                 <exclusion>
139                     <groupId>org.json</groupId>
140                     <artifactId>json</artifactId>
141                 </exclusion>
142           </exclusions>
143         </dependency>
144         <dependency>
145             <groupId>org.onap.policy.common</groupId>
146             <artifactId>utils</artifactId>
147             <version>${policy.common.version}</version>
148         </dependency>
149         <dependency>
150             <groupId>commons-cli</groupId>
151             <artifactId>commons-cli</artifactId>
152             <version>1.4</version>
153         </dependency>
154         <dependency>
155             <groupId>com.google.code.gson</groupId>
156             <artifactId>gson</artifactId>
157             <version>${gson.version}</version>
158         </dependency>
159     </dependencies>
160     <build>
161         <plugins>
162             <plugin>
163                 <groupId>org.apache.maven.plugins</groupId>
164                 <artifactId>maven-compiler-plugin</artifactId>
165                 <version>3.8.0</version>
166                 <configuration>
167                     <release>11</release>
168                 </configuration>
169             </plugin>
170             <plugin>
171                 <groupId>org.apache.maven.plugins</groupId>
172                 <artifactId>maven-enforcer-plugin</artifactId>
173                 <executions>
174                     <execution>
175                         <id>enforce-versions</id>
176                         <goals>
177                             <goal>enforce</goal>
178                         </goals>
179                         <configuration>
180                             <rules>
181                                 <requireMavenVersion>
182                                     <version>3.0.5</version>
183                                 </requireMavenVersion>
184                                 <requireJavaVersion>
185                                     <version>11</version>
186                                 </requireJavaVersion>
187                             </rules>
188                         </configuration>
189                     </execution>
190                 </executions>
191             </plugin>
192             <plugin>
193                 <groupId>org.jacoco</groupId>
194                 <artifactId>jacoco-maven-plugin</artifactId>
195                 <executions>
196                     <execution>
197                         <id>pre-unit-test</id>
198                         <goals>
199                             <goal>prepare-agent</goal>
200                         </goals>
201                         <configuration>
202                             <destFile>${sonar.coverage.jacoco.xmlReportPaths}</destFile>
203                             <append>true</append>
204                         </configuration>
205                     </execution>
206                     <execution>
207                         <id>post-unit-test</id>
208                         <phase>test</phase>
209                         <goals>
210                             <goal>report</goal>
211                         </goals>
212                         <configuration>
213                             <dataFile>${sonar.coverage.jacoco.xmlReportPaths}</dataFile>
214                         </configuration>
215                     </execution>
216                 </executions>
217             </plugin>
218             <plugin>
219                 <artifactId>maven-checkstyle-plugin</artifactId>
220                 <executions>
221                     <execution>
222                         <id>onap-java-style</id>
223                         <goals>
224                             <goal>check</goal>
225                         </goals>
226                         <phase>process-sources</phase>
227                         <configuration>
228                             <configLocation>onap-checkstyle/onap-java-style.xml</configLocation>
229                             <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
230                             <includeResources>true</includeResources>
231                             <includeTestSourceDirectory>true</includeTestSourceDirectory>
232                             <includeTestResources>true</includeTestResources>
233                             <excludes>
234                             </excludes>
235                             <consoleOutput>true</consoleOutput>
236                             <failOnViolation>true</failOnViolation>
237                             <violationSeverity>error</violationSeverity>
238                         </configuration>
239                     </execution>
240                 </executions>
241                 <dependencies>
242                     <dependency>
243                         <groupId>org.onap.oparent</groupId>
244                         <artifactId>checkstyle</artifactId>
245                         <version>1.2.0</version>
246                         <scope>compile</scope>
247                     </dependency>
248                 </dependencies>
249             </plugin>
250             <plugin>
251                 <groupId>org.codehaus.mojo</groupId>
252                 <artifactId>versions-maven-plugin</artifactId>
253                 <version>2.18.0</version>
254                 <configuration>
255                     <generateBackupPoms>false</generateBackupPoms>
256                 </configuration>
257             </plugin>
258         </plugins>
259         <pluginManagement>
260             <plugins>
261                 <plugin>
262                     <groupId>org.jacoco</groupId>
263                     <artifactId>jacoco-maven-plugin</artifactId>
264                     <version>${jacoco.version}</version>
265                     <configuration>
266                         <excludes>
267                             <exclude>**/gen/**</exclude>
268                             <exclude>**/generated-sources/**</exclude>
269                             <exclude>**/yang-gen/**</exclude>
270                             <exclude>**/pax/**</exclude>
271                         </excludes>
272                     </configuration>
273                     <executions>
274                         <execution>
275                             <id>pre-unit-test</id>
276                             <goals>
277                                 <goal>prepare-agent</goal>
278                             </goals>
279                             <configuration>
280                                 <destFile>${sonar.coverage.jacoco.xmlReportPaths}</destFile>
281                             </configuration>
282                         </execution>
283                         <execution>
284                             <id>post-unit-test</id>
285                             <phase>test</phase>
286                             <goals>
287                                 <goal>report</goal>
288                             </goals>
289                             <configuration>
290                                 <dataFile>${sonar.coverage.jacoco.xmlReportPaths}</dataFile>
291                             </configuration>
292                         </execution>
293                     </executions>
294                 </plugin>
295             </plugins>
296         </pluginManagement>
297     </build>
298 </project>