Improve code coverage for aaf authz modules.
[aaf/authz.git] / authz-gw / 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/maven-v4_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-gw</artifactId>\r
35         <name>Authz Gate/Wall</name>\r
36         <description>GW API</description>\r
37                 <url>https://github.com/att/AAF</url>\r
38         <licenses>\r
39                 <license>\r
40                 <name>BSD License</name>\r
41                 <url> </url>\r
42                 </license>\r
43         </licenses>\r
44         <developers>\r
45                 <developer>\r
46                 <name>Jonathan Gathman</name>\r
47                 <email></email>\r
48         <organization>ATT</organization>\r
49         <organizationUrl></organizationUrl>\r
50                 </developer>\r
51         </developers>\r
52 \r
53         <properties>\r
54                 <maven.test.failure.ignore>true</maven.test.failure.ignore>\r
55                 <project.swmVersion>30</project.swmVersion>\r
56                         <project.innoVersion>1.0.0-SNAPSHOT</project.innoVersion>\r
57                 <project.cadiVersion>1.0.0-SNAPSHOT</project.cadiVersion>\r
58                         <sonar.language>java</sonar.language>\r
59                         <sonar.skip>true</sonar.skip>\r
60                 <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>\r
61                 <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>\r
62                 <sonar.jacoco.reportPath>${project.build.directory}/coverage-reports/jacoco.exec</sonar.jacoco.reportPath>\r
63                 <sonar.jacoco.itReportPath>${project.build.directory}/coverage-reports/jacoco-it.exec</sonar.jacoco.itReportPath>\r
64                 <sonar.jacoco.reportMissing.force.zero>true</sonar.jacoco.reportMissing.force.zero>\r
65                 <sonar.projectVersion>${project.version}</sonar.projectVersion>\r
66         <nexusproxy>https://nexus.onap.org</nexusproxy>\r
67                 <snapshotNexusPath>/content/repositories/snapshots/</snapshotNexusPath>\r
68                 <releaseNexusPath>/content/repositories/releases/</releaseNexusPath>\r
69                 <stagingNexusPath>/content/repositories/staging/</stagingNexusPath>\r
70                 <sitePath>/content/sites/site/org/onap/aaf/authz/${project.artifactId}/${project.version}</sitePath>\r
71         </properties>\r
72                 \r
73         <dependencies>\r
74         <dependency>\r
75             <groupId>org.onap.aaf.authz</groupId>\r
76             <artifactId>authz-core</artifactId>\r
77                         <version>${project.version}</version>\r
78          \r
79             <exclusions>\r
80                           <exclusion> \r
81                                         <groupId>javax.servlet</groupId>\r
82                         <artifactId>servlet-api</artifactId>\r
83                                            </exclusion>\r
84                     </exclusions> \r
85         </dependency>\r
86             \r
87                 <dependency> \r
88                         <groupId>org.onap.aaf.cadi</groupId>\r
89                         <artifactId>cadi-aaf</artifactId>\r
90                         <version>${project.cadiVersion}</version>\r
91                 </dependency>\r
92 \r
93 \r
94                 \r
95         </dependencies>\r
96         \r
97         <build>\r
98                 <plugins>\r
99                         <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->\r
100                                 <plugin>\r
101                                         <groupId>org.codehaus.mojo</groupId>\r
102                                         <artifactId>jaxb2-maven-plugin</artifactId>\r
103                                 </plugin>\r
104                     <plugin>\r
105                                 <groupId>org.apache.maven.plugins</groupId>\r
106                                 <artifactId>maven-jar-plugin</artifactId>\r
107                                         <configuration>\r
108                                 <includes>\r
109                                         <include>**/*.class</include>\r
110                                 </includes>\r
111                                         </configuration>\r
112                                         <version>2.3.1</version>\r
113                                 </plugin>\r
114 \r
115            <plugin>\r
116                         <groupId>org.apache.maven.plugins</groupId>\r
117                         <artifactId>maven-javadoc-plugin</artifactId>\r
118                         <version>2.10.4</version>\r
119                         <configuration>\r
120                         <failOnError>false</failOnError>\r
121                         </configuration>\r
122                         <executions>\r
123                                 <execution>\r
124                                         <id>attach-javadocs</id>\r
125                                         <goals>\r
126                                                 <goal>jar</goal>\r
127                                         </goals>\r
128                                 </execution>\r
129                         </executions>\r
130                 </plugin> \r
131                <plugin>\r
132                       <groupId>org.apache.maven.plugins</groupId>\r
133                       <artifactId>maven-source-plugin</artifactId>\r
134                       <version>2.2.1</version>\r
135                       <executions>\r
136                         <execution>\r
137                           <id>attach-sources</id>\r
138                           <goals>\r
139                             <goal>jar-no-fork</goal>\r
140                           </goals>\r
141                         </execution>\r
142                       </executions>\r
143                     </plugin>\r
144 \r
145 <plugin>\r
146                                 <groupId>org.sonatype.plugins</groupId>\r
147                                 <artifactId>nexus-staging-maven-plugin</artifactId>\r
148                                 <version>1.6.7</version>\r
149                                 <extensions>true</extensions>\r
150                                 <configuration>\r
151                                         <nexusUrl>${nexusproxy}</nexusUrl>\r
152                                         <stagingProfileId>176c31dfe190a</stagingProfileId>\r
153                                         <serverId>ecomp-staging</serverId>\r
154                                 </configuration>\r
155                         </plugin>               \r
156                         <plugin>\r
157                                 <groupId>org.jacoco</groupId>\r
158                                 <artifactId>jacoco-maven-plugin</artifactId>\r
159                                 <version>0.7.7.201606060606</version>\r
160                                 <configuration>\r
161                                         <dumpOnExit>true</dumpOnExit>\r
162                                         <includes>\r
163                                                 <include>org.onap.aaf.*</include>\r
164                                         </includes>\r
165                                 </configuration>\r
166                                 <executions>\r
167                                         <execution>\r
168                                                 <id>pre-unit-test</id>\r
169                                                 <goals>\r
170                                                         <goal>prepare-agent</goal>\r
171                                                 </goals>\r
172                                                 <configuration>\r
173                                                         <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>\r
174                                                         <!-- <append>true</append> -->\r
175                                                 </configuration>\r
176                                         </execution>\r
177                                         <execution>\r
178                                                 <id>pre-integration-test</id>\r
179                                                 <phase>pre-integration-test</phase>\r
180                                                 <goals>\r
181                                                         <goal>prepare-agent</goal>\r
182                                                 </goals>\r
183                                                 <configuration>\r
184                                                         <destFile>${project.build.directory}/coverage-reports/jacoco-it.exec</destFile>\r
185                                                         <!-- <append>true</append> -->\r
186                                                 </configuration>\r
187                                         </execution>\r
188                                         <execution>\r
189                         <goals>\r
190                             <goal>merge</goal>\r
191                         </goals>\r
192                         <phase>post-integration-test</phase>\r
193                         <configuration>\r
194                             <fileSets>\r
195                                 <fileSet implementation="org.apache.maven.shared.model.fileset.FileSet">\r
196                                     <directory>${project.build.directory}/coverage-reports</directory>\r
197                                     <includes>\r
198                                         <include>*.exec</include>\r
199                                     </includes>\r
200                                 </fileSet>\r
201                             </fileSets>\r
202                             <destFile>${project.build.directory}/jacoco-dev.exec</destFile>\r
203                         </configuration>\r
204                     </execution>\r
205                                 </executions>\r
206                         </plugin>   \r
207 \r
208                 \r
209                         </plugins>\r
210         </build>\r
211 <distributionManagement>\r
212                 <repository>\r
213                         <id>ecomp-releases</id>\r
214                         <name>AAF Release Repository</name>\r
215                         <url>${nexusproxy}${releaseNexusPath}</url>\r
216                 </repository>\r
217                 <snapshotRepository>\r
218                         <id>ecomp-snapshots</id>\r
219                         <name>AAF Snapshot Repository</name>\r
220                         <url>${nexusproxy}${snapshotNexusPath}</url>\r
221                 </snapshotRepository>\r
222                 <site>\r
223                         <id>ecomp-site</id>\r
224                         <url>dav:${nexusproxy}${sitePath}</url>\r
225                 </site>\r
226         </distributionManagement>\r
227 \r
228 </project>\r