Create and prepare non-deploy release 2.7.1
[aaf/authz.git] / auth / auth-oauth / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- * ============LICENSE_START==================================================== 
3     * org.onap.aaf * =========================================================================== 
4     * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. * =========================================================================== 
5     * Licensed under the Apache License, Version 2.0 (the "License"); * you may 
6     not use this file except in compliance with the License. * You may obtain 
7     a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * 
8     * Unless required by applicable law or agreed to in writing, software * distributed 
9     under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 
10     OR CONDITIONS OF ANY KIND, either express or implied. * See the License for 
11     the specific language governing permissions and * limitations under the License. 
12     * ============LICENSE_END==================================================== 
13     * -->
14 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
15     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
16     <modelVersion>4.0.0</modelVersion>
17     <parent>
18         <groupId>org.onap.aaf.authz</groupId>
19         <artifactId>authparent</artifactId>
20         <version>2.7.1-SNAPSHOT</version>
21         <relativePath>../pom.xml</relativePath>
22     </parent>
23
24     <artifactId>aaf-auth-oauth</artifactId>
25     <name>AAF Auth OAuth Service</name>
26     <description>OAuth Component for AAF Auth</description>
27
28     <properties>
29         <project.swmVersion>25</project.swmVersion>
30         <!-- SONAR -->
31         <!-- <sonar.skip>true</sonar.skip> -->
32         <jacoco.version>0.7.7.201606060606</jacoco.version>
33         <sonar-jacoco-listeners.version>3.2</sonar-jacoco-listeners.version>
34         <sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin>
35         <!-- Default Sonar configuration -->
36         <sonar.jacoco.reportPaths>target/code-coverage/jacoco-ut.exec</sonar.jacoco.reportPaths>
37         <sonar.jacoco.itReportPaths>target/code-coverage/jacoco-it.exec</sonar.jacoco.itReportPaths>
38         <!-- Note: This list should match jacoco-maven-plugin's exclusion list 
39             below -->
40         <sonar.exclusions>**/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/**</sonar.exclusions>
41         <nexusproxy>https://nexus.onap.org</nexusproxy>
42         <snapshotNexusPath>/content/repositories/snapshots/</snapshotNexusPath>
43         <releaseNexusPath>/content/repositories/releases/</releaseNexusPath>
44         <stagingNexusPath>/content/repositories/staging/</stagingNexusPath>
45         <sitePath>/content/sites/site/org/onap/aaf/authz/${project.artifactId}/${project.version}</sitePath>
46     </properties>
47
48     <dependencies>
49         <dependency>
50             <groupId>org.onap.aaf.authz</groupId>
51             <artifactId>aaf-auth-core</artifactId>
52         </dependency>
53
54         <dependency>
55             <groupId>org.onap.aaf.authz</groupId>
56             <artifactId>aaf-auth-cass</artifactId>
57         </dependency>
58
59         <dependency>
60             <groupId>org.onap.aaf.authz</groupId>
61             <artifactId>aaf-cadi-aaf</artifactId>
62         </dependency>
63     </dependencies>
64
65     <build>
66         <plugins>
67             <plugin>
68                 <groupId>org.apache.maven.plugins</groupId>
69                 <artifactId>maven-jar-plugin</artifactId>
70                 <configuration>
71                     <includes>
72                         <include>**/*.class</include>
73                     </includes>
74                 </configuration>
75                 <version>2.3.1</version>
76             </plugin>
77             <plugin>
78                 <groupId>org.codehaus.mojo</groupId>
79                 <artifactId>appassembler-maven-plugin</artifactId>
80                 <configuration>
81                     <programs>
82                         <program>
83                             <mainClass>org.onap.aaf.auth.oauth.AAF_OAuth</mainClass>
84                             <name>oauth</name>
85                             <commandLineArguments>
86                                 <commandLineArgument>cadi_prop_files=${project.ext_root_dir}/etc/org.osaaf.aaf.oauth.props</commandLineArgument>
87                                 <commandLineArgument>cadi_log_dir=${project.ext_root_dir}/logs/oauth</commandLineArgument>
88                                 <commandLineArgument>cadi_etc_dir=${project.ext_root_dir}/etc</commandLineArgument>
89                             </commandLineArguments>
90                         </program>
91                     </programs>
92                 </configuration>
93             </plugin>
94             <plugin>
95                 <groupId>org.jacoco</groupId>
96                 <artifactId>jacoco-maven-plugin</artifactId>
97                 <configuration>
98                     <excludes>
99                         <exclude>**/gen/**</exclude>
100                         <exclude>**/generated-sources/**</exclude>
101                         <exclude>**/yang-gen/**</exclude>
102                         <exclude>**/pax/**</exclude>
103                     </excludes>
104                 </configuration>
105                 <executions>
106
107                     <execution>
108                         <id>pre-unit-test</id>
109                         <goals>
110                             <goal>prepare-agent</goal>
111                         </goals>
112                         <configuration>
113                             <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
114                             <propertyName>surefireArgLine</propertyName>
115                         </configuration>
116                     </execution>
117
118
119                     <execution>
120                         <id>post-unit-test</id>
121                         <phase>test</phase>
122                         <goals>
123                             <goal>report</goal>
124                         </goals>
125                         <configuration>
126                             <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
127                             <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
128                         </configuration>
129                     </execution>
130                     <execution>
131                         <id>pre-integration-test</id>
132                         <phase>pre-integration-test</phase>
133                         <goals>
134                             <goal>prepare-agent</goal>
135                         </goals>
136                         <configuration>
137                             <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
138                             <propertyName>failsafeArgLine</propertyName>
139                         </configuration>
140                     </execution>
141
142                     <execution>
143                         <id>post-integration-test</id>
144                         <phase>post-integration-test</phase>
145                         <goals>
146                             <goal>report</goal>
147                         </goals>
148                         <configuration>
149                             <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
150                             <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
151                         </configuration>
152                     </execution>
153                 </executions>
154             </plugin>
155         </plugins>
156     </build>
157
158     <distributionManagement>
159         <repository>
160             <id>ecomp-releases</id>
161             <name>AAF Release Repository</name>
162             <url>${nexusproxy}${releaseNexusPath}</url>
163         </repository>
164         <snapshotRepository>
165             <id>ecomp-snapshots</id>
166             <name>AAF Snapshot Repository</name>
167             <url>${nexusproxy}${snapshotNexusPath}</url>
168         </snapshotRepository>
169         <site>
170             <id>ecomp-site</id>
171             <url>dav:${nexusproxy}${sitePath}</url>
172         </site>
173     </distributionManagement>
174
175 </project>