Improve aaf sonar code coverage
[aaf/authz.git] / authz-core / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>\r
2 <!--\r
3   ============LICENSE_START====================================================\r
4   * org.onap.aaf\r
5   * ===========================================================================\r
6   * Copyright © 2017 AT&T Intellectual Property. All rights reserved.\r
7   * ===========================================================================\r
8   * Licensed under the Apache License, Version 2.0 (the "License");\r
9   * you may not use this file except in compliance with the License.\r
10   * You may obtain a copy of the License at\r
11   * \r
12    *      http://www.apache.org/licenses/LICENSE-2.0\r
13   * \r
14    * Unless required by applicable law or agreed to in writing, software\r
15   * distributed under the License is distributed on an "AS IS" BASIS,\r
16   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
17   * See the License for the specific language governing permissions and\r
18   * limitations under the License.\r
19   * ============LICENSE_END====================================================\r
20   *\r
21   * ECOMP is a trademark and service mark of AT&T Intellectual Property.\r
22   *\r
23 -->\r
24 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"\r
25         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">\r
26         <modelVersion>4.0.0</modelVersion>\r
27         <parent>\r
28                 <groupId>org.onap.aaf.authz</groupId>\r
29                 <artifactId>parent</artifactId>\r
30                 <version>1.0.1-SNAPSHOT</version>\r
31                 <relativePath>../pom.xml</relativePath>\r
32         </parent>\r
33                 \r
34         <artifactId>authz-core</artifactId>\r
35         <name>Authz Core</name>\r
36         <description>Core Libraries for Authz</description>\r
37         <packaging>jar</packaging>\r
38                 <url>https://github.com/att/AAF</url>\r
39         <licenses>\r
40                 <license>\r
41                 <name>BSD License</name>\r
42                 <url> </url>\r
43                 </license>\r
44         </licenses>\r
45         <developers>\r
46                 <developer>\r
47                 <name>Jonathan Gathman</name>\r
48                 <email></email>\r
49         <organization>ATT</organization>\r
50         <organizationUrl></organizationUrl>\r
51                 </developer>\r
52         </developers>\r
53 <properties>\r
54         <project.cadiVersion>1.0.0-SNAPSHOT</project.cadiVersion>\r
55         <project.innoVersion>1.0.0-SNAPSHOT</project.innoVersion>\r
56         <sonar.language>java</sonar.language>\r
57                 <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>\r
58                 <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>\r
59                 <sonar.jacoco.reportPath>${project.build.directory}/coverage-reports/jacoco.exec</sonar.jacoco.reportPath>\r
60                 <sonar.jacoco.itReportPath>${project.build.directory}/coverage-reports/jacoco-it.exec</sonar.jacoco.itReportPath>\r
61                 <sonar.jacoco.reportMissing.force.zero>false</sonar.jacoco.reportMissing.force.zero>\r
62                 <sonar.projectVersion>${project.version}</sonar.projectVersion>\r
63         <nexusproxy>https://nexus.onap.org</nexusproxy>\r
64                 <snapshotNexusPath>/content/repositories/snapshots/</snapshotNexusPath>\r
65                 <releaseNexusPath>/content/repositories/releases/</releaseNexusPath>\r
66                 <stagingNexusPath>/content/repositories/staging/</stagingNexusPath>\r
67                 <sitePath>/content/sites/site/org/onap/aaf/authz/${project.artifactId}/${project.version}</sitePath>\r
68 </properties>\r
69         <dependencies>\r
70                 <dependency>\r
71                         <groupId>org.onap.aaf.inno</groupId>\r
72                         <artifactId>env</artifactId>\r
73                         <version>${project.innoVersion}</version>\r
74                 </dependency>\r
75                 <dependency>\r
76                         <groupId>org.onap.aaf.inno</groupId>\r
77                         <artifactId>log4j</artifactId>\r
78                         <version>${project.innoVersion}</version>\r
79                 </dependency>\r
80                 <dependency>\r
81                         <groupId>org.onap.aaf.inno</groupId>\r
82                         <artifactId>rosetta</artifactId>\r
83                         <version>${project.innoVersion}</version>\r
84                 </dependency>\r
85                 <dependency>\r
86                         <groupId>org.onap.aaf.cadi</groupId>\r
87                         <artifactId>cadi-aaf</artifactId>\r
88                         <version>${project.cadiVersion}</version>\r
89                                 <exclusions>\r
90                                   <exclusion> \r
91                                         <groupId>javax.servlet</groupId>\r
92                                 <artifactId>servlet-api</artifactId>\r
93                            </exclusion>\r
94                             </exclusions> \r
95                         \r
96                 </dependency>\r
97                 <dependency>\r
98                   <groupId>javax.servlet</groupId>\r
99                   <artifactId>servlet-api</artifactId>\r
100                 </dependency>\r
101 \r
102         </dependencies>\r
103 \r
104         <build>\r
105                 <plugins>\r
106                 </plugins>\r
107                 <pluginManagement>\r
108                         <plugins>\r
109 \r
110                 <plugin>\r
111                         <groupId>org.apache.maven.plugins</groupId>\r
112                         <artifactId>maven-javadoc-plugin</artifactId>\r
113                         <version>2.10.4</version>\r
114                         <configuration>\r
115                         <failOnError>false</failOnError>\r
116                         </configuration>\r
117                         <executions>\r
118                                 <execution>\r
119                                         <id>attach-javadocs</id>\r
120                                         <goals>\r
121                                                 <goal>jar</goal>\r
122                                         </goals>\r
123                                 </execution>\r
124                         </executions>\r
125                 </plugin>  \r
126            \r
127            \r
128                <plugin>\r
129                       <groupId>org.apache.maven.plugins</groupId>\r
130                       <artifactId>maven-source-plugin</artifactId>\r
131                       <version>2.2.1</version>\r
132                       <executions>\r
133                         <execution>\r
134                           <id>attach-sources</id>\r
135                           <goals>\r
136                             <goal>jar-no-fork</goal>\r
137                           </goals>\r
138                         </execution>\r
139                       </executions>\r
140                     </plugin>\r
141                         \r
142  <plugin>\r
143                                 <groupId>org.sonatype.plugins</groupId>\r
144                                 <artifactId>nexus-staging-maven-plugin</artifactId>\r
145                                 <version>1.6.7</version>\r
146                                 <extensions>true</extensions>\r
147                                 <configuration>\r
148                                         <nexusUrl>${nexusproxy}</nexusUrl>\r
149                                         <stagingProfileId>176c31dfe190a</stagingProfileId>\r
150                                         <serverId>ecomp-staging</serverId>\r
151                                 </configuration>\r
152                         </plugin>               \r
153                         <plugin>\r
154                                 <groupId>org.jacoco</groupId>\r
155                                 <artifactId>jacoco-maven-plugin</artifactId>\r
156                                 <version>0.7.7.201606060606</version>\r
157                                 <configuration>\r
158                                         <dumpOnExit>true</dumpOnExit>\r
159                                 </configuration>\r
160                                 <executions>\r
161                                         <execution>\r
162                                                 <id>pre-unit-test</id>\r
163                                                 <goals>\r
164                                                         <goal>prepare-agent</goal>\r
165                                                 </goals>\r
166                                                 <configuration>\r
167                                                         <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>\r
168                                                         <!-- <append>true</append> -->\r
169                                                 </configuration>\r
170                                         </execution>\r
171                                         <execution>\r
172                                                 <id>pre-integration-test</id>\r
173                                                 <phase>pre-integration-test</phase>\r
174                                                 <goals>\r
175                                                         <goal>prepare-agent</goal>\r
176                                                 </goals>\r
177                                                 <configuration>\r
178                                                         <destFile>${project.build.directory}/coverage-reports/jacoco-it.exec</destFile>\r
179                                                         <!-- <append>true</append> -->\r
180                                                 </configuration>\r
181                                         </execution>\r
182                                         <execution>\r
183                         <goals>\r
184                             <goal>merge</goal>\r
185                         </goals>\r
186                         <phase>post-integration-test</phase>\r
187                         <configuration>\r
188                             <fileSets>\r
189                                 <fileSet implementation="org.apache.maven.shared.model.fileset.FileSet">\r
190                                     <directory>${project.build.directory}/coverage-reports</directory>\r
191                                     <includes>\r
192                                         <include>*.exec</include>\r
193                                     </includes>\r
194                                 </fileSet>\r
195                             </fileSets>\r
196                             <destFile>${project.build.directory}/jacoco-dev.exec</destFile>\r
197                         </configuration>\r
198                     </execution>\r
199                                 </executions>\r
200                         </plugin>\r
201                 \r
202                         </plugins>\r
203                 </pluginManagement>\r
204         </build>\r
205         <distributionManagement>\r
206                 <repository>\r
207                         <id>ecomp-releases</id>\r
208                         <name>AAF Release Repository</name>\r
209                         <url>${nexusproxy}${releaseNexusPath}</url>\r
210                 </repository>\r
211                 <snapshotRepository>\r
212                         <id>ecomp-snapshots</id>\r
213                         <name>AAF Snapshot Repository</name>\r
214                         <url>${nexusproxy}${snapshotNexusPath}</url>\r
215                 </snapshotRepository>\r
216                 <site>\r
217                         <id>ecomp-site</id>\r
218                         <url>dav:${nexusproxy}${sitePath}</url>\r
219                 </site>\r
220         </distributionManagement>\r
221 \r
222         \r
223 </project>\r
224 \r