Upgrade to latest oparent
[aaf/cadi.git] / aaf / pom.xml
1 <!--\r
2   ============LICENSE_START====================================================\r
3   * org.onap.aaf\r
4   * ===========================================================================\r
5   * Copyright © 2017 AT&T Intellectual Property. All rights reserved.\r
6   * ===========================================================================\r
7   * Licensed under the Apache License, Version 2.0 (the "License");\r
8   * you may not use this file except in compliance with the License.\r
9   * You may obtain a copy of the License at\r
10   * \r
11    *      http://www.apache.org/licenses/LICENSE-2.0\r
12   * \r
13    * Unless required by applicable law or agreed to in writing, software\r
14   * distributed under the License is distributed on an "AS IS" BASIS,\r
15   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
16   * See the License for the specific language governing permissions and\r
17   * limitations under the License.\r
18   * ============LICENSE_END====================================================\r
19   *\r
20   * ECOMP is a trademark and service mark of AT&T Intellectual Property.\r
21   *\r
22 -->\r
23 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">\r
24         <parent>\r
25                 <groupId>org.onap.aaf.cadi</groupId>\r
26                 <artifactId>parent</artifactId>\r
27                 <version>1.0.0-SNAPSHOT</version>\r
28                 <relativePath>..</relativePath>\r
29         </parent>\r
30 \r
31         <modelVersion>4.0.0</modelVersion>\r
32         <name>CADI AAF (Application Authorization Framework) LUR</name>\r
33         <packaging>jar</packaging>\r
34         <url>https://github.com/att/AAF</url>\r
35         <description>CADI</description>\r
36         <artifactId>cadi-aaf</artifactId>\r
37         <properties>\r
38                 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>\r
39                 <project.cadiVersion>1.0.0-SNAPSHOT</project.cadiVersion>\r
40                 <!--  SONAR  -->\r
41                 <sonar.skip>true</sonar.skip>\r
42                  <jacoco.version>0.7.7.201606060606</jacoco.version>\r
43             <sonar-jacoco-listeners.version>3.2</sonar-jacoco-listeners.version>\r
44             <sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin>\r
45             <!-- Default Sonar configuration -->\r
46             <sonar.jacoco.reportPath>target/code-coverage/jacoco-ut.exec</sonar.jacoco.reportPath>\r
47             <sonar.jacoco.itReportPath>target/code-coverage/jacoco-it.exec</sonar.jacoco.itReportPath>\r
48             <!-- Note: This list should match jacoco-maven-plugin's exclusion list below -->\r
49             <sonar.exclusions>**/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/**</sonar.exclusions>\r
50         <nexusproxy>https://nexus.onap.org</nexusproxy>\r
51                 <snapshotNexusPath>/content/repositories/snapshots/</snapshotNexusPath>\r
52                 <releaseNexusPath>/content/repositories/releases/</releaseNexusPath>\r
53                 <stagingNexusPath>/content/repositories/staging/</stagingNexusPath>\r
54                 <sitePath>/content/sites/site/org/onap/aaf/cadi/${project.artifactId}/${project.version}</sitePath>\r
55         </properties>\r
56         \r
57         <dependencies>\r
58         <dependency>\r
59                         <groupId>org.mockito</groupId>\r
60                         <artifactId>mockito-all</artifactId>\r
61                         <version>1.9.5</version>\r
62                         <scope>test</scope>\r
63                         </dependency>\r
64                 <dependency>\r
65                         <groupId>org.onap.aaf.authz</groupId>\r
66                         <artifactId>authz-client</artifactId>\r
67                 </dependency> \r
68 \r
69                   <dependency>\r
70                         <groupId>org.onap.aaf.cadi</groupId>\r
71                         <artifactId>cadi-client</artifactId>\r
72                 </dependency> \r
73 \r
74                 <dependency>\r
75                         <groupId>org.onap.aaf.cadi</groupId>\r
76                         <artifactId>cadi-client</artifactId>\r
77                 </dependency>\r
78                 \r
79                 <dependency>\r
80                         <groupId>com.att.aft</groupId>\r
81                         <artifactId>dme2</artifactId>\r
82                         <scope>provided</scope>\r
83                 </dependency>\r
84                 \r
85                 <dependency>\r
86                     <groupId>javax.servlet</groupId>\r
87                     <artifactId>javax.servlet-api</artifactId>\r
88                     <version>3.0.1</version>\r
89                         <scope>provided</scope>\r
90                 </dependency>\r
91 \r
92                 <dependency>\r
93                         <groupId>org.slf4j</groupId>\r
94                     <artifactId>slf4j-log4j12</artifactId>\r
95                     <version>1.7.5</version>\r
96                     <scope>test</scope>\r
97                 </dependency>\r
98 \r
99         </dependencies>\r
100         <build>\r
101                 <plugins> \r
102                         <plugin>\r
103                                 <groupId>org.apache.maven.plugins</groupId>\r
104                                 <artifactId>maven-compiler-plugin</artifactId>\r
105                                 <version>2.3.2</version>\r
106                         </plugin>\r
107                 \r
108                                 <!-- We want to create a Jar with Rosetta built in (since I don't want \r
109                                 a separate deployment at this time Use this one as the jar to put in SWM \r
110                                 packages -->\r
111                         <plugin>\r
112                                 <artifactId>maven-assembly-plugin</artifactId>\r
113                                 <configuration>\r
114                                         <classifier>tests</classifier>\r
115                                         <archive>\r
116                                                 <manifest>\r
117                                                         <mainClass>org.onap.aaf.cadi.cm.CmAgent</mainClass>\r
118                                                 </manifest>\r
119 \r
120                                                 <manifestEntries>\r
121                                                         <Sealed>true</Sealed>\r
122                                                 </manifestEntries>\r
123                                         </archive>\r
124                                 </configuration>\r
125                                 <executions>\r
126                                         <execution>\r
127                                                 <id>full</id>\r
128                                                 <phase>package</phase>\r
129                                                 <goals>\r
130                                                         <goal>single</goal>\r
131                                                 </goals>\r
132                                                 <configuration>\r
133                                                         <descriptors>\r
134                                                                 <descriptor>src/assemble/cadi-aaf.xml</descriptor>\r
135                                                         </descriptors>\r
136                                                 </configuration>\r
137                                         </execution>\r
138                                 </executions>\r
139                         </plugin>\r
140                 <plugin>\r
141                         <groupId>org.apache.maven.plugins</groupId>\r
142                         <artifactId>maven-javadoc-plugin</artifactId>\r
143                         <version>2.10.4</version>\r
144                         <configuration>\r
145                         <failOnError>false</failOnError>\r
146                         </configuration>\r
147                         <executions>\r
148                                 <execution>\r
149                                         <id>attach-javadocs</id>\r
150                                         <goals>\r
151                                                 <goal>jar</goal>\r
152                                         </goals>\r
153                                 </execution>\r
154                         </executions>\r
155                 </plugin> \r
156            \r
157            \r
158                <plugin>\r
159                       <groupId>org.apache.maven.plugins</groupId>\r
160                       <artifactId>maven-source-plugin</artifactId>\r
161                       <version>2.2.1</version>\r
162                       <executions>\r
163                         <execution>\r
164                           <id>attach-sources</id>\r
165                           <goals>\r
166                             <goal>jar-no-fork</goal>\r
167                           </goals>\r
168                         </execution>\r
169                       </executions>\r
170                     </plugin>\r
171         \r
172 \r
173 \r
174                         <plugin>\r
175                                 <!-- Also sign "full" -->\r
176                                 <groupId>org.apache.maven.plugins</groupId>\r
177                                 <artifactId>maven-jarsigner-plugin</artifactId>\r
178                                 <configuration>\r
179                                         <skip>true</skip>\r
180                                 </configuration>\r
181                                 <executions>\r
182                                         <execution>\r
183                                                 <id>sign-full</id>\r
184                                                 <goals>\r
185                                                         <goal>sign</goal>\r
186                                                 </goals>\r
187                                                 <configuration>\r
188                                                         <archive>target/${project.artifactId}-${project.version}-full.jar</archive>\r
189                                                 </configuration>\r
190                                         </execution>\r
191                                         <execution>\r
192                                                 <id>verify-full</id>\r
193                                                 <goals>\r
194                                                         <goal>verify</goal>\r
195                                                 </goals>\r
196                                                 <configuration>\r
197                                                         <archive>target/${project.artifactId}-${project.version}-full.jar</archive>\r
198                                                 </configuration>\r
199                                         </execution>\r
200                                 </executions>\r
201                         </plugin>\r
202                   <plugin>\r
203                                 <groupId>org.sonatype.plugins</groupId>\r
204                                 <artifactId>nexus-staging-maven-plugin</artifactId>\r
205                                 <version>1.6.7</version>\r
206                                 <extensions>true</extensions>\r
207                                 <configuration>\r
208                                         <nexusUrl>${nexusproxy}</nexusUrl>\r
209                                         <stagingProfileId>176c31dfe190a</stagingProfileId>\r
210                                         <serverId>ecomp-staging</serverId>\r
211                                 </configuration>\r
212                         </plugin> \r
213                         \r
214                         <plugin>\r
215           <groupId>org.jacoco</groupId>\r
216           <artifactId>jacoco-maven-plugin</artifactId>\r
217           <version>${jacoco.version}</version>\r
218           <configuration>\r
219             <excludes>\r
220               <exclude>**/gen/**</exclude>\r
221               <exclude>**/generated-sources/**</exclude>\r
222               <exclude>**/yang-gen/**</exclude>\r
223               <exclude>**/pax/**</exclude>\r
224             </excludes>\r
225           </configuration>\r
226           <executions>\r
227 \r
228             <execution>\r
229               <id>pre-unit-test</id>\r
230               <goals>\r
231                 <goal>prepare-agent</goal>\r
232               </goals>\r
233               <configuration>\r
234                 <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>\r
235                 <propertyName>surefireArgLine</propertyName>\r
236               </configuration>\r
237             </execution>\r
238             \r
239        \r
240             <execution>\r
241               <id>post-unit-test</id>\r
242               <phase>test</phase>\r
243               <goals>\r
244                 <goal>report</goal>\r
245               </goals>\r
246               <configuration>\r
247                 <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>\r
248                 <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>\r
249               </configuration>\r
250             </execution>\r
251             <execution>\r
252               <id>pre-integration-test</id>\r
253               <phase>pre-integration-test</phase>\r
254               <goals>\r
255                 <goal>prepare-agent</goal>\r
256               </goals>\r
257               <configuration>\r
258                 <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>\r
259 \r
260                 <propertyName>failsafeArgLine</propertyName>\r
261               </configuration>\r
262             </execution>\r
263 \r
264        \r
265             <execution>\r
266               <id>post-integration-test</id>\r
267               <phase>post-integration-test</phase>\r
268               <goals>\r
269                 <goal>report</goal>\r
270               </goals>\r
271               <configuration>\r
272                 <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>\r
273                 <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>\r
274               </configuration>\r
275             </execution>\r
276           </executions>\r
277         </plugin>       \r
278 \r
279                 </plugins>\r
280         </build>\r
281                 <distributionManagement>\r
282                 <repository>\r
283                         <id>ecomp-releases</id>\r
284                         <name>AAF Release Repository</name>\r
285                         <url>${nexusproxy}${releaseNexusPath}</url>\r
286                 </repository>\r
287                 <snapshotRepository>\r
288                         <id>ecomp-snapshots</id>\r
289                         <name>AAF Snapshot Repository</name>\r
290                         <url>${nexusproxy}${snapshotNexusPath}</url>\r
291                 </snapshotRepository>\r
292                 <site>\r
293                         <id>ecomp-site</id>\r
294                         <url>dav:${nexusproxy}${sitePath}</url>\r
295                 </site>\r
296         </distributionManagement>\r
297 \r
298 </project>\r