Sample Commit
[aaf/authz.git] / cadi / aaf / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3  * ============LICENSE_START====================================================
4  * org.onap.aaf
5  * ===========================================================================
6  * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved.
7  * ===========================================================================
8  * Licensed under the Apache License, Version 2.0 (the "License");
9  * you may not use this file except in compliance with the License.
10  * You may obtain a copy of the License at
11  *
12  *      http://www.apache.org/licenses/LICENSE-2.0
13  *
14  * Unless required by applicable law or agreed to in writing, software
15  * distributed under the License is distributed on an "AS IS" BASIS,
16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17  * See the License for the specific language governing permissions and
18  * limitations under the License.
19  * ============LICENSE_END====================================================
20  *
21 -->
22 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
23     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
24     <parent>
25         <groupId>org.onap.aaf.authz</groupId>
26         <artifactId>cadiparent</artifactId>
27         <version>2.7.0-SNAPSHOT</version>
28         <relativePath>..</relativePath>
29     </parent>
30
31     <modelVersion>4.0.0</modelVersion>
32     <artifactId>aaf-cadi-aaf</artifactId>
33     <name>AAF CADI AAF Connection Library</name>
34     <packaging>jar</packaging>
35
36     <properties>
37     <!--  SONAR  -->
38     <!-- <sonar.skip>true</sonar.skip> -->
39          <jacoco.version>0.7.7.201606060606</jacoco.version>
40         <sonar-jacoco-listeners.version>3.2</sonar-jacoco-listeners.version>
41         <sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin>
42         <!-- Default Sonar configuration -->
43         <sonar.jacoco.reportPaths>target/code-coverage/jacoco-ut.exec</sonar.jacoco.reportPaths>
44         <sonar.jacoco.itReportPaths>target/code-coverage/jacoco-it.exec</sonar.jacoco.itReportPaths>
45         <!-- Note: This list should match jacoco-maven-plugin's exclusion list below -->
46         <sonar.exclusions>**/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/**</sonar.exclusions>
47         <nexusproxy>https://nexus.onap.org</nexusproxy>
48         <snapshotNexusPath>/content/repositories/snapshots/</snapshotNexusPath>
49         <releaseNexusPath>/content/repositories/releases/</releaseNexusPath>
50         <stagingNexusPath>/content/repositories/staging/</stagingNexusPath>
51         <sitePath>/content/sites/site/org/onap/aaf/authz/${project.artifactId}/${project.version}</sitePath>
52     </properties>
53     <developers>
54         <developer>
55             <name>Jonathan Gathman</name>
56             <email>jonathan.gathman@att.com</email>
57             <organization>ATT</organization>
58             <roles>
59                 <role>Architect</role>
60                 <role>Lead Developer</role>
61             </roles>
62         </developer>
63         <developer>
64             <name>Sai Gandham</name>
65             <email>sai.gandham@att.com</email>
66             <organization>ATT</organization>
67             <roles>
68                 <role>Developer</role>
69             </roles>
70         </developer>
71     </developers>
72
73
74     <dependencies>
75         <dependency>
76             <groupId>org.onap.aaf.authz</groupId>
77             <artifactId>aaf-auth-client</artifactId>
78         </dependency>
79
80         <dependency>
81             <groupId>org.onap.aaf.authz</groupId>
82             <artifactId>aaf-cadi-client</artifactId>
83         </dependency>
84
85         <dependency>
86             <groupId>org.onap.aaf.authz</groupId>
87             <artifactId>aaf-misc-env</artifactId>
88         </dependency>
89
90         <dependency>
91             <groupId>org.onap.aaf.authz</groupId>
92             <artifactId>aaf-cadi-core</artifactId>
93         </dependency>
94
95         <dependency>
96             <groupId>javax.servlet</groupId>
97             <artifactId>javax.servlet-api</artifactId>
98             <scope>provided</scope>
99         </dependency>
100     </dependencies>
101     <build>
102         <plugins>
103             <plugin>
104                 <groupId>org.apache.maven.plugins</groupId>
105                 <artifactId>maven-compiler-plugin</artifactId>
106             </plugin>
107             <plugin>
108                 <groupId>org.jacoco</groupId>
109                 <artifactId>jacoco-maven-plugin</artifactId>
110                 <configuration>
111                     <excludes>
112                         <exclude>**/gen/**</exclude>
113                         <exclude>**/generated-sources/**</exclude>
114                         <exclude>**/yang-gen/**</exclude>
115                         <exclude>**/pax/**</exclude>
116                     </excludes>
117                 </configuration>
118                 <executions>
119                     <execution>
120                         <id>pre-unit-test</id>
121                         <goals>
122                             <goal>prepare-agent</goal>
123                         </goals>
124                         <configuration>
125                             <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
126                             <propertyName>surefireArgLine</propertyName>
127                         </configuration>
128                     </execution>
129                     <execution>
130                         <id>post-unit-test</id>
131                         <phase>test</phase>
132                         <goals>
133                             <goal>report</goal>
134                         </goals>
135                         <configuration>
136                             <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
137                             <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
138                         </configuration>
139                     </execution>
140                     <execution>
141                         <id>pre-integration-test</id>
142                         <phase>pre-integration-test</phase>
143                         <goals>
144                             <goal>prepare-agent</goal>
145                         </goals>
146                         <configuration>
147                             <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
148                             <propertyName>failsafeArgLine</propertyName>
149                         </configuration>
150                     </execution>
151                     <execution>
152                         <id>post-integration-test</id>
153                         <phase>post-integration-test</phase>
154                         <goals>
155                             <goal>report</goal>
156                         </goals>
157                         <configuration>
158                             <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
159                             <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
160                         </configuration>
161                     </execution>
162                 </executions>
163             </plugin>
164
165             <plugin>
166                 <artifactId>maven-assembly-plugin</artifactId>
167                 <configuration>
168                     <classifier>tests</classifier>
169                     <archive>
170                         <manifest>
171                             <mainClass>org.onap.aaf.cadi.configure.Agent</mainClass>
172                         </manifest>
173                         <manifestEntries>
174                             <Sealed>true</Sealed>
175                         </manifestEntries>
176                     </archive>
177                 </configuration>
178                 <executions>
179                     <execution>
180                         <id>full</id>
181                         <phase>package</phase>
182                         <goals>
183                             <goal>single</goal>
184                         </goals>
185                         <configuration>
186                             <descriptors>
187                                 <descriptor>src/assemble/cadi-aaf.xml</descriptor>
188                             </descriptors>
189                         </configuration>
190                     </execution>
191                 </executions>
192             </plugin>
193         </plugins>
194     </build>
195
196     <distributionManagement>
197         <repository>
198             <id>ecomp-releases</id>
199             <name>AAF Release Repository</name>
200             <url>${nexusproxy}${releaseNexusPath}</url>
201         </repository>
202         <snapshotRepository>
203             <id>ecomp-snapshots</id>
204             <name>AAF Snapshot Repository</name>
205             <url>${nexusproxy}${snapshotNexusPath}</url>
206         </snapshotRepository>
207         <site>
208             <id>ecomp-site</id>
209             <url>dav:${nexusproxy}${sitePath}</url>
210         </site>
211     </distributionManagement>
212 </project>