Add deploy plugin & enable tests
[aaf/authz.git] / auth / auth-core / 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         <modelVersion>4.0.0</modelVersion>
25         <parent>
26                 <groupId>org.onap.aaf.auth</groupId>
27                 <artifactId>parent</artifactId>
28                 <version>2.1.0-SNAPSHOT</version>
29                 <relativePath>../pom.xml</relativePath>
30         </parent>
31
32         <artifactId>aaf-auth-core</artifactId>
33         <name>AAF Auth Core</name>
34         <description>Core Library for AAF Auth Components</description>
35         <packaging>jar</packaging>
36
37         <developers>
38                 <developer>
39                         <name>Jonathan Gathman</name>
40                         <email>jonathan.gathman@att.com</email>
41                         <organization>ATT</organization>
42                         <roles>
43                                 <role>Architect</role>
44                                 <role>Lead Developer</role>
45                         </roles>
46                 </developer>
47                 <developer>
48                         <name>Gabe Maurer</name>
49                         <email>gabe.maurer@att.com</email>
50                         <organization>ATT</organization>
51                         <roles>
52                                 <role>Developer</role>
53                         </roles>
54                 </developer>
55                 <developer>
56                         <name>Ian Howell</name>
57                         <email>ian.howell@att.com</email>
58                         <organization>ATT</organization>
59                         <roles>
60                                 <role>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         <properties>
75         <skipTests>true</skipTests>
76                 <!--  SONAR  -->
77                  <jacoco.version>0.7.7.201606060606</jacoco.version>
78             <sonar-jacoco-listeners.version>3.2</sonar-jacoco-listeners.version>
79             <sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin>
80             <!-- Default Sonar configuration -->
81             <sonar.jacoco.reportPath>target/code-coverage/jacoco-ut.exec</sonar.jacoco.reportPath>
82             <sonar.jacoco.itReportPath>target/code-coverage/jacoco-it.exec</sonar.jacoco.itReportPath>
83             <!-- Note: This list should match jacoco-maven-plugin's exclusion list below -->
84             <sonar.exclusions>**/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/**</sonar.exclusions>
85                 <nexusproxy>https://nexus.onap.org</nexusproxy>
86                 <snapshotNexusPath>/content/repositories/snapshots/</snapshotNexusPath>
87                 <releaseNexusPath>/content/repositories/releases/</releaseNexusPath>
88                 <stagingNexusPath>/content/repositories/staging/</stagingNexusPath>
89                 <sitePath>/content/sites/site/org/onap/aaf/authz/${project.artifactId}/${project.version}</sitePath>
90         </properties>
91         
92         <dependencies>
93                 <dependency>
94                         <groupId>org.onap.aaf.misc</groupId>
95                         <artifactId>aaf-misc-env</artifactId>
96                 </dependency>
97                 <dependency>
98                         <groupId>org.onap.aaf.cadi</groupId>
99                         <artifactId>aaf-cadi-aaf</artifactId>
100                 </dependency>
101
102                 <dependency>
103                         <groupId>javax.servlet</groupId>
104                         <artifactId>servlet-api</artifactId>
105                 </dependency>
106
107                 <dependency>
108                         <groupId>org.onap.aaf.misc</groupId>
109                         <artifactId>aaf-misc-log4j</artifactId>
110                 </dependency>
111
112                 <dependency>
113                         <groupId>org.onap.aaf.cadi</groupId>
114                         <artifactId>aaf-cadi-core</artifactId>
115                 </dependency>
116
117                 <dependency>
118                         <groupId>org.eclipse.jetty</groupId>
119                         <artifactId>jetty-servlet</artifactId>
120                         <scope>compile</scope>
121                 </dependency>
122
123                 <dependency>
124                         <groupId>org.eclipse.jetty</groupId>
125                         <artifactId>jetty-jmx</artifactId>
126                         <scope>compile</scope>
127                 </dependency>
128         </dependencies>
129         
130         <build>
131             <plugins>
132                 <plugin>
133                                 <groupId>org.apache.maven.plugins</groupId>
134                                 <artifactId>maven-deploy-plugin</artifactId>
135                                 <configuration>
136                                         <skip>true</skip>
137                                 </configuration>
138                         </plugin>
139                 <plugin>
140                                 <groupId>org.sonatype.plugins</groupId>
141                                 <artifactId>nexus-staging-maven-plugin</artifactId>
142                                 <version>1.6.7</version>
143                                 <extensions>true</extensions>
144                                 <configuration>
145                                         <nexusUrl>${nexusproxy}</nexusUrl>
146                                         <stagingProfileId>176c31dfe190a</stagingProfileId>
147                                         <serverId>ecomp-staging</serverId>
148                                 </configuration>
149                         </plugin>               
150                         <plugin>
151                                 <groupId>org.jacoco</groupId>
152                                 <artifactId>jacoco-maven-plugin</artifactId>
153                                 <version>0.7.7.201606060606</version>
154                                 <configuration>
155                                         <dumpOnExit>true</dumpOnExit>
156                                         <includes>
157                                                 <include>org.onap.aaf.*</include>
158                                         </includes>
159                                 </configuration>
160                                 <executions>
161                                         <execution>
162                                                 <id>pre-unit-test</id>
163                                                 <goals>
164                                                         <goal>prepare-agent</goal>
165                                                 </goals>
166                                                 <configuration>
167                                                         <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
168                                                         <!-- <append>true</append> -->
169                                                 </configuration>
170                                         </execution>
171                                         <execution>
172                                                 <id>pre-integration-test</id>
173                                                 <phase>pre-integration-test</phase>
174                                                 <goals>
175                                                         <goal>prepare-agent</goal>
176                                                 </goals>
177                                                 <configuration>
178                                                         <destFile>${project.build.directory}/coverage-reports/jacoco-it.exec</destFile>
179                                                         <!-- <append>true</append> -->
180                                                 </configuration>
181                                         </execution>
182                                         <execution>
183                         <goals>
184                             <goal>merge</goal>
185                         </goals>
186                         <phase>post-integration-test</phase>
187                         <configuration>
188                             <fileSets>
189                                 <fileSet implementation="org.apache.maven.shared.model.fileset.FileSet">
190                                     <directory>${project.build.directory}/coverage-reports</directory>
191                                     <includes>
192                                         <include>*.exec</include>
193                                     </includes>
194                                 </fileSet>
195                             </fileSets>
196                             <destFile>${project.build.directory}/jacoco-dev.exec</destFile>
197                         </configuration>
198                     </execution>
199                                 </executions>
200                         </plugin>
201            </plugins>
202         </build>
203         <distributionManagement>
204                 <repository>
205                         <id>ecomp-releases</id>
206                         <name>AAF Release Repository</name>
207                         <url>${nexusproxy}${releaseNexusPath}</url>
208                 </repository>
209                 <snapshotRepository>
210                         <id>ecomp-snapshots</id>
211                         <name>AAF Snapshot Repository</name>
212                         <url>${nexusproxy}${snapshotNexusPath}</url>
213                 </snapshotRepository>
214                 <site>
215                         <id>ecomp-site</id>
216                         <url>dav:${nexusproxy}${sitePath}</url>
217                 </site>
218         </distributionManagement>
219 </project>
220