3360a4dc03d517b5eeb23c74f59242ba0f2246e3
[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.5.2-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.5.2-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         <version.logback>1.2.3</version.logback>
35         <policy.common.version>1.3.4</policy.common.version>
36         <policy.engine.version>1.3.5</policy.engine.version>
37         <sonar.language>java</sonar.language>
38         <sonar.coverage.jacoco.xmlReportPaths>
39             ${project.reporting.outputDirectory}/jacoco-ut/jacoco.xml
40         </sonar.coverage.jacoco.xmlReportPaths>
41     </properties>
42     <modules>
43         <module>model</module>
44         <module>main</module>
45         <module>reception</module>
46         <module>forwarding</module>
47         <module>plugins</module>
48         <module>packages</module>
49     </modules>
50     <dependencies>
51         <dependency>
52             <groupId>junit</groupId>
53             <artifactId>junit</artifactId>
54             <version>4.12</version>
55             <scope>test</scope>
56         </dependency>
57         <dependency>
58             <groupId>org.apache.logging.log4j</groupId>
59             <artifactId>log4j-api</artifactId>
60             <version>2.13.3</version>
61         </dependency>
62         <dependency>
63             <groupId>ch.qos.logback</groupId>
64             <artifactId>logback-core</artifactId>
65             <version>${version.logback}</version>
66         </dependency>
67         <dependency>
68             <groupId>ch.qos.logback</groupId>
69             <artifactId>logback-classic</artifactId>
70             <version>${version.logback}</version>
71         </dependency>
72         <dependency>
73             <groupId>org.onap.policy.common</groupId>
74             <artifactId>common-parameters</artifactId>
75             <version>${policy.common.version}</version>
76         </dependency>
77         <dependency>
78             <groupId>org.onap.policy.common</groupId>
79             <artifactId>ONAP-Logging</artifactId>
80             <version>${policy.common.version}</version>
81         </dependency>
82         <dependency>
83             <groupId>org.onap.policy.common</groupId>
84             <artifactId>capabilities</artifactId>
85             <version>${policy.common.version}</version>
86         </dependency>
87         <dependency>
88             <groupId>com.fasterxml.jackson.core</groupId>
89             <artifactId>jackson-databind</artifactId>
90             <version>2.9.8</version>
91         </dependency>
92         <dependency>
93             <groupId>org.json</groupId>
94             <artifactId>json</artifactId>
95             <version>20160810</version>
96         </dependency>
97         <dependency>
98             <groupId>org.onap.policy.common</groupId>
99             <artifactId>policy-endpoints</artifactId>
100             <version>${policy.common.version}</version>
101             <exclusions>
102                 <exclusion>
103                     <groupId>com.fasterxml.jackson.core</groupId>
104                     <artifactId>jackson-databind</artifactId>
105                 </exclusion>
106                 <exclusion>
107                     <groupId>org.json</groupId>
108                     <artifactId>json</artifactId>
109                 </exclusion>
110           </exclusions>
111         </dependency>
112         <dependency>
113             <groupId>org.onap.policy.common</groupId>
114             <artifactId>utils</artifactId>
115             <version>${policy.common.version}</version>
116         </dependency>
117         <dependency>
118             <groupId>commons-cli</groupId>
119             <artifactId>commons-cli</artifactId>
120             <version>1.4</version>
121         </dependency>
122         <dependency>
123             <groupId>com.google.code.gson</groupId>
124             <artifactId>gson</artifactId>
125             <version>2.8.4</version>
126         </dependency>
127     </dependencies>
128     <build>
129         <plugins>
130             <plugin>
131                 <groupId>org.apache.maven.plugins</groupId>
132                 <artifactId>maven-compiler-plugin</artifactId>
133                 <version>3.8.0</version>
134                 <configuration>
135                     <release>11</release>
136                 </configuration>
137             </plugin>
138             <plugin>
139                 <groupId>org.apache.maven.plugins</groupId>
140                 <artifactId>maven-enforcer-plugin</artifactId>
141                 <executions>
142                     <execution>
143                         <id>enforce-versions</id>
144                         <goals>
145                             <goal>enforce</goal>
146                         </goals>
147                         <configuration>
148                             <rules>
149                                 <requireMavenVersion>
150                                     <version>3.0.5</version>
151                                 </requireMavenVersion>
152                                 <requireJavaVersion>
153                                     <version>11</version>
154                                 </requireJavaVersion>
155                             </rules>
156                         </configuration>
157                     </execution>
158                 </executions>
159             </plugin>
160             <plugin>
161                 <groupId>org.jacoco</groupId>
162                 <artifactId>jacoco-maven-plugin</artifactId>
163                 <executions>
164                     <execution>
165                         <id>pre-unit-test</id>
166                         <goals>
167                             <goal>prepare-agent</goal>
168                         </goals>
169                         <configuration>
170                             <destFile>${sonar.coverage.jacoco.xmlReportPaths}</destFile>
171                             <append>true</append>
172                         </configuration>
173                     </execution>
174                     <execution>
175                         <id>post-unit-test</id>
176                         <phase>test</phase>
177                         <goals>
178                             <goal>report</goal>
179                         </goals>
180                         <configuration>
181                             <dataFile>${sonar.coverage.jacoco.xmlReportPaths}</dataFile>
182                         </configuration>
183                     </execution>
184                 </executions>
185             </plugin>
186             <plugin>
187                 <artifactId>maven-checkstyle-plugin</artifactId>
188                 <executions>
189                     <execution>
190                         <id>onap-java-style</id>
191                         <goals>
192                             <goal>check</goal>
193                         </goals>
194                         <phase>process-sources</phase>
195                         <configuration>
196                             <configLocation>onap-checkstyle/onap-java-style.xml</configLocation>
197                             <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
198                             <includeResources>true</includeResources>
199                             <includeTestSourceDirectory>true</includeTestSourceDirectory>
200                             <includeTestResources>true</includeTestResources>
201                             <excludes>
202                             </excludes>
203                             <consoleOutput>true</consoleOutput>
204                             <failOnViolation>true</failOnViolation>
205                             <violationSeverity>error</violationSeverity>
206                         </configuration>
207                     </execution>
208                 </executions>
209                 <dependencies>
210                     <dependency>
211                         <groupId>org.onap.oparent</groupId>
212                         <artifactId>checkstyle</artifactId>
213                         <version>1.2.0</version>
214                         <scope>compile</scope>
215                     </dependency>
216                 </dependencies>
217             </plugin>
218             <plugin>
219                 <groupId>org.codehaus.mojo</groupId>
220                 <artifactId>versions-maven-plugin</artifactId>
221                 <configuration>
222                     <generateBackupPoms>false</generateBackupPoms>
223                 </configuration>
224             </plugin>
225         </plugins>
226         <pluginManagement>
227             <plugins>
228                 <plugin>
229                     <groupId>org.jacoco</groupId>
230                     <artifactId>jacoco-maven-plugin</artifactId>
231                     <version>${jacoco.version}</version>
232                     <configuration>
233                         <excludes>
234                             <exclude>**/gen/**</exclude>
235                             <exclude>**/generated-sources/**</exclude>
236                             <exclude>**/yang-gen/**</exclude>
237                             <exclude>**/pax/**</exclude>
238                         </excludes>
239                     </configuration>
240                     <executions>
241                         <execution>
242                             <id>pre-unit-test</id>
243                             <goals>
244                                 <goal>prepare-agent</goal>
245                             </goals>
246                             <configuration>
247                                 <destFile>${sonar.coverage.jacoco.xmlReportPaths}</destFile>
248                             </configuration>
249                         </execution>
250                         <execution>
251                             <id>post-unit-test</id>
252                             <phase>test</phase>
253                             <goals>
254                                 <goal>report</goal>
255                             </goals>
256                             <configuration>
257                                 <dataFile>${sonar.coverage.jacoco.xmlReportPaths}</dataFile>
258                             </configuration>
259                         </execution>
260                     </executions>
261                 </plugin>
262             </plugins>
263         </pluginManagement>
264     </build>
265 </project>