Fix bugs in Rest Client
[aai/rest-client.git] / pom.xml
1 <!--
2 ============LICENSE_START=======================================================
3 org.onap.aai
4 ================================================================================
5 Copyright © 2017-2018 AT&T Intellectual Property. All rights reserved.
6 Copyright © 2017-2018 Amdocs
7 ================================================================================
8 Licensed under the Apache License, Version 2.0 (the "License");
9 you may not use this file except in compliance with the License.
10 You may obtain a copy of the License at
11
12       http://www.apache.org/licenses/LICENSE-2.0
13
14 Unless required by applicable law or agreed to in writing, software
15 distributed under the License is distributed on an "AS IS" BASIS,
16 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 See the License for the specific language governing permissions and
18 limitations under the License.
19 ============LICENSE_END=========================================================
20 -->
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.1.0</version>
29         </parent>
30
31         <groupId>org.onap.aai</groupId>
32         <artifactId>rest-client</artifactId>
33         <version>1.3.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                 <dependency>
49                         <groupId>com.sun.jersey</groupId>
50                         <artifactId>jersey-client</artifactId>
51                         <version>1.18</version>
52                 </dependency>
53
54                 <dependency>
55                         <groupId>org.onap.aai.logging-service</groupId>
56                         <artifactId>common-logging</artifactId>
57                         <version>1.2.2</version>
58                 </dependency>
59                 
60                 <dependency>
61                         <groupId>org.mockito</groupId>
62                         <artifactId>mockito-all</artifactId>
63                         <version>1.10.19</version>
64                         <scope>test</scope>
65                 </dependency>
66                 
67                 <dependency>
68                         <groupId>org.powermock</groupId>
69                         <artifactId>powermock-module-junit4</artifactId>
70                         <version>1.6.2</version>
71                         <scope>test</scope>
72                 </dependency>
73                 
74                 <dependency>
75                         <groupId>org.powermock</groupId>
76                         <artifactId>powermock-api-mockito</artifactId>
77                         <version>1.6.2</version>
78                         <scope>test</scope>
79                 </dependency>
80                 
81                 <dependency>
82                         <groupId>org.powermock</groupId>
83                         <artifactId>powermock-module-javaagent</artifactId>
84                         <version>1.6.2</version>
85                         <scope>test</scope>
86                 </dependency>
87                 
88                 <dependency>
89                         <groupId>org.powermock</groupId>
90                         <artifactId>powermock-module-junit4-rule-agent</artifactId>
91                         <version>1.6.2</version>
92                         <scope>test</scope>
93                 </dependency>
94     <dependency>
95       <groupId>javax.ws.rs</groupId>
96       <artifactId>javax.ws.rs-api</artifactId>
97       <version>2.0</version>
98     </dependency>
99
100   </dependencies>
101
102         <build>
103                 <pluginManagement>
104                         <plugins>
105                                 <plugin>
106                                         <groupId>org.apache.maven.plugins</groupId>
107                                         <artifactId>maven-compiler-plugin</artifactId>
108                                         <configuration>
109                                                 <source>1.8</source>
110                                                 <target>1.8</target>
111                                         </configuration>
112                                 </plugin>
113                                 <plugin>
114                                         <artifactId>maven-release-plugin</artifactId>
115                                         <version>2.4.2</version>
116                                         <dependencies>
117                                                 <dependency>
118                                                         <groupId>org.apache.maven.scm</groupId>
119                                                         <artifactId>maven-scm-provider-gitexe</artifactId>
120                                                         <version>1.8.1</version>
121                                                 </dependency>
122                                         </dependencies>
123                                 </plugin>
124
125                                 <!-- Checkstyle plugin - used to report on compliance with -->
126                                 <!-- the Google style guide. -->
127                                 <plugin>
128                                         <groupId>org.apache.maven.plugins</groupId>
129                                         <artifactId>maven-site-plugin</artifactId>
130                                         <version>3.6</version>
131                                 </plugin>
132                         </plugins>
133                 </pluginManagement>
134                 <plugins>
135                         <!-- license plugin -->
136                         <!-- Uncomment this to add a license header to every source file
137                         <plugin>
138                                 <groupId>com.mycila</groupId>
139                                 <artifactId>license-maven-plugin</artifactId>
140                                 <version>3.0</version>
141                                 <configuration>
142                                         <header>License.txt</header>
143                                         <includes>
144                                                 <include>src/main/java/**</include>
145                                         </includes>
146                                 </configuration>
147                                 <executions>
148                                         <execution>
149                                                 <goals>
150                                                         <goal>format</goal>
151                                                 </goals>
152                                                 <phase>process-sources</phase>
153                                         </execution>
154                                 </executions>
155                         </plugin>
156                         -->
157
158                         <plugin>
159                               <groupId>org.sonatype.plugins</groupId>
160                               <artifactId>nexus-staging-maven-plugin</artifactId>
161                               <version>1.6.7</version>
162                               <extensions>true</extensions>
163                               <configuration>
164                                     <nexusUrl>${onap.nexus.url}</nexusUrl>
165                                     <stagingProfileId>176c31dfe190a</stagingProfileId>
166                                     <serverId>ecomp-staging</serverId>
167                               </configuration>
168                         </plugin>
169
170                         <plugin>
171                               <groupId>org.codehaus.mojo</groupId>
172                               <artifactId>sonar-maven-plugin</artifactId>
173                               <version>3.2</version>
174                         </plugin>
175                         <plugin>
176                               <groupId>org.jacoco</groupId>
177                               <artifactId>jacoco-maven-plugin</artifactId>
178                               <version>0.7.7.201606060606</version>
179                               <configuration>
180                                     <dumpOnExit>true</dumpOnExit>
181                               </configuration>
182                               <executions>
183                                     <execution>
184                                           <id>jacoco-initialize-unit-tests</id>
185                                           <goals>
186                                                 <goal>prepare-agent</goal>
187                                           </goals>
188                                           <configuration>
189                                                  <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
190                                                 <!-- <append>true</append> -->
191                                           </configuration>
192                                     </execution>
193                               </executions>
194                       </plugin>
195
196                 </plugins>
197         </build>
198
199         <reporting>
200                 <plugins>
201                         <plugin>
202                                 <groupId>org.apache.maven.plugins</groupId>
203                                 <artifactId>maven-checkstyle-plugin</artifactId>
204                                 <version>2.17</version>
205                                 <reportSets>
206                                         <reportSet>
207                                                 <reports>
208                                                         <report>checkstyle</report>
209                                                 </reports>
210                                         </reportSet>
211                                 </reportSets>
212                         </plugin>
213                 </plugins>
214         </reporting>
215
216 </project>