251e63c826446b0176519f53490544d15b797e24
[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>1.2.1</version>
29     </parent>
30
31     <groupId>org.onap.aai</groupId>
32     <artifactId>rest-client</artifactId>
33     <version>1.4.0-SNAPSHOT</version>
34     <name>aai-rest-client</name>
35
36     <properties>
37         <checkstyle.config.location>google_checks.xml</checkstyle.config.location>
38         <!-- Sonar Properties -->
39         <sonar.language>java</sonar.language>
40         <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
41         <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
42         <sonar.jacoco.reportPath>${project.build.directory}/code-coverage/jacoco-ut.exec</sonar.jacoco.reportPath>
43         <sonar.jacoco.reportMissing.force.zero>false</sonar.jacoco.reportMissing.force.zero>
44         <sonar.projectVersion>${project.version}</sonar.projectVersion>
45     </properties>
46
47     <dependencies>
48
49         <dependency>
50             <groupId>org.glassfish.jersey.core</groupId>
51             <artifactId>jersey-client</artifactId>
52             <version>2.27</version>
53         </dependency>
54
55         <dependency>
56             <groupId>org.onap.aai.logging-service</groupId>
57             <artifactId>common-logging</artifactId>
58             <version>1.2.2</version>
59         </dependency>
60
61         <dependency>
62             <groupId>org.mockito</groupId>
63             <artifactId>mockito-all</artifactId>
64             <version>1.10.19</version>
65             <scope>test</scope>
66         </dependency>
67
68         <dependency>
69             <groupId>org.powermock</groupId>
70             <artifactId>powermock-module-junit4</artifactId>
71             <version>1.6.2</version>
72             <scope>test</scope>
73         </dependency>
74
75         <dependency>
76             <groupId>org.powermock</groupId>
77             <artifactId>powermock-api-mockito</artifactId>
78             <version>1.6.2</version>
79             <scope>test</scope>
80         </dependency>
81
82         <dependency>
83             <groupId>org.powermock</groupId>
84             <artifactId>powermock-module-javaagent</artifactId>
85             <version>1.6.2</version>
86             <scope>test</scope>
87         </dependency>
88
89         <dependency>
90             <groupId>org.powermock</groupId>
91             <artifactId>powermock-module-junit4-rule-agent</artifactId>
92             <version>1.6.2</version>
93             <scope>test</scope>
94         </dependency>
95
96     </dependencies>
97
98     <build>
99         <pluginManagement>
100             <plugins>
101                 <plugin>
102                     <groupId>org.apache.maven.plugins</groupId>
103                     <artifactId>maven-compiler-plugin</artifactId>
104                     <configuration>
105                         <source>1.8</source>
106                         <target>1.8</target>
107                     </configuration>
108                 </plugin>
109                 <plugin>
110                     <artifactId>maven-release-plugin</artifactId>
111                     <version>2.4.2</version>
112                     <dependencies>
113                         <dependency>
114                             <groupId>org.apache.maven.scm</groupId>
115                             <artifactId>maven-scm-provider-gitexe</artifactId>
116                             <version>1.8.1</version>
117                         </dependency>
118                     </dependencies>
119                 </plugin>
120
121                 <!-- Checkstyle plugin - used to report on compliance with -->
122                 <!-- the Google style guide. -->
123                 <plugin>
124                     <groupId>org.apache.maven.plugins</groupId>
125                     <artifactId>maven-site-plugin</artifactId>
126                     <version>3.6</version>
127                 </plugin>
128             </plugins>
129         </pluginManagement>
130         <plugins>
131             <plugin>
132                 <groupId>com.mycila</groupId>
133                 <artifactId>license-maven-plugin</artifactId>
134                 <version>3.0</version>
135                 <configuration>
136                     <header>License.txt</header>
137                     <includes>
138                         <include>src/main/java/**</include>
139                         <include>src/test/java/**</include>
140                         <include>pom.xml</include>
141                     </includes>
142                     <skipExistingHeaders>true</skipExistingHeaders>
143                 </configuration>
144                 <executions>
145                     <execution>
146                         <goals>
147                             <!-- Set goal from "check" to "format" to auto update license headers -->
148                             <goal>check</goal>
149                         </goals>
150                         <phase>validate</phase>
151                     </execution>
152                 </executions>
153             </plugin>
154             <plugin>
155                 <groupId>org.sonatype.plugins</groupId>
156                 <artifactId>nexus-staging-maven-plugin</artifactId>
157                 <version>1.6.7</version>
158                 <extensions>true</extensions>
159                 <configuration>
160                     <nexusUrl>${onap.nexus.url}</nexusUrl>
161                     <stagingProfileId>176c31dfe190a</stagingProfileId>
162                     <serverId>ecomp-staging</serverId>
163                 </configuration>
164             </plugin>
165
166             <plugin>
167                 <groupId>org.codehaus.mojo</groupId>
168                 <artifactId>sonar-maven-plugin</artifactId>
169                 <version>3.2</version>
170             </plugin>
171             <plugin>
172                 <groupId>org.jacoco</groupId>
173                 <artifactId>jacoco-maven-plugin</artifactId>
174                 <version>0.7.7.201606060606</version>
175                 <configuration>
176                     <dumpOnExit>true</dumpOnExit>
177                 </configuration>
178                 <executions>
179                     <execution>
180                         <id>jacoco-initialize-unit-tests</id>
181                         <goals>
182                             <goal>prepare-agent</goal>
183                         </goals>
184                         <configuration>
185                             <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
186                             <!-- <append>true</append> -->
187                         </configuration>
188                     </execution>
189                 </executions>
190             </plugin>
191
192         </plugins>
193     </build>
194
195     <reporting>
196         <plugins>
197             <plugin>
198                 <groupId>org.apache.maven.plugins</groupId>
199                 <artifactId>maven-checkstyle-plugin</artifactId>
200                 <version>2.17</version>
201                 <reportSets>
202                     <reportSet>
203                         <reports>
204                             <report>checkstyle</report>
205                         </reports>
206                     </reportSet>
207                 </reportSets>
208             </plugin>
209         </plugins>
210     </reporting>
211
212 </project>