Merge "fix critical sonar"
[aaf/authz.git] / pom.xml
1 <!-- * ============LICENSE_START==================================================== 
2         * org.onap.aaf * =========================================================================== 
3         * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. * =========================================================================== 
4         * Licensed under the Apache License, Version 2.0 (the "License"); * you may 
5         not use this file except in compliance with the License. * You may obtain 
6         a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * 
7         * Unless required by applicable law or agreed to in writing, software * distributed 
8         under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 
9         OR CONDITIONS OF ANY KIND, either express or implied. * See the License for 
10         the specific language governing permissions and * limitations under the License. 
11         * ============LICENSE_END==================================================== 
12         * -->
13 <project xmlns="http://maven.apache.org/POM/4.0.0"
14         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
15         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
16         <modelVersion>4.0.0</modelVersion>
17         <groupId>org.onap.aaf.authz</groupId>
18         <artifactId>parent</artifactId>
19         <version>2.1.2-SNAPSHOT</version>
20         <name>AAF Overall Parent</name>
21         <packaging>pom</packaging>
22
23         <parent>
24                 <groupId>org.onap.oparent</groupId>
25                 <artifactId>oparent</artifactId>
26                 <version>1.2.0</version>
27         </parent>
28
29         <properties>
30                 <nexusproxy>https://nexus.onap.org</nexusproxy>
31                 <snapshotNexusPath>/content/repositories/snapshots/</snapshotNexusPath>
32                 <releaseNexusPath>/content/repositories/releases/</releaseNexusPath>
33                 <stagingNexusPath>/content/repositories/staging/</stagingNexusPath>
34                 <sitePath>/content/sites/site/org/onap/aaf/authz/${project.artifactId}/${project.version}</sitePath>
35
36                 <maven.test.failure.ignore>false</maven.test.failure.ignore>
37                 <!-- SONAR -->
38                 <jacoco.version>0.7.7.201606060606</jacoco.version>
39                 <sonar-jacoco-listeners.version>3.2</sonar-jacoco-listeners.version>
40                 <sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin>
41                 <!-- Default Sonar configuration -->
42                 <sonar.jacoco.reportPaths>target/code-coverage/jacoco-ut.exec</sonar.jacoco.reportPaths>
43                 <sonar.jacoco.itReportPaths>target/code-coverage/jacoco-it.exec</sonar.jacoco.itReportPaths>
44                 <!-- Note: This list should match jacoco-maven-plugin's exclusion list 
45                         below -->
46                 <sonar.exclusions>**/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/**</sonar.exclusions>
47                 <nexusproxy>https://nexus.onap.org</nexusproxy>
48                 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
49                 <powermock.version>1.5.1</powermock.version>
50                 <mockito.version>1.9.5</mockito.version>
51                 <project.interfaceVersion>${project.version}</project.interfaceVersion>
52                 <project.jettyVersion>9.4.11.v20180605</project.jettyVersion>
53                 <project.guavaVersion>23.6.1-jre</project.guavaVersion>
54
55         </properties>
56         <build>
57                 <plugins>
58                         <plugin>
59                                 <groupId>org.apache.maven.plugins</groupId>
60                                 <artifactId>maven-deploy-plugin</artifactId>
61                                 <configuration>
62                                         <skip>false</skip>
63                                 </configuration>
64                         </plugin>
65                         <plugin>
66                                 <groupId>org.sonatype.plugins</groupId>
67                                 <artifactId>nexus-staging-maven-plugin</artifactId>
68                                 <extensions>true</extensions>
69                                 <configuration>
70                                         <nexusUrl>${nexusproxy}</nexusUrl>
71                                         <stagingProfileId>176c31dfe190a</stagingProfileId>
72                                         <serverId>ecomp-staging</serverId>
73                                 </configuration>
74                         </plugin>
75                         <plugin>
76                                 <groupId>org.sonarsource.scanner.maven</groupId>
77                                 <artifactId>sonar-maven-plugin</artifactId>
78                         </plugin>
79                         <plugin>
80                                 <groupId>org.jacoco</groupId>
81                                 <artifactId>jacoco-maven-plugin</artifactId>
82                                 <configuration>
83                                         <excludes>
84                                                 <exclude>**/gen/**</exclude>
85                                                 <exclude>**/generated-sources/**</exclude>
86                                                 <exclude>**/yang-gen/**</exclude>
87                                                 <exclude>**/pax/**</exclude>
88                                         </excludes>
89                                 </configuration>
90                                 <executions>
91                                         <execution>
92                                                 <id>pre-unit-test</id>
93                                                 <goals>
94                                                         <goal>prepare-agent</goal>
95                                                 </goals>
96                                                 <configuration>
97                                                         <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
98                                                         <propertyName>surefireArgLine</propertyName>
99                                                 </configuration>
100                                         </execution>
101                                         <execution>
102                                                 <id>post-unit-test</id>
103                                                 <phase>test</phase>
104                                                 <goals>
105                                                         <goal>report</goal>
106                                                 </goals>
107                                                 <configuration>
108                                                         <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
109                                                         <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
110                                                 </configuration>
111                                         </execution>
112                                         <execution>
113                                                 <id>pre-integration-test</id>
114                                                 <phase>pre-integration-test</phase>
115                                                 <goals>
116                                                         <goal>prepare-agent</goal>
117                                                 </goals>
118                                                 <configuration>
119                                                         <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
120                                                         <propertyName>failsafeArgLine</propertyName>
121                                                 </configuration>
122                                         </execution>
123                                         <execution>
124                                                 <id>post-integration-test</id>
125                                                 <phase>post-integration-test</phase>
126                                                 <goals>
127                                                         <goal>report</goal>
128                                                 </goals>
129                                                 <configuration>
130                                                         <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
131                                                         <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
132                                                 </configuration>
133                                         </execution>
134                                 </executions>
135                         </plugin>
136
137                 </plugins>
138         </build>
139         <modules>
140                 <module>auth-client</module>
141                 <module>misc</module>
142                 <module>cadi</module>
143                 <module>auth</module>
144         </modules>
145
146         <dependencyManagement>
147                 <dependencies>
148                         <dependency>
149                                 <groupId>org.onap.aaf.authz</groupId>
150                                 <artifactId>aaf-misc-env</artifactId>
151                                 <version>${project.version}</version>
152                         </dependency>
153
154                         <dependency>
155                                 <groupId>org.onap.aaf.authz</groupId>
156                                 <artifactId>aaf-misc-log4j</artifactId>
157                                 <version>${project.version}</version>
158                         </dependency>
159
160                         <dependency>
161                                 <groupId>org.onap.aaf.authz</groupId>
162                                 <artifactId>aaf-misc-rosetta</artifactId>
163                                 <version>${project.version}</version>
164                         </dependency>
165
166                         <dependency>
167                                 <groupId>org.onap.aaf.authz</groupId>
168                                 <artifactId>aaf-misc-xgen</artifactId>
169                                 <version>${project.version}</version>
170                         </dependency>
171
172                         
173
174                         
175
176                         
177
178                         <dependency>
179                                 <groupId>org.onap.aaf.authz</groupId>
180                                 <artifactId>aaf-auth-client</artifactId>
181                                 <version>${project.version}</version>
182                         </dependency>
183
184                         <dependency>
185                                 <groupId>org.onap.aaf.authz</groupId>
186                                 <artifactId>aaf-auth-core</artifactId>
187                                 <version>${project.version}</version>
188                         </dependency>
189
190                         <dependency>
191                                 <groupId>org.onap.aaf.authz</groupId>
192                                 <artifactId>aaf-auth-cass</artifactId>
193                                 <version>${project.version}</version>
194                         </dependency>
195
196                         <dependency>
197                                 <groupId>org.onap.aaf.authz</groupId>
198                                 <artifactId>aaf-auth-cmd</artifactId>
199                                 <version>${project.version}</version>
200                         </dependency>
201
202                         <dependency>
203                                 <groupId>org.onap.aaf.authz</groupId>
204                                 <artifactId>aaf-auth-oauth</artifactId>
205                                 <version>${project.version}</version>
206                         </dependency>
207
208                         <dependency>
209                                 <groupId>org.onap.aaf.authz</groupId>
210                                 <artifactId>aaf-auth-deforg</artifactId>
211                                 <version>${project.version}</version>
212                         </dependency>
213
214                         <dependency>
215                                 <groupId>org.onap.aaf.authz</groupId>
216                                 <artifactId>aaf-cadi-core</artifactId>
217                                 <version>${project.version}</version>
218                         </dependency>
219                         
220                         <dependency>
221                                 <groupId>org.onap.aaf.authz</groupId>
222                                 <artifactId>aaf-cadi-client</artifactId>
223                                 <version>${project.version}</version>
224                         </dependency>
225                         
226                         <dependency>
227                                 <groupId>org.onap.aaf.authz</groupId>
228                                 <artifactId>aaf-cadi-aaf</artifactId>
229                                 <version>${project.version}</version>
230                                 <exclusions>
231                                         <exclusion>
232                                                 <groupId>org.apache.cassandra</groupId>
233                                                 <artifactId>cassandra-all</artifactId>
234                                         </exclusion>
235                                 </exclusions>
236                         </dependency>
237
238                         <dependency>
239                                 <groupId>org.onap.aaf.authz</groupId>
240                                 <artifactId>aaf-cadi-jetty</artifactId>
241                                 <version>${project.version}</version>
242                         </dependency>
243
244                         <dependency>
245                                 <groupId>org.onap.aaf.authz</groupId>
246                                 <artifactId>aaf-cadi-cass</artifactId>
247                                 <version>${project.version}</version>
248                         </dependency><dependency>
249                                 <groupId>javax.servlet</groupId>
250                                 <artifactId>javax.servlet-api</artifactId>
251                                 <version>3.0.1</version>
252                         </dependency><dependency>
253                                 <groupId>org.eclipse.jetty</groupId>
254                                 <artifactId>jetty-servlet</artifactId>
255                                 <version>${project.jettyVersion}</version>
256                         </dependency><dependency>
257                                 <groupId>org.eclipse.jetty</groupId>
258                                 <artifactId>jetty-server</artifactId>
259                                 <version>${project.jettyVersion}</version>
260                         </dependency>
261
262                         <dependency>
263                                 <groupId>org.eclipse.jetty</groupId>
264                                 <artifactId>jetty-io</artifactId>
265                                 <version>${project.jettyVersion}</version>
266                         </dependency>
267
268                         <dependency>
269                                 <groupId>org.eclipse.jetty</groupId>
270                                 <artifactId>jetty-security</artifactId>
271                                 <version>${project.jettyVersion}</version>
272                         </dependency>
273
274                         <dependency>
275                                 <groupId>org.eclipse.jetty</groupId>
276                                 <artifactId>jetty-http</artifactId>
277                                 <version>${project.jettyVersion}</version>
278                         </dependency>
279
280                         <dependency>
281                                 <groupId>org.eclipse.jetty</groupId>
282                                 <artifactId>jetty-util</artifactId>
283                                 <version>${project.jettyVersion}</version>
284                         </dependency>
285
286                         <dependency>
287                                 <groupId>org.slf4j</groupId>
288                                 <artifactId>slf4j-api</artifactId>
289                                 <version>1.7.5</version>
290                         </dependency>
291
292                         <dependency>
293                                 <groupId>com.datastax.cassandra</groupId>
294                                 <artifactId>cassandra-all</artifactId>
295                                 <version>${project.cassVersion}</version>
296                                 <exclusions>
297                                         <exclusion>
298                                                 <groupId>org.slf4j</groupId>
299                                                 <artifactId>slf4j-log4j12</artifactId>
300                                         </exclusion>
301                                         <exclusion>
302                                                 <groupId>log4j</groupId>
303                                                 <artifactId>log4j</artifactId>
304                                         </exclusion>
305                                 </exclusions>
306                         </dependency>
307
308                         <dependency>
309                                 <groupId>com.datastax.cassandra</groupId>
310                                 <artifactId>cassandra-driver-core</artifactId>
311                                 <version>${project.cassVersion}</version>
312                                 <exclusions>
313                                         <exclusion>
314                                                 <groupId>org.slf4j</groupId>
315                                                 <artifactId>slf4j-log4j12</artifactId>
316                                         </exclusion>
317                                         <exclusion>
318                                                 <groupId>log4j</groupId>
319                                                 <artifactId>log4j</artifactId>
320                                         </exclusion>
321                                         <exclusion>
322                                                 <groupId>com.google.guava</groupId>
323                                                 <artifactId>guava</artifactId>
324                                         </exclusion>
325                                 </exclusions>
326                         </dependency>
327                         
328         
329                         <dependency>
330                                 <groupId>com.google.guava</groupId>
331                                 <artifactId>guava</artifactId>
332                                 <version>${project.guavaVersion}</version>
333                         </dependency>
334                                 
335         
336                         <!-- Note: Ensure DataStax uses more up-to-date netty handler -->
337                         <dependency>
338                                 <groupId>io.netty</groupId>
339                                 <artifactId>netty-handler</artifactId>
340                                 <version>${project.nettyVersion}</version>
341                         </dependency>
342
343                         <dependency>
344                                 <groupId>org.slf4j</groupId>
345                                 <artifactId>slf4j-log4j12</artifactId>
346                                 <version>1.7.5</version>
347                         </dependency>
348
349                         <dependency>
350                                 <groupId>javax.mail</groupId>
351                                 <artifactId>mail</artifactId>
352                                 <version>1.4.7</version>
353                         </dependency>
354
355                         <dependency>
356                                 <groupId>org.mockito</groupId>
357                                 <artifactId>mockito-all</artifactId>
358                                 <version>${mockito.version}</version>
359                                 <scope>test</scope>
360                         </dependency>
361
362                         <dependency>
363                                 <groupId>org.powermock</groupId>
364                                 <artifactId>powermock-module-junit4</artifactId>
365                                 <version>${powermock.version}</version>
366                                 <scope>test</scope>
367                         </dependency>
368                         
369                         <dependency>
370                                 <groupId>org.powermock</groupId>
371                                 <artifactId>powermock-api-mockito</artifactId>
372                                 <version>${powermock.version}</version>
373                                 <scope>test</scope>
374                         </dependency>
375                         
376                         <dependency>
377                                 <groupId>log4j</groupId>
378                                 <artifactId>log4j</artifactId>
379                                 <version>1.2.17</version>
380                         </dependency>
381                         
382                         <dependency>
383                                 <groupId>junit</groupId>
384                                 <artifactId>junit</artifactId>
385                                 <version>4.10</version>
386                                 <scope>test</scope>
387                         </dependency>
388                         
389                 </dependencies>
390         </dependencyManagement>
391
392
393
394
395
396         <distributionManagement>
397                 <repository>
398                         <id>ecomp-releases</id>
399                         <name>AAF Release Repository</name>
400                         <url>${nexusproxy}${releaseNexusPath}</url>
401                 </repository>
402                 <snapshotRepository>
403                         <id>ecomp-snapshots</id>
404                         <name>AAF Snapshot Repository</name>
405                         <url>${nexusproxy}${snapshotNexusPath}</url>
406                 </snapshotRepository>
407                 <site>
408                         <id>ecomp-site</id>
409                         <url>dav:${nexusproxy}${sitePath}</url>
410                 </site>
411         </distributionManagement>
412
413 </project>