Remove staging deploy plugin
[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.5.1-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         <jacoco.line.coverage.limit>0.84</jacoco.line.coverage.limit>
46     </properties>
47
48     <dependencies>
49
50         <dependency>
51             <groupId>org.glassfish.jersey.core</groupId>
52             <artifactId>jersey-client</artifactId>
53             <version>2.27</version>
54         </dependency>
55
56         <dependency>
57             <groupId>org.onap.aai.logging-service</groupId>
58             <artifactId>common-logging</artifactId>
59             <version>1.5.0</version>
60         </dependency>
61
62         <dependency>
63             <groupId>org.mockito</groupId>
64             <artifactId>mockito-all</artifactId>
65             <version>1.10.19</version>
66             <scope>test</scope>
67         </dependency>
68
69         <dependency>
70             <groupId>org.powermock</groupId>
71             <artifactId>powermock-module-junit4</artifactId>
72             <version>1.6.2</version>
73             <scope>test</scope>
74         </dependency>
75
76         <dependency>
77             <groupId>org.powermock</groupId>
78             <artifactId>powermock-api-mockito</artifactId>
79             <version>1.6.2</version>
80             <scope>test</scope>
81         </dependency>
82
83         <dependency>
84             <groupId>org.powermock</groupId>
85             <artifactId>powermock-module-javaagent</artifactId>
86             <version>1.6.2</version>
87             <scope>test</scope>
88         </dependency>
89
90         <dependency>
91             <groupId>org.powermock</groupId>
92             <artifactId>powermock-module-junit4-rule-agent</artifactId>
93             <version>1.6.2</version>
94             <scope>test</scope>
95         </dependency>
96
97     </dependencies>
98
99     <build>
100         <pluginManagement>
101             <plugins>
102                 <plugin>
103                     <groupId>org.apache.maven.plugins</groupId>
104                     <artifactId>maven-compiler-plugin</artifactId>
105                     <configuration>
106                         <source>1.8</source>
107                         <target>1.8</target>
108                     </configuration>
109                 </plugin>
110                 <plugin>
111                     <artifactId>maven-release-plugin</artifactId>
112                     <version>2.4.2</version>
113                     <dependencies>
114                         <dependency>
115                             <groupId>org.apache.maven.scm</groupId>
116                             <artifactId>maven-scm-provider-gitexe</artifactId>
117                             <version>1.8.1</version>
118                         </dependency>
119                     </dependencies>
120                 </plugin>
121
122                 <!-- Checkstyle plugin - used to report on compliance with -->
123                 <!-- the Google style guide. -->
124                 <plugin>
125                     <groupId>org.apache.maven.plugins</groupId>
126                     <artifactId>maven-site-plugin</artifactId>
127                     <version>3.6</version>
128                 </plugin>
129             </plugins>
130         </pluginManagement>
131         <plugins>
132             <plugin>
133                 <groupId>com.mycila</groupId>
134                 <artifactId>license-maven-plugin</artifactId>
135                 <version>3.0</version>
136                 <configuration>
137                     <header>License.txt</header>
138                     <includes>
139                         <include>src/main/java/**</include>
140                         <include>src/test/java/**</include>
141                         <include>pom.xml</include>
142                     </includes>
143                     <skipExistingHeaders>true</skipExistingHeaders>
144                 </configuration>
145                 <executions>
146                     <execution>
147                         <goals>
148                             <!-- Set goal from "check" to "format" to auto update license headers -->
149                             <goal>check</goal>
150                         </goals>
151                         <phase>validate</phase>
152                     </execution>
153                 </executions>
154             </plugin>
155             <plugin>
156               <groupId>org.apache.maven.plugins</groupId>
157               <artifactId>maven-deploy-plugin</artifactId>
158             </plugin>
159             <plugin>
160                 <groupId>org.codehaus.mojo</groupId>
161                 <artifactId>sonar-maven-plugin</artifactId>
162                 <version>3.2</version>
163             </plugin>
164             <plugin>
165                 <groupId>org.jacoco</groupId>
166                 <artifactId>jacoco-maven-plugin</artifactId>
167                 <version>0.7.7.201606060606</version>
168                 <configuration>
169                      <dumpOnExit>true</dumpOnExit>
170                 </configuration>
171                 <executions>
172                     <execution>
173                         <id>jacoco-initialize-unit-tests</id>
174                         <goals>
175                             <goal>prepare-agent</goal>
176                         </goals>
177                         <configuration>
178                             <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
179                             <!-- <append>true</append> -->
180                         </configuration>
181                     </execution>
182                     <execution>
183                         <id>default-check</id>
184                         <goals>
185                             <goal>check</goal>
186                         </goals>
187                         <configuration>
188                             <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
189                             <rules>
190                                 <!--  implementation is needed only for Maven 2  -->
191                                 <rule implementation="org.jacoco.maven.RuleConfiguration">
192                                     <element>BUNDLE</element>
193                                     <limits>
194                                         <limit implementation="org.jacoco.report.check.Limit">
195                                             <counter>LINE</counter>
196                                             <value>COVEREDRATIO</value>
197                                             <minimum>${jacoco.line.coverage.limit}</minimum>
198                                         </limit>
199                                     </limits>
200                                 </rule>
201                             </rules>
202                         </configuration>
203                     </execution>
204                 </executions>
205             </plugin>
206
207         </plugins>
208     </build>
209
210     <reporting>
211         <plugins>
212             <plugin>
213                 <groupId>org.apache.maven.plugins</groupId>
214                 <artifactId>maven-checkstyle-plugin</artifactId>
215                 <version>2.17</version>
216                 <reportSets>
217                     <reportSet>
218                         <reports>
219                             <report>checkstyle</report>
220                         </reports>
221                     </reportSet>
222                 </reportSets>
223             </plugin>
224         </plugins>
225     </reporting>
226
227 </project>