Fix sonar issues & modify deploy property
[aaf/authz.git] / pom.xml
1 <!--
2  * ============LICENSE_START====================================================
3  * org.onap.aaf
4  * ===========================================================================
5  * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved.
6  * ===========================================================================
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  * ============LICENSE_END====================================================
19  *
20 -->
21 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
22   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
23         <modelVersion>4.0.0</modelVersion>
24         <groupId>org.onap.aaf.authz.authz</groupId>
25         <artifactId>parent</artifactId>
26         <version>2.1.0-SNAPSHOT</version>
27         <name>AAF Overall Parent</name>
28         <packaging>pom</packaging>
29         
30         <parent>             
31         <groupId>org.onap.oparent</groupId>
32         <artifactId>oparent</artifactId>
33         <version>1.1.0</version>
34     </parent>
35         
36         <properties>
37                 <nexusproxy>https://nexus.onap.org</nexusproxy>
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.reportPath>target/code-coverage/jacoco-ut.exec</sonar.jacoco.reportPath>
50             <sonar.jacoco.itReportPath>target/code-coverage/jacoco-it.exec</sonar.jacoco.itReportPath>
51             <!-- Note: This list should match jacoco-maven-plugin's exclusion list below -->
52             <sonar.exclusions>**/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/**</sonar.exclusions>
53                 <nexusproxy>https://nexus.onap.org</nexusproxy>
54                 <snapshotNexusPath>/content/repositories/snapshots/</snapshotNexusPath>
55                 <releaseNexusPath>/content/repositories/releases/</releaseNexusPath>
56                 <stagingNexusPath>/content/repositories/staging/</stagingNexusPath>
57                 <sitePath>/content/sites/site/org/onap/aaf/authz/${project.artifactId}/${project.version}</sitePath>
58                 
59         </properties>
60         <build>
61                 <plugins>
62                         <plugin>
63                                 <groupId>org.apache.maven.plugins</groupId>
64                                 <artifactId>maven-deploy-plugin</artifactId>
65                                 <configuration>
66                                         <skip>false</skip>
67                                 </configuration>
68                         </plugin>
69                         <plugin>
70                                 <groupId>org.sonatype.plugins</groupId>
71                                 <artifactId>nexus-staging-maven-plugin</artifactId>
72                                 <version>1.6.7</version>
73                                 <extensions>true</extensions>
74                                 <configuration>
75                                         <nexusUrl>${nexusproxy}</nexusUrl>
76                                         <stagingProfileId>176c31dfe190a</stagingProfileId>
77                                         <serverId>ecomp-staging</serverId>
78                                 </configuration>
79                         </plugin>               
80                         <plugin>
81                     <groupId>org.sonarsource.scanner.maven</groupId>
82                     <artifactId>sonar-maven-plugin</artifactId>
83                     <version>3.2</version>
84                 </plugin>
85                 <plugin>
86                                 <groupId>org.jacoco</groupId>
87                                 <artifactId>jacoco-maven-plugin</artifactId>
88                                 <version>0.7.7.201606060606</version>
89                                 <configuration>
90                                         <dumpOnExit>true</dumpOnExit>
91                                         <includes>
92                                                 <include>org.onap.aaf.*</include>
93                                         </includes>
94                                 </configuration>
95                                 <executions>
96                                         <execution>
97                                                 <id>pre-unit-test</id>
98                                                 <goals>
99                                                         <goal>prepare-agent</goal>
100                                                 </goals>
101                                                 <configuration>
102                                                         <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
103                                                         <!-- <append>true</append> -->
104                                                 </configuration>
105                                         </execution>
106                                         <execution>
107                                                 <id>pre-integration-test</id>
108                                                 <phase>pre-integration-test</phase>
109                                                 <goals>
110                                                         <goal>prepare-agent</goal>
111                                                 </goals>
112                                                 <configuration>
113                                                         <destFile>${project.build.directory}/coverage-reports/jacoco-it.exec</destFile>
114                                                         <!-- <append>true</append> -->
115                                                 </configuration>
116                                         </execution>
117                                         <execution>
118                         <goals>
119                             <goal>merge</goal>
120                         </goals>
121                         <phase>post-integration-test</phase>
122                         <configuration>
123                             <fileSets>
124                                 <fileSet implementation="org.apache.maven.shared.model.fileset.FileSet">
125                                     <directory>${project.build.directory}/coverage-reports</directory>
126                                     <includes>
127                                         <include>*.exec</include>
128                                     </includes>
129                                 </fileSet>
130                             </fileSets>
131                             <destFile>${project.build.directory}/jacoco-dev.exec</destFile>
132                         </configuration>
133                     </execution>
134                                 </executions>
135                         </plugin>
136                 </plugins>
137     </build>    
138         <modules>
139                 <module>auth/auth-client</module>
140                 <module>misc</module>
141                 <module>cadi</module>
142                 <module>auth</module>
143         </modules>
144
145         <distributionManagement>
146                 <repository>
147                         <id>ecomp-releases</id>
148                         <name>AAF Release Repository</name>
149                         <url>${nexusproxy}${releaseNexusPath}</url>
150                 </repository>
151                 <snapshotRepository>
152                         <id>ecomp-snapshots</id>
153                         <name>AAF Snapshot Repository</name>
154                         <url>${nexusproxy}${snapshotNexusPath}</url>
155                 </snapshotRepository>
156                 <site>
157                         <id>ecomp-site</id>
158                         <url>dav:${nexusproxy}${sitePath}</url>
159                 </site>
160         </distributionManagement>
161         
162 </project>