Merge "Renaming openecomp to onap"
[aai/rest-client.git] / pom.xml
1 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3         <modelVersion>4.0.0</modelVersion>
4         <parent>
5                 <groupId>org.onap.oparent</groupId>
6                 <artifactId>oparent</artifactId>
7                 <version>1.0.0-SNAPSHOT</version>
8         </parent>
9
10         <groupId>org.onap.aai</groupId>
11         <artifactId>rest-client</artifactId>
12         <version>1.1.0-SNAPSHOT</version>
13         <name>aai-rest-client</name>
14         
15         <properties>
16               <checkstyle.config.location>google_checks.xml</checkstyle.config.location>
17               <!-- Sonar Properties -->
18               <sonar.language>java</sonar.language>
19               <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
20               <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
21               <sonar.jacoco.reportPath>${project.build.directory}/code-coverage/jacoco-ut.exec</sonar.jacoco.reportPath>
22               <sonar.jacoco.reportMissing.force.zero>false</sonar.jacoco.reportMissing.force.zero>
23               <sonar.projectVersion>${project.version}</sonar.projectVersion>
24         </properties>
25
26         <dependencies>
27                 <dependency>
28                         <groupId>com.sun.jersey</groupId>
29                         <artifactId>jersey-client</artifactId>
30                         <version>1.18</version>
31                 </dependency>
32
33                 <dependency>
34                         <groupId>org.openecomp.aai.logging-service</groupId>
35                         <artifactId>common-logging</artifactId>
36                         <version>1.0.0</version>
37                 </dependency>
38                 
39                 <dependency>
40                         <groupId>org.mockito</groupId>
41                         <artifactId>mockito-all</artifactId>
42                         <version>1.10.19</version>
43                         <scope>test</scope>
44                 </dependency>
45                 
46                 <dependency>
47                         <groupId>org.powermock</groupId>
48                         <artifactId>powermock-module-junit4</artifactId>
49                         <version>1.6.2</version>
50                         <scope>test</scope>
51                 </dependency>
52                 
53                 <dependency>
54                         <groupId>org.powermock</groupId>
55                         <artifactId>powermock-api-mockito</artifactId>
56                         <version>1.6.2</version>
57                         <scope>test</scope>
58                 </dependency>
59                 
60                 <dependency>
61                         <groupId>org.powermock</groupId>
62                         <artifactId>powermock-module-javaagent</artifactId>
63                         <version>1.6.2</version>
64                         <scope>test</scope>
65                 </dependency>
66                 
67                 <dependency>
68                         <groupId>org.powermock</groupId>
69                         <artifactId>powermock-module-junit4-rule-agent</artifactId>
70                         <version>1.6.2</version>
71                         <scope>test</scope>
72                 </dependency>           
73
74         </dependencies>
75
76         <build>
77                 <pluginManagement>
78                         <plugins>
79                                 <plugin>
80                                         <groupId>org.apache.maven.plugins</groupId>
81                                         <artifactId>maven-compiler-plugin</artifactId>
82                                         <configuration>
83                                                 <source>1.8</source>
84                                                 <target>1.8</target>
85                                         </configuration>
86                                 </plugin>
87                                 <plugin>
88                                         <artifactId>maven-release-plugin</artifactId>
89                                         <version>2.4.2</version>
90                                         <dependencies>
91                                                 <dependency>
92                                                         <groupId>org.apache.maven.scm</groupId>
93                                                         <artifactId>maven-scm-provider-gitexe</artifactId>
94                                                         <version>1.8.1</version>
95                                                 </dependency>
96                                         </dependencies>
97                                 </plugin>
98
99                                 <!-- Checkstyle plugin - used to report on compliance with -->
100                                 <!-- the Google style guide. -->
101                                 <plugin>
102                                         <groupId>org.apache.maven.plugins</groupId>
103                                         <artifactId>maven-site-plugin</artifactId>
104                                         <version>3.6</version>
105                                 </plugin>
106                         </plugins>
107                 </pluginManagement>
108                 <plugins>
109                         <!-- license plugin -->
110                         <plugin>
111                                 <groupId>com.mycila</groupId>
112                                 <artifactId>license-maven-plugin</artifactId>
113                                 <version>3.0</version>
114                                 <configuration>
115                                         <header>License.txt</header>
116                                         <includes>
117                                                 <include>src/main/java/**</include>
118                                         </includes>
119                                 </configuration>
120                                 <executions>
121                                         <execution>
122                                                 <goals>
123                                                         <goal>format</goal>
124                                                 </goals>
125                                                 <phase>process-sources</phase>
126                                         </execution>
127                                 </executions>
128                         </plugin>
129
130                         <plugin>
131                               <groupId>org.sonatype.plugins</groupId>
132                               <artifactId>nexus-staging-maven-plugin</artifactId>
133                               <version>1.6.7</version>
134                               <extensions>true</extensions>
135                               <configuration>
136                                     <nexusUrl>${onap.nexus.url}</nexusUrl>
137                                     <stagingProfileId>176c31dfe190a</stagingProfileId>
138                                     <serverId>ecomp-staging</serverId>
139                               </configuration>
140                         </plugin>
141
142                         <plugin>
143                               <groupId>org.codehaus.mojo</groupId>
144                               <artifactId>sonar-maven-plugin</artifactId>
145                               <version>3.2</version>
146                         </plugin>
147                         <plugin>
148                               <groupId>org.jacoco</groupId>
149                               <artifactId>jacoco-maven-plugin</artifactId>
150                               <version>0.7.7.201606060606</version>
151                               <configuration>
152                                     <dumpOnExit>true</dumpOnExit>
153                               </configuration>
154                               <executions>
155                                     <execution>
156                                           <id>jacoco-initialize-unit-tests</id>
157                                           <goals>
158                                                 <goal>prepare-agent</goal>
159                                           </goals>
160                                           <configuration>
161                                                  <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
162                                                 <!-- <append>true</append> -->
163                                           </configuration>
164                                     </execution>
165                               </executions>
166                       </plugin>
167
168                 </plugins>
169         </build>
170
171         <reporting>
172                 <plugins>
173                         <plugin>
174                                 <groupId>org.apache.maven.plugins</groupId>
175                                 <artifactId>maven-checkstyle-plugin</artifactId>
176                                 <version>2.17</version>
177                                 <reportSets>
178                                         <reportSet>
179                                                 <reports>
180                                                         <report>checkstyle</report>
181                                                 </reports>
182                                         </reportSet>
183                                 </reportSets>
184                         </plugin>
185                 </plugins>
186         </reporting>
187         
188 </project>