add rest serve and distribution framework
[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     </modules>
44     <dependencies>
45         <dependency>
46             <groupId>junit</groupId>
47             <artifactId>junit</artifactId>
48             <version>4.12</version>
49             <scope>test</scope>
50         </dependency>
51         <dependency>
52             <groupId>org.slf4j</groupId>
53             <artifactId>slf4j-ext</artifactId>
54             <version>1.8.0-beta2</version>
55         </dependency>
56         <dependency>
57             <groupId>org.slf4j</groupId>
58             <artifactId>slf4j-api</artifactId>
59             <version>1.7.25</version>
60         </dependency>
61         <dependency>
62             <groupId>ch.qos.logback</groupId>
63             <artifactId>logback-core</artifactId>
64             <version>${version.logback}</version>
65         </dependency>
66         <dependency>
67             <groupId>ch.qos.logback</groupId>
68             <artifactId>logback-classic</artifactId>
69             <version>${version.logback}</version>
70         </dependency>
71         <dependency>
72             <groupId>org.onap.policy.common</groupId>
73             <artifactId>common-parameters</artifactId>
74             <version>${policy.common.version}</version>
75         </dependency>
76         <dependency>
77             <groupId>org.onap.policy.common</groupId>
78             <artifactId>ONAP-Logging</artifactId>
79             <version>${policy.common.version}</version>
80         </dependency>
81         <dependency>
82             <groupId>org.onap.policy.common</groupId>
83             <artifactId>capabilities</artifactId>
84             <version>${policy.common.version}</version>
85         </dependency>
86         <dependency>
87             <groupId>org.onap.policy.common</groupId>
88             <artifactId>policy-endpoints</artifactId>
89             <version>${policy.common.version}</version>
90         </dependency>
91         <dependency>
92             <groupId>org.onap.policy.common</groupId>
93             <artifactId>utils</artifactId>
94             <version>${policy.common.version}</version>
95         </dependency>
96         <dependency>
97             <groupId>commons-cli</groupId>
98             <artifactId>commons-cli</artifactId>
99             <version>1.4</version>
100         </dependency>
101         <dependency>
102             <groupId>com.google.code.gson</groupId>
103             <artifactId>gson</artifactId>
104             <version>2.8.4</version>
105         </dependency>
106     </dependencies>
107
108     <build>
109         <plugins>
110             <plugin>
111                 <groupId>org.jacoco</groupId>
112                 <artifactId>jacoco-maven-plugin</artifactId>
113                 <executions>
114                     <execution>
115                         <id>pre-unit-test</id>
116                         <goals>
117                             <goal>prepare-agent</goal>
118                         </goals>
119                         <configuration>
120                             <destFile>${sonar.jacoco.reportPath}</destFile>
121                             <append>true</append>
122                         </configuration>
123                     </execution>
124                     <execution>
125                         <id>post-unit-test</id>
126                         <phase>test</phase>
127                         <goals>
128                             <goal>report</goal>
129                         </goals>
130                         <configuration>
131                             <dataFile>${sonar.jacoco.reportPath}</dataFile>
132                         </configuration>
133                     </execution>
134                 </executions>
135             </plugin>
136             <plugin>
137                 <artifactId>maven-checkstyle-plugin</artifactId>
138                 <executions>
139                     <execution>
140                         <id>onap-java-style</id>
141                         <goals>
142                             <goal>check</goal>
143                         </goals>
144                         <phase>process-sources</phase>
145                         <configuration>
146                             <!-- Use Google Java Style Guide:
147                             https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml
148                             with minor changes -->
149                             <configLocation>onap-checkstyle/onap-java-style.xml</configLocation>
150                             <!-- <sourceDirectory> is needed so that checkstyle ignores the generated sources directory -->
151                             <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
152                             <includeResources>true</includeResources>
153                             <includeTestSourceDirectory>true</includeTestSourceDirectory>
154                             <includeTestResources>true</includeTestResources>
155                             <excludes>
156                             </excludes>
157                             <consoleOutput>true</consoleOutput>
158                             <failOnViolation>true</failOnViolation>
159                             <violationSeverity>warning</violationSeverity>
160                         </configuration>
161                     </execution>
162                 </executions>
163                 <dependencies>
164                     <dependency>
165                         <groupId>org.onap.oparent</groupId>
166                         <artifactId>checkstyle</artifactId>
167                         <version>1.2.0</version>
168                         <scope>compile</scope>
169                     </dependency>
170                 </dependencies>
171             </plugin>
172         </plugins>
173         <pluginManagement>
174             <plugins>
175                 <plugin>
176                     <groupId>org.jacoco</groupId>
177                     <artifactId>jacoco-maven-plugin</artifactId>
178                     <version>${jacoco.version}</version>
179                     <configuration>
180                         <!-- Note: This exclusion list should match <sonar.exclusions> property
181                             above -->
182                         <excludes>
183                             <exclude>**/gen/**</exclude>
184                             <exclude>**/generated-sources/**</exclude>
185                             <exclude>**/yang-gen/**</exclude>
186                             <exclude>**/pax/**</exclude>
187                         </excludes>
188                     </configuration>
189                     <executions>
190                         <!-- Prepares the property pointing to the JaCoCo runtime agent which
191                             is passed as VM argument when Maven the Surefire plugin is executed. -->
192                         <execution>
193                             <id>pre-unit-test</id>
194                             <goals>
195                                 <goal>prepare-agent</goal>
196                             </goals>
197                             <configuration>
198                                 <destFile>${sonar.jacoco.reportPath}</destFile>
199                             </configuration>
200                         </execution>
201                         <!-- Ensures that the code coverage report for unit tests is created
202                             after unit tests have been run. -->
203                         <execution>
204                             <id>post-unit-test</id>
205                             <phase>test</phase>
206                             <goals>
207                                 <goal>report</goal>
208                             </goals>
209                             <configuration>
210                                 <dataFile>${sonar.jacoco.reportPath}</dataFile>
211                             </configuration>
212                         </execution>
213                     </executions>
214                 </plugin>
215             </plugins>
216         </pluginManagement>
217     </build>
218 </project>
219 </project>