Fix sonar issues & modify deploy property
[aaf/authz.git] / auth / auth-service / 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/maven-v4_0_0.xsd">
24         <modelVersion>4.0.0</modelVersion>
25         <parent>
26                 <groupId>org.onap.aaf.authz.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-service</artifactId>
33         <name>AAF Auth Service</name>
34         <description>Core API Component for AAF Auth</description>
35
36         <properties>
37                 <maven.test.failure.ignore>true</maven.test.failure.ignore>
38                 <!--  SONAR  -->
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.reportPath>target/code-coverage/jacoco-ut.exec</sonar.jacoco.reportPath>
44             <sonar.jacoco.itReportPath>target/code-coverage/jacoco-it.exec</sonar.jacoco.itReportPath>
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                 
53         </properties>
54
55         <dependencies>
56                 <dependency>
57                         <groupId>org.onap.aaf.authz.auth</groupId>
58                         <artifactId>aaf-auth-client</artifactId>
59                 </dependency>
60
61                 <dependency>
62                         <groupId>org.onap.aaf.authz.auth</groupId>
63                         <artifactId>aaf-auth-core</artifactId>
64                 </dependency>
65
66                 <!-- Add the Organizations you wish to support. You can delete ONAP if 
67                         you have something else Match with Property Entry: Organization.<root ns>, 
68                         i.e. Organization.onap.org=org.onap.org.DefaultOrg -->
69                 <dependency>
70                         <groupId>org.onap.aaf.authz.auth</groupId>
71                         <artifactId>aaf-auth-deforg</artifactId>
72                 </dependency>
73
74                 <dependency>
75                         <groupId>org.onap.aaf.authz.auth</groupId>
76                         <artifactId>aaf-auth-cass</artifactId>
77                 </dependency>
78
79                 <dependency>
80                         <groupId>org.onap.aaf.authz.auth</groupId>
81                         <artifactId>aaf-auth-oauth</artifactId>
82                 </dependency>
83
84                 <dependency>
85                         <groupId>org.onap.aaf.authz.misc</groupId>
86                         <artifactId>aaf-misc-rosetta</artifactId>
87                 </dependency>
88
89                 <dependency>
90                         <groupId>org.onap.aaf.authz.cadi</groupId>
91                         <artifactId>aaf-cadi-aaf</artifactId>
92                 </dependency>
93
94                 <dependency>
95                         <groupId>org.eclipse.jetty</groupId>
96                         <artifactId>jetty-servlet</artifactId>
97                 </dependency>
98
99                 <dependency>
100                         <groupId>org.slf4j</groupId>
101                         <artifactId>slf4j-log4j12</artifactId>
102                 </dependency>
103
104         </dependencies>
105
106         <build>
107                 <plugins>
108                         <plugin>
109                                 <groupId>org.apache.maven.plugins</groupId>
110                                 <artifactId>maven-jar-plugin</artifactId>
111                                 <configuration>
112                                         <excludes>
113                                                 <exclude>*.properties</exclude>
114                                         </excludes>
115                                 </configuration>
116                                 <version>2.3.1</version>
117                         </plugin>
118                         <plugin>
119                                 <groupId>org.apache.maven.plugins</groupId>
120                                 <artifactId>maven-deploy-plugin</artifactId>
121                                 <configuration>
122                                         <skip>false</skip>
123                                 </configuration>
124                         </plugin>
125                         <plugin>
126                                 <groupId>org.codehaus.mojo</groupId>
127                                 <artifactId>appassembler-maven-plugin</artifactId>
128                                 <configuration>
129                                         <programs>
130                                                 <program>
131                                                         <mainClass>org.onap.aaf.auth.service.AAF_Service</mainClass>
132                                                         <name>service</name>
133                                                         <commandLineArguments>
134                                                                 <commandLineArgument>cadi_prop_files=${project.conf_dir}/org.osaaf.service.props</commandLineArgument>
135                                                         </commandLineArguments>
136                                                 </program>
137                                         </programs>
138                                 </configuration>
139                         </plugin>
140                         <plugin>
141                                 <groupId>org.sonatype.plugins</groupId>
142                                 <artifactId>nexus-staging-maven-plugin</artifactId>
143                                 <version>1.6.7</version>
144                                 <extensions>true</extensions>
145                                 <configuration>
146                                         <nexusUrl>${nexusproxy}</nexusUrl>
147                                         <stagingProfileId>176c31dfe190a</stagingProfileId>
148                                         <serverId>ecomp-staging</serverId>
149                                 </configuration>
150                         </plugin>               
151                         <plugin>
152                                 <groupId>org.jacoco</groupId>
153                                 <artifactId>jacoco-maven-plugin</artifactId>
154                                 <version>0.7.7.201606060606</version>
155                                 <configuration>
156                                         <dumpOnExit>true</dumpOnExit>
157                                         <includes>
158                                                 <include>org.onap.aaf.*</include>
159                                         </includes>
160                                 </configuration>
161                                 <executions>
162                                         <execution>
163                                                 <id>pre-unit-test</id>
164                                                 <goals>
165                                                         <goal>prepare-agent</goal>
166                                                 </goals>
167                                                 <configuration>
168                                                         <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
169                                                         <!-- <append>true</append> -->
170                                                 </configuration>
171                                         </execution>
172                                         <execution>
173                                                 <id>pre-integration-test</id>
174                                                 <phase>pre-integration-test</phase>
175                                                 <goals>
176                                                         <goal>prepare-agent</goal>
177                                                 </goals>
178                                                 <configuration>
179                                                         <destFile>${project.build.directory}/coverage-reports/jacoco-it.exec</destFile>
180                                                         <!-- <append>true</append> -->
181                                                 </configuration>
182                                         </execution>
183                                         <execution>
184                         <goals>
185                             <goal>merge</goal>
186                         </goals>
187                         <phase>post-integration-test</phase>
188                         <configuration>
189                             <fileSets>
190                                 <fileSet implementation="org.apache.maven.shared.model.fileset.FileSet">
191                                     <directory>${project.build.directory}/coverage-reports</directory>
192                                     <includes>
193                                         <include>*.exec</include>
194                                     </includes>
195                                 </fileSet>
196                             </fileSets>
197                             <destFile>${project.build.directory}/jacoco-dev.exec</destFile>
198                         </configuration>
199                     </execution>
200                                 </executions>
201                         </plugin>
202                         <!--  plugin> 
203                                 <groupId>com.spotify</groupId>
204                                 <artifactId>docker-maven-plugin</artifactId>
205                         </plugin -->    
206                 </plugins>
207         </build>
208         
209         <distributionManagement>
210                 <repository>
211                         <id>ecomp-releases</id>
212                         <name>AAF Release Repository</name>
213                         <url>${nexusproxy}${releaseNexusPath}</url>
214                 </repository>
215                 <snapshotRepository>
216                         <id>ecomp-snapshots</id>
217                         <name>AAF Snapshot Repository</name>
218                         <url>${nexusproxy}${snapshotNexusPath}</url>
219                 </snapshotRepository>
220                 <site>
221                         <id>ecomp-site</id>
222                         <url>dav:${nexusproxy}${sitePath}</url>
223                 </site>
224         </distributionManagement>
225
226 </project>