fix the clm issue
[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 <project 
16     xmlns="http://maven.apache.org/POM/4.0.0" 
17     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">
18     <parent>
19         <groupId>org.onap.multicloud.framework</groupId>
20         <artifactId>multicloud-framework</artifactId>
21         <version>1.3.0-SNAPSHOT</version>
22         <relativePath />
23     </parent>
24     <modelVersion>4.0.0</modelVersion>
25     <artifactId>multicloud-framework-artifactbroker</artifactId>
26     <version>1.3.0-SNAPSHOT</version>
27     <packaging>pom</packaging>
28     <name>multicloud-framework-artifactbroker</name>
29     <description>artifact  broker</description>
30     <properties>
31         <encoding>UTF-8</encoding>
32         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
33         <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
34         <nexusproxy>https://nexus.onap.org</nexusproxy>
35         <version.logback>1.2.3</version.logback>
36         <policy.common.version>1.3.4</policy.common.version>
37     </properties>
38
39     <modules>
40         <module>model</module>
41         <module>main</module>
42         <module>reception</module>
43         <module>forwarding</module>
44         <module>plugins</module>
45         <module>packages</module>
46     </modules>
47     <dependencies>
48         <dependency>
49             <groupId>junit</groupId>
50             <artifactId>junit</artifactId>
51             <version>4.12</version>
52             <scope>test</scope>
53         </dependency>
54         <dependency>
55             <groupId>org.slf4j</groupId>
56             <artifactId>slf4j-ext</artifactId>
57             <version>1.8.0-beta2</version>
58         </dependency>
59         <dependency>
60             <groupId>org.slf4j</groupId>
61             <artifactId>slf4j-api</artifactId>
62             <version>1.7.25</version>
63         </dependency>
64         <dependency>
65             <groupId>ch.qos.logback</groupId>
66             <artifactId>logback-core</artifactId>
67             <version>${version.logback}</version>
68         </dependency>
69         <dependency>
70             <groupId>ch.qos.logback</groupId>
71             <artifactId>logback-classic</artifactId>
72             <version>${version.logback}</version>
73         </dependency>
74         <dependency>
75             <groupId>org.onap.policy.common</groupId>
76             <artifactId>common-parameters</artifactId>
77             <version>${policy.common.version}</version>
78         </dependency>
79         <dependency>
80             <groupId>org.onap.policy.common</groupId>
81             <artifactId>ONAP-Logging</artifactId>
82             <version>${policy.common.version}</version>
83         </dependency>
84         <dependency>
85             <groupId>org.onap.policy.common</groupId>
86             <artifactId>capabilities</artifactId>
87             <version>${policy.common.version}</version>
88         </dependency>
89         <!-- https://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-databind -->
90         <dependency>
91             <groupId>com.fasterxml.jackson.core</groupId>
92             <artifactId>jackson-databind</artifactId>
93             <version>2.9.8</version>
94         </dependency>
95         <!-- https://mvnrepository.com/artifact/org.json/json -->
96         <dependency>
97             <groupId>org.json</groupId>
98             <artifactId>json</artifactId>
99             <version>20160810</version>
100         </dependency>
101         <dependency>
102             <groupId>org.onap.policy.common</groupId>
103             <artifactId>policy-endpoints</artifactId>
104             <version>${policy.common.version}</version>
105             <exclusions>
106                 <exclusion>
107                     <groupId>com.fasterxml.jackson.core</groupId>
108                     <artifactId>jackson-databind</artifactId>
109                 </exclusion>
110                 <exclusion>
111                     <groupId>org.json</groupId>
112                     <artifactId>json</artifactId>
113                 </exclusion>
114           </exclusions>
115         </dependency>
116         <dependency>
117             <groupId>org.onap.policy.common</groupId>
118             <artifactId>utils</artifactId>
119             <version>${policy.common.version}</version>
120         </dependency>
121         <dependency>
122             <groupId>commons-cli</groupId>
123             <artifactId>commons-cli</artifactId>
124             <version>1.4</version>
125         </dependency>
126         <dependency>
127             <groupId>com.google.code.gson</groupId>
128             <artifactId>gson</artifactId>
129             <version>2.8.4</version>
130         </dependency>
131     </dependencies>
132
133     <build>
134         <plugins>
135             <plugin>
136                 <groupId>org.jacoco</groupId>
137                 <artifactId>jacoco-maven-plugin</artifactId>
138                 <executions>
139                     <execution>
140                         <id>pre-unit-test</id>
141                         <goals>
142                             <goal>prepare-agent</goal>
143                         </goals>
144                         <configuration>
145                             <destFile>${sonar.jacoco.reportPath}</destFile>
146                             <append>true</append>
147                         </configuration>
148                     </execution>
149                     <execution>
150                         <id>post-unit-test</id>
151                         <phase>test</phase>
152                         <goals>
153                             <goal>report</goal>
154                         </goals>
155                         <configuration>
156                             <dataFile>${sonar.jacoco.reportPath}</dataFile>
157                         </configuration>
158                     </execution>
159                 </executions>
160             </plugin>
161             <plugin>
162                 <artifactId>maven-checkstyle-plugin</artifactId>
163                 <executions>
164                     <execution>
165                         <id>onap-java-style</id>
166                         <goals>
167                             <goal>check</goal>
168                         </goals>
169                         <phase>process-sources</phase>
170                         <configuration>
171                             <!-- Use Google Java Style Guide:
172                             https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml
173                             with minor changes -->
174                             <configLocation>onap-checkstyle/onap-java-style.xml</configLocation>
175                             <!-- <sourceDirectory> is needed so that checkstyle ignores the generated sources directory -->
176                             <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
177                             <includeResources>true</includeResources>
178                             <includeTestSourceDirectory>true</includeTestSourceDirectory>
179                             <includeTestResources>true</includeTestResources>
180                             <excludes>
181                             </excludes>
182                             <consoleOutput>true</consoleOutput>
183                             <failOnViolation>true</failOnViolation>
184                             <violationSeverity>warning</violationSeverity>
185                         </configuration>
186                     </execution>
187                 </executions>
188                 <dependencies>
189                     <dependency>
190                         <groupId>org.onap.oparent</groupId>
191                         <artifactId>checkstyle</artifactId>
192                         <version>1.2.0</version>
193                         <scope>compile</scope>
194                     </dependency>
195                 </dependencies>
196             </plugin>
197         </plugins>
198         <pluginManagement>
199             <plugins>
200                 <plugin>
201                     <groupId>org.jacoco</groupId>
202                     <artifactId>jacoco-maven-plugin</artifactId>
203                     <version>${jacoco.version}</version>
204                     <configuration>
205                         <!-- Note: This exclusion list should match <sonar.exclusions> property
206                             above -->
207                         <excludes>
208                             <exclude>**/gen/**</exclude>
209                             <exclude>**/generated-sources/**</exclude>
210                             <exclude>**/yang-gen/**</exclude>
211                             <exclude>**/pax/**</exclude>
212                         </excludes>
213                     </configuration>
214                     <executions>
215                         <!-- Prepares the property pointing to the JaCoCo runtime agent which
216                             is passed as VM argument when Maven the Surefire plugin is executed. -->
217                         <execution>
218                             <id>pre-unit-test</id>
219                             <goals>
220                                 <goal>prepare-agent</goal>
221                             </goals>
222                             <configuration>
223                                 <destFile>${sonar.jacoco.reportPath}</destFile>
224                             </configuration>
225                         </execution>
226                         <!-- Ensures that the code coverage report for unit tests is created
227                             after unit tests have been run. -->
228                         <execution>
229                             <id>post-unit-test</id>
230                             <phase>test</phase>
231                             <goals>
232                                 <goal>report</goal>
233                             </goals>
234                             <configuration>
235                                 <dataFile>${sonar.jacoco.reportPath}</dataFile>
236                             </configuration>
237                         </execution>
238                     </executions>
239                 </plugin>
240             </plugins>
241         </pluginManagement>
242     </build>
243 </project>
244 </project>