f3c8f48269af8cde977cf1507d10872578444569
[aai/rest-client.git] / pom.xml
1 <?xml version="1.0"?>
2 <!--
3     ============LICENSE_START=======================================================
4     org.onap.aai
5     ================================================================================
6     Copyright © 2017-2018 AT&T Intellectual Property. All rights reserved.
7     Copyright © 2017-2018 Amdocs
8     ================================================================================
9     Licensed under the Apache License, Version 2.0 (the "License");
10     you may not use this file except in compliance with the License.
11     You may obtain a copy of the License at
12
13     http://www.apache.org/licenses/LICENSE-2.0
14
15     Unless required by applicable law or agreed to in writing, software
16     distributed under the License is distributed on an "AS IS" BASIS,
17     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18     See the License for the specific language governing permissions and
19     limitations under the License.
20     ============LICENSE_END=========================================================
21 -->
22 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
23     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
24     <modelVersion>4.0.0</modelVersion>
25     <parent>
26         <groupId>org.onap.oparent</groupId>
27         <artifactId>oparent</artifactId>
28         <version>2.0.0</version>
29     </parent>
30
31     <groupId>org.onap.aai</groupId>
32     <artifactId>rest-client</artifactId>
33     <version>1.6.0-SNAPSHOT</version>
34     <name>aai-rest-client</name>
35
36     <properties>
37         <checkstyle.config.location>google_checks.xml</checkstyle.config.location>
38         <jacoco.report.directory>${project.build.directory}/code-coverage</jacoco.report.directory>
39         <jacoco.line.coverage.limit>0.80</jacoco.line.coverage.limit>
40     </properties>
41
42     <dependencies>
43
44         <dependency>
45             <groupId>org.glassfish.jersey.core</groupId>
46             <artifactId>jersey-client</artifactId>
47             <version>2.27</version>
48         </dependency>
49
50         <dependency>
51             <groupId>org.onap.aai.logging-service</groupId>
52             <artifactId>common-logging</artifactId>
53             <version>1.5.0</version>
54         </dependency>
55
56         <dependency>
57             <groupId>org.mockito</groupId>
58             <artifactId>mockito-all</artifactId>
59             <version>1.10.19</version>
60             <scope>test</scope>
61         </dependency>
62
63         <dependency>
64             <groupId>org.powermock</groupId>
65             <artifactId>powermock-module-junit4</artifactId>
66             <version>1.6.2</version>
67             <scope>test</scope>
68         </dependency>
69
70         <dependency>
71             <groupId>org.powermock</groupId>
72             <artifactId>powermock-api-mockito</artifactId>
73             <version>1.6.2</version>
74             <scope>test</scope>
75         </dependency>
76
77         <dependency>
78             <groupId>org.powermock</groupId>
79             <artifactId>powermock-module-javaagent</artifactId>
80             <version>1.6.2</version>
81             <scope>test</scope>
82         </dependency>
83
84         <dependency>
85             <groupId>org.powermock</groupId>
86             <artifactId>powermock-module-junit4-rule-agent</artifactId>
87             <version>1.6.2</version>
88             <scope>test</scope>
89         </dependency>
90
91     </dependencies>
92
93     <build>
94         <pluginManagement>
95             <plugins>
96                 <plugin>
97                     <groupId>org.apache.maven.plugins</groupId>
98                     <artifactId>maven-compiler-plugin</artifactId>
99                     <configuration>
100                         <source>1.8</source>
101                         <target>1.8</target>
102                     </configuration>
103                 </plugin>
104                 <plugin>
105                     <artifactId>maven-release-plugin</artifactId>
106                     <version>2.4.2</version>
107                     <dependencies>
108                         <dependency>
109                             <groupId>org.apache.maven.scm</groupId>
110                             <artifactId>maven-scm-provider-gitexe</artifactId>
111                             <version>1.8.1</version>
112                         </dependency>
113                     </dependencies>
114                 </plugin>
115
116                 <!-- Checkstyle plugin - used to report on compliance with -->
117                 <!-- the Google style guide. -->
118                 <plugin>
119                     <groupId>org.apache.maven.plugins</groupId>
120                     <artifactId>maven-site-plugin</artifactId>
121                     <version>3.6</version>
122                 </plugin>
123             </plugins>
124         </pluginManagement>
125         <plugins>
126             <plugin>
127                 <groupId>com.mycila</groupId>
128                 <artifactId>license-maven-plugin</artifactId>
129                 <version>3.0</version>
130                 <configuration>
131                     <header>License.txt</header>
132                     <includes>
133                         <include>src/main/java/**</include>
134                         <include>src/test/java/**</include>
135                         <include>pom.xml</include>
136                     </includes>
137                     <skipExistingHeaders>true</skipExistingHeaders>
138                 </configuration>
139                 <executions>
140                     <execution>
141                         <goals>
142                             <!-- Set goal from "check" to "format" to auto update license headers -->
143                             <goal>check</goal>
144                         </goals>
145                         <phase>validate</phase>
146                     </execution>
147                 </executions>
148             </plugin>
149             <plugin>
150                 <groupId>org.apache.maven.plugins</groupId>
151                 <artifactId>maven-deploy-plugin</artifactId>
152             </plugin>
153             <plugin>
154                 <groupId>org.jacoco</groupId>
155                 <artifactId>jacoco-maven-plugin</artifactId>
156                 <configuration>
157                     <excludes>
158                         <exclude>org/onap/aai/babel/xml/generator/xsd/*</exclude>
159                     </excludes>
160                 </configuration>
161                 <executions>
162                     <execution>
163                         <id>default-check</id>
164                         <goals>
165                             <goal>check</goal>
166                         </goals>
167                         <configuration>
168                             <dataFile>${jacoco.report.directory}/jacoco-ut.exec</dataFile>
169                             <rules>
170                                 <!--  implementation is needed only for Maven 2  -->
171                                 <rule implementation="org.jacoco.maven.RuleConfiguration">
172                                     <element>BUNDLE</element>
173                                     <limits>
174                                         <limit implementation="org.jacoco.report.check.Limit">
175                                             <counter>LINE</counter>
176                                             <value>COVEREDRATIO</value>
177                                             <minimum>${jacoco.line.coverage.limit}</minimum>
178                                         </limit>
179                                     </limits>
180                                 </rule>
181                             </rules>
182                         </configuration>
183                     </execution>
184                 </executions>
185             </plugin>
186         </plugins>
187     </build>
188
189     <reporting>
190         <plugins>
191             <plugin>
192                 <groupId>org.apache.maven.plugins</groupId>
193                 <artifactId>maven-checkstyle-plugin</artifactId>
194                 <version>2.17</version>
195                 <reportSets>
196                     <reportSet>
197                         <reports>
198                             <report>checkstyle</report>
199                         </reports>
200                     </reportSet>
201                 </reportSets>
202             </plugin>
203         </plugins>
204     </reporting>
205
206 </project>