add packages support for artifact broker
[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     <groupId>org.onap.multicloud.framework.broker</groupId>
26     <artifactId>multicloud-framework-artifactbroker</artifactId>
27     <version>1.3.0-SNAPSHOT</version>
28     <packaging>pom</packaging>
29     <name>multicloud-framework-artifactbroker</name>
30     <description>artifact  broker</description>
31     <properties>
32         <encoding>UTF-8</encoding>
33         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
34         <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
35         <nexusproxy>https://nexus.onap.org</nexusproxy>
36         <version.logback>1.2.3</version.logback>
37         <policy.common.version>1.3.4</policy.common.version>
38         <policy.engine.version>1.3.5</policy.engine.version>
39     </properties>
40
41     <modules>
42         <module>main</module>
43         <module>packages</module>
44     </modules>
45     <dependencies>
46         <dependency>
47             <groupId>junit</groupId>
48             <artifactId>junit</artifactId>
49             <version>4.12</version>
50             <scope>test</scope>
51         </dependency>
52         <dependency>
53             <groupId>org.slf4j</groupId>
54             <artifactId>slf4j-ext</artifactId>
55             <version>1.8.0-beta2</version>
56         </dependency>
57         <dependency>
58             <groupId>org.slf4j</groupId>
59             <artifactId>slf4j-api</artifactId>
60             <version>1.7.25</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>org.onap.policy.common</groupId>
89             <artifactId>policy-endpoints</artifactId>
90             <version>${policy.common.version}</version>
91         </dependency>
92         <dependency>
93             <groupId>org.onap.policy.common</groupId>
94             <artifactId>utils</artifactId>
95             <version>${policy.common.version}</version>
96         </dependency>
97         <dependency>
98             <groupId>commons-cli</groupId>
99             <artifactId>commons-cli</artifactId>
100             <version>1.4</version>
101         </dependency>
102         <dependency>
103             <groupId>com.google.code.gson</groupId>
104             <artifactId>gson</artifactId>
105             <version>2.8.4</version>
106         </dependency>
107     </dependencies>
108
109     <build>
110         <plugins>
111             <plugin>
112                 <groupId>org.jacoco</groupId>
113                 <artifactId>jacoco-maven-plugin</artifactId>
114                 <executions>
115                     <execution>
116                         <id>pre-unit-test</id>
117                         <goals>
118                             <goal>prepare-agent</goal>
119                         </goals>
120                         <configuration>
121                             <destFile>${sonar.jacoco.reportPath}</destFile>
122                             <append>true</append>
123                         </configuration>
124                     </execution>
125                     <execution>
126                         <id>post-unit-test</id>
127                         <phase>test</phase>
128                         <goals>
129                             <goal>report</goal>
130                         </goals>
131                         <configuration>
132                             <dataFile>${sonar.jacoco.reportPath}</dataFile>
133                         </configuration>
134                     </execution>
135                 </executions>
136             </plugin>
137             <plugin>
138                 <artifactId>maven-checkstyle-plugin</artifactId>
139                 <executions>
140                     <execution>
141                         <id>onap-java-style</id>
142                         <goals>
143                             <goal>check</goal>
144                         </goals>
145                         <phase>process-sources</phase>
146                         <configuration>
147                             <!-- Use Google Java Style Guide:
148                             https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml
149                             with minor changes -->
150                             <configLocation>onap-checkstyle/onap-java-style.xml</configLocation>
151                             <!-- <sourceDirectory> is needed so that checkstyle ignores the generated sources directory -->
152                             <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
153                             <includeResources>true</includeResources>
154                             <includeTestSourceDirectory>true</includeTestSourceDirectory>
155                             <includeTestResources>true</includeTestResources>
156                             <excludes>
157                             </excludes>
158                             <consoleOutput>true</consoleOutput>
159                             <failOnViolation>true</failOnViolation>
160                             <violationSeverity>warning</violationSeverity>
161                         </configuration>
162                     </execution>
163                 </executions>
164                 <dependencies>
165                     <dependency>
166                         <groupId>org.onap.oparent</groupId>
167                         <artifactId>checkstyle</artifactId>
168                         <version>1.2.0</version>
169                         <scope>compile</scope>
170                     </dependency>
171                 </dependencies>
172             </plugin>
173         </plugins>
174         <pluginManagement>
175             <plugins>
176                 <plugin>
177                     <groupId>org.jacoco</groupId>
178                     <artifactId>jacoco-maven-plugin</artifactId>
179                     <version>${jacoco.version}</version>
180                     <configuration>
181                         <!-- Note: This exclusion list should match <sonar.exclusions> property
182                             above -->
183                         <excludes>
184                             <exclude>**/gen/**</exclude>
185                             <exclude>**/generated-sources/**</exclude>
186                             <exclude>**/yang-gen/**</exclude>
187                             <exclude>**/pax/**</exclude>
188                         </excludes>
189                     </configuration>
190                     <executions>
191                         <!-- Prepares the property pointing to the JaCoCo runtime agent which
192                             is passed as VM argument when Maven the Surefire plugin is executed. -->
193                         <execution>
194                             <id>pre-unit-test</id>
195                             <goals>
196                                 <goal>prepare-agent</goal>
197                             </goals>
198                             <configuration>
199                                 <destFile>${sonar.jacoco.reportPath}</destFile>
200                             </configuration>
201                         </execution>
202                         <!-- Ensures that the code coverage report for unit tests is created
203                             after unit tests have been run. -->
204                         <execution>
205                             <id>post-unit-test</id>
206                             <phase>test</phase>
207                             <goals>
208                                 <goal>report</goal>
209                             </goals>
210                             <configuration>
211                                 <dataFile>${sonar.jacoco.reportPath}</dataFile>
212                             </configuration>
213                         </execution>
214                     </executions>
215                 </plugin>
216             </plugins>
217         </pluginManagement>
218     </build>
219 </project>
220 </project>