Fix sonar issues & modify deploy property
[aaf/authz.git] / auth / auth-hello / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- * ============LICENSE_START==================================================== 
3         * org.onap.aaf * =========================================================================== 
4         * Copyright (c) 2018 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.auth</groupId>
19                 <artifactId>parent</artifactId>
20                 <version>2.1.0-SNAPSHOT</version>
21                 <relativePath>../pom.xml</relativePath>
22         </parent>
23
24         <artifactId>aaf-auth-hello</artifactId>
25         <name>AAF Auth Hello Service</name>
26         <description>Hello Service Component for testing AAF Auth Access</description>
27
28         <properties>
29         <skipTests>false</skipTests>
30                 <!--  SONAR  -->
31                  <jacoco.version>0.7.7.201606060606</jacoco.version>
32             <sonar-jacoco-listeners.version>3.2</sonar-jacoco-listeners.version>
33             <sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin>
34             <!-- Default Sonar configuration -->
35             <sonar.jacoco.reportPath>target/code-coverage/jacoco-ut.exec</sonar.jacoco.reportPath>
36             <sonar.jacoco.itReportPath>target/code-coverage/jacoco-it.exec</sonar.jacoco.itReportPath>
37             <!-- Note: This list should match jacoco-maven-plugin's exclusion list below -->
38             <sonar.exclusions>**/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/**</sonar.exclusions>
39                 <nexusproxy>https://nexus.onap.org</nexusproxy>
40                 <snapshotNexusPath>/content/repositories/snapshots/</snapshotNexusPath>
41                 <releaseNexusPath>/content/repositories/releases/</releaseNexusPath>
42                 <stagingNexusPath>/content/repositories/staging/</stagingNexusPath>
43                 <sitePath>/content/sites/site/org/onap/aaf/authz/${project.artifactId}/${project.version}</sitePath>
44         </properties>
45
46         <dependencies>
47                 <dependency>
48                         <groupId>org.onap.aaf.authz.auth</groupId>
49                         <artifactId>aaf-auth-core</artifactId>
50                 </dependency>
51
52                 <dependency>
53                         <groupId>org.onap.aaf.authz.cadi</groupId>
54                         <artifactId>aaf-cadi-aaf</artifactId>
55                 </dependency>
56
57         </dependencies>
58
59         <build>
60                 <plugins>
61                         <plugin>
62                                 <groupId>org.apache.maven.plugins</groupId>
63                                 <artifactId>maven-jar-plugin</artifactId>
64                                 <configuration>
65                                         <includes>
66                                                 <include>**/*.class</include>
67                                         </includes>
68                                 </configuration>
69                                 <version>2.3.1</version>
70                         </plugin>
71
72                         <!--This plugin's configuration is used to store Eclipse m2e settings 
73                                 only. It has no influence on the Maven build itself. -->
74                         <plugin>
75                                 <groupId>org.apache.maven.plugins</groupId>
76                                 <artifactId>maven-deploy-plugin</artifactId>
77                                 <configuration>
78                                         <skip>false</skip>
79                                 </configuration>
80                         </plugin>
81                         <plugin>
82                                 <groupId>org.codehaus.mojo</groupId>
83                                 <artifactId>appassembler-maven-plugin</artifactId>
84                                 <configuration>
85                                         <programs>
86                                                 <program>
87                                                         <mainClass>org.onap.aaf.auth.hello.AAF_Hello</mainClass>
88                                                         <name>hello</name>
89                                                         <commandLineArguments>
90                                                                 <commandLineArgument>cadi_prop_files=${project.conf_dir}/org.osaaf.hello.props</commandLineArgument>
91                                                         </commandLineArguments>
92                                                 </program>
93                                         </programs>
94                                 </configuration>
95                         </plugin>
96                         <plugin>
97                                 <groupId>org.sonatype.plugins</groupId>
98                                 <artifactId>nexus-staging-maven-plugin</artifactId>
99                                 <version>1.6.7</version>
100                                 <extensions>true</extensions>
101                                 <configuration>
102                                         <nexusUrl>${nexusproxy}</nexusUrl>
103                                         <stagingProfileId>176c31dfe190a</stagingProfileId>
104                                         <serverId>ecomp-staging</serverId>
105                                 </configuration>
106                         </plugin>               
107                         <plugin>
108                                 <groupId>org.jacoco</groupId>
109                                 <artifactId>jacoco-maven-plugin</artifactId>
110                                 <version>0.7.7.201606060606</version>
111                                 <configuration>
112                                         <dumpOnExit>true</dumpOnExit>
113                                         <includes>
114                                                 <include>org.onap.aaf.*</include>
115                                         </includes>
116                                 </configuration>
117                                 <executions>
118                                         <execution>
119                                                 <id>pre-unit-test</id>
120                                                 <goals>
121                                                         <goal>prepare-agent</goal>
122                                                 </goals>
123                                                 <configuration>
124                                                         <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
125                                                         <!-- <append>true</append> -->
126                                                 </configuration>
127                                         </execution>
128                                         <execution>
129                                                 <id>pre-integration-test</id>
130                                                 <phase>pre-integration-test</phase>
131                                                 <goals>
132                                                         <goal>prepare-agent</goal>
133                                                 </goals>
134                                                 <configuration>
135                                                         <destFile>${project.build.directory}/coverage-reports/jacoco-it.exec</destFile>
136                                                         <!-- <append>true</append> -->
137                                                 </configuration>
138                                         </execution>
139                                         <execution>
140                         <goals>
141                             <goal>merge</goal>
142                         </goals>
143                         <phase>post-integration-test</phase>
144                         <configuration>
145                             <fileSets>
146                                 <fileSet implementation="org.apache.maven.shared.model.fileset.FileSet">
147                                     <directory>${project.build.directory}/coverage-reports</directory>
148                                     <includes>
149                                         <include>*.exec</include>
150                                     </includes>
151                                 </fileSet>
152                             </fileSets>
153                             <destFile>${project.build.directory}/jacoco-dev.exec</destFile>
154                         </configuration>
155                     </execution>
156                                 </executions>
157                         </plugin>
158                 </plugins>
159         </build>
160
161         <distributionManagement>
162                 <repository>
163                         <id>ecomp-releases</id>
164                         <name>AAF Release Repository</name>
165                         <url>${nexusproxy}${releaseNexusPath}</url>
166                 </repository>
167                 <snapshotRepository>
168                         <id>ecomp-snapshots</id>
169                         <name>AAF Snapshot Repository</name>
170                         <url>${nexusproxy}${snapshotNexusPath}</url>
171                 </snapshotRepository>
172                 <site>
173                         <id>ecomp-site</id>
174                         <url>dav:${nexusproxy}${sitePath}</url>
175                 </site>
176         </distributionManagement>
177 </project>