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