9507792245d690cc3451f968c84659a21843ee7c
[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>true</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>${jacoco.version}</version>\r
157           <configuration>\r
158             <!-- Note: This exclusion list should match <sonar.exclusions>\r
159          property above -->\r
160             <excludes>\r
161               <exclude>**/gen/**</exclude>\r
162               <exclude>**/generated-sources/**</exclude>\r
163               <exclude>**/yang-gen/**</exclude>\r
164               <exclude>**/pax/**</exclude>\r
165             </excludes>\r
166           </configuration>\r
167           <executions>\r
168             <!--\r
169         Prepares the property pointing to the JaCoCo runtime agent which\r
170         is passed as VM argument when Maven the Surefire plugin is executed.\r
171         -->\r
172             <execution>\r
173               <id>pre-unit-test</id>\r
174               <goals>\r
175                 <goal>prepare-agent</goal>\r
176               </goals>\r
177               <configuration>\r
178                 <!-- Sets the path to the file which contains the execution data. -->\r
179                 <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>\r
180                 <!--\r
181             Sets the name of the property containing the settings\r
182             for JaCoCo runtime agent.\r
183         -->\r
184                 <propertyName>surefireArgLine</propertyName>\r
185               </configuration>\r
186             </execution>\r
187             <!--\r
188         Ensures that the code coverage report for unit tests is created after\r
189         unit tests have been run.\r
190         -->\r
191             <execution>\r
192               <id>post-unit-test</id>\r
193               <phase>test</phase>\r
194               <goals>\r
195                 <goal>report</goal>\r
196               </goals>\r
197               <configuration>\r
198                 <!-- Sets the path to the file which contains the execution data. -->\r
199                 <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>\r
200                 <!-- Sets the output directory for the code coverage report. -->\r
201                 <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>\r
202               </configuration>\r
203             </execution>\r
204             <execution>\r
205               <id>pre-integration-test</id>\r
206               <phase>pre-integration-test</phase>\r
207               <goals>\r
208                 <goal>prepare-agent</goal>\r
209               </goals>\r
210               <configuration>\r
211                 <!-- Sets the path to the file which contains the execution data. -->\r
212                 <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>\r
213                 <!--\r
214             Sets the name of the property containing the settings\r
215             for JaCoCo runtime agent.\r
216         -->\r
217                 <propertyName>failsafeArgLine</propertyName>\r
218               </configuration>\r
219             </execution>\r
220             <!--\r
221         Ensures that the code coverage report for integration tests after\r
222         integration tests have been run.\r
223         -->\r
224             <execution>\r
225               <id>post-integration-test</id>\r
226               <phase>post-integration-test</phase>\r
227               <goals>\r
228                 <goal>report</goal>\r
229               </goals>\r
230               <configuration>\r
231                 <!-- Sets the path to the file which contains the execution data. -->\r
232                 <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>\r
233                 <!-- Sets the output directory for the code coverage report. -->\r
234                 <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>\r
235               </configuration>\r
236             </execution>\r
237           </executions>\r
238         </plugin>                    \r
239 \r
240                 \r
241                         </plugins>\r
242                 </pluginManagement>\r
243         </build>\r
244         <distributionManagement>\r
245                 <repository>\r
246                         <id>ecomp-releases</id>\r
247                         <name>AAF Release Repository</name>\r
248                         <url>${nexusproxy}${releaseNexusPath}</url>\r
249                 </repository>\r
250                 <snapshotRepository>\r
251                         <id>ecomp-snapshots</id>\r
252                         <name>AAF Snapshot Repository</name>\r
253                         <url>${nexusproxy}${snapshotNexusPath}</url>\r
254                 </snapshotRepository>\r
255                 <site>\r
256                         <id>ecomp-site</id>\r
257                         <url>dav:${nexusproxy}${sitePath}</url>\r
258                 </site>\r
259         </distributionManagement>\r
260 \r
261         \r
262 </project>\r
263 \r