Modify deprecated sonar properties in AAF
[aaf/authz.git] / misc / env / 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.misc</groupId>
26                 <artifactId>parent</artifactId>
27                 <version>1.3.0-SNAPSHOT</version>
28                 <relativePath>..</relativePath>
29         </parent>
30
31         <modelVersion>4.0.0</modelVersion>
32         <artifactId>aaf-misc-env</artifactId>
33         <name>AAF Misc Env</name>
34         <packaging>jar</packaging>
35
36         <developers>
37                 <developer>
38                         <name>Jonathan Gathman</name>
39                         <email>jonathan.gathman@att.com</email>
40                         <organization>ATT</organization>
41                         <roles>
42                                 <role>Architect</role>
43                                 <role>Lead Developer</role>
44                         </roles>
45                 </developer>
46                 <developer>
47                         <name>Gabe Maurer</name>
48                         <email>gabe.maurer@att.com</email>
49                         <organization>ATT</organization>
50                         <roles>
51                                 <role>Developer</role>
52                         </roles>
53                 </developer>
54                 <developer>
55                         <name>Ian Howell</name>
56                         <email>ian.howell@att.com</email>
57                         <organization>ATT</organization>
58                         <roles>
59                                 <role>Developer</role>
60                         </roles>
61                 </developer>
62                 <developer>
63                         <name>Sai Gandham</name>
64                         <email>sai.gandham@att.com</email>
65                         <organization>ATT</organization>
66                         <roles>
67                                 <role>Developer</role>
68                         </roles>
69                 </developer>
70         </developers>
71
72         <properties>
73         <!--  SONAR  -->
74                  <jacoco.version>0.7.7.201606060606</jacoco.version>
75             <sonar-jacoco-listeners.version>3.2</sonar-jacoco-listeners.version>
76             <sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin>
77             <!-- Default Sonar configuration -->
78             <sonar.jacoco.reportPaths>target/code-coverage/jacoco-ut.exec</sonar.jacoco.reportPaths>
79             <sonar.jacoco.itReportPaths>target/code-coverage/jacoco-it.exec</sonar.jacoco.itReportPaths>
80             <!-- Note: This list should match jacoco-maven-plugin's exclusion list below -->
81             <sonar.exclusions>**/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/**</sonar.exclusions>
82                 <nexusproxy>https://nexus.onap.org</nexusproxy>
83                 <snapshotNexusPath>/content/repositories/snapshots/</snapshotNexusPath>
84                 <releaseNexusPath>/content/repositories/releases/</releaseNexusPath>
85                 <stagingNexusPath>/content/repositories/staging/</stagingNexusPath>
86                 <sitePath>/content/sites/site/org/onap/aaf/authz/${project.artifactId}/${project.version}</sitePath>
87         </properties>
88
89         <!-- ============================================================== -->
90         <!-- Define common plugins and make them available for all modules -->
91         <!-- ============================================================== -->
92         <build>
93                 <testSourceDirectory>src/test/java</testSourceDirectory>
94                 <plugins>
95                 </plugins>
96                 <pluginManagement>
97                         <plugins>
98                                 <plugin>
99                                         <inherited>true</inherited>
100                                         <groupId>org.apache.maven.plugins</groupId>
101                                         <artifactId>maven-compiler-plugin</artifactId>
102                                         <version>2.3.2</version>
103                                         <configuration>
104                                                 <source>1.7</source>
105                                                 <target>1.7</target>
106                                         </configuration>
107                                 </plugin>
108
109                                 <plugin>
110                                         <groupId>org.apache.maven.plugins</groupId>
111                                         <version>2.4</version>
112                                         <artifactId>maven-jar-plugin</artifactId>
113                                         <configuration>
114                                                 <outputDirectory>target</outputDirectory>
115                                                 <archive>
116                                                         <manifestEntries>
117                                                                 <Sealed>true</Sealed>
118                                                         </manifestEntries>
119                                                 </archive>
120                                         </configuration>
121                                 </plugin>
122
123                                 <!-- Define the javadoc plugin -->
124                                 <plugin>
125                                         <groupId>org.apache.maven.plugins</groupId>
126                                         <artifactId>maven-javadoc-plugin</artifactId>
127                                         <version>2.10</version>
128                                         <configuration>
129                                                 <excludePackageNames>org.opendaylight.*</excludePackageNames>
130                                         </configuration>
131                                 </plugin>
132
133                                 <plugin>
134                                         <artifactId>maven-release-plugin</artifactId>
135                                         <version>2.5.2</version>
136                                         <configuration>
137                                                 <goals>-s ${mvn.settings} deploy</goals>
138                                         </configuration>
139                                 </plugin>
140
141                                 <plugin>
142                                         <artifactId>maven-assembly-plugin</artifactId>
143                                         <version>2.5.5</version>
144                                 </plugin>
145
146                                 <plugin>
147                                         <groupId>org.apache.maven.plugins</groupId>
148                                         <artifactId>maven-deploy-plugin</artifactId>
149                                         <version>2.8.1</version>
150                                         <configuration>
151                                                 <skip>false</skip>
152                                         </configuration>
153
154                                 </plugin>
155
156                                 <plugin>
157                                         <groupId>org.apache.maven.plugins</groupId>
158                                         <artifactId>maven-dependency-plugin</artifactId>
159                                         <version>2.10</version>
160                                 </plugin>
161
162                                 <!-- Maven surefire plugin for testing -->
163                                 <plugin>
164                                         <artifactId>maven-surefire-plugin</artifactId>
165                                         <version>2.17</version>
166                                         <configuration>
167                                         </configuration>
168                                 </plugin>
169
170                                 <!--This plugin's configuration is used to store Eclipse m2e settings
171                                         only. It has no influence on the Maven build itself. -->
172                                 <plugin>
173                                         <groupId>org.eclipse.m2e</groupId>
174                                         <artifactId>lifecycle-mapping</artifactId>
175                                         <version>1.0.0</version>
176                                         <configuration>
177                                                 <lifecycleMappingMetadata>
178                                                         <pluginExecutions>
179                                                                 <pluginExecution>
180                                                                         <pluginExecutionFilter>
181                                                                                 <groupId>
182                                                                                         org.codehaus.mojo
183                                                                                 </groupId>
184                                                                                 <artifactId>
185                                                                                         jaxb2-maven-plugin
186                                                                                 </artifactId>
187                                                                                 <versionRange>
188                                                                                         [1.3,)
189                                                                                 </versionRange>
190                                                                                 <goals>
191                                                                                         <goal>xjc</goal>
192                                                                                 </goals>
193                                                                         </pluginExecutionFilter>
194                                                                         <action>
195                                                                                 <ignore />
196                                                                         </action>
197                                                                 </pluginExecution>
198                                                         </pluginExecutions>
199                                                 </lifecycleMappingMetadata>
200                                         </configuration>
201                                 </plugin>
202                                 <plugin>
203                                         <groupId>org.sonatype.plugins</groupId>
204                                         <artifactId>nexus-staging-maven-plugin</artifactId>
205                                         <version>1.6.7</version>
206                                         <extensions>true</extensions>
207                                         <configuration>
208                                                 <nexusUrl>${nexusproxy}</nexusUrl>
209                                                 <stagingProfileId>176c31dfe190a</stagingProfileId>
210                                                 <serverId>ecomp-staging</serverId>
211                                         </configuration>
212                                 </plugin>
213                                 <plugin>
214                                         <groupId>org.jacoco</groupId>
215                                         <artifactId>jacoco-maven-plugin</artifactId>
216                                         <version>${jacoco.version}</version>
217                                         <configuration>
218                                                 <excludes>
219                                                         <exclude>**/gen/**</exclude>
220                                                         <exclude>**/generated-sources/**</exclude>
221                                                         <exclude>**/yang-gen/**</exclude>
222                                                         <exclude>**/pax/**</exclude>
223                                                 </excludes>
224                                         </configuration>
225                                         <executions>
226                                                 <execution>
227                                                         <id>pre-unit-test</id>
228                                                         <goals>
229                                                                 <goal>prepare-agent</goal>
230                                                         </goals>
231                                                         <configuration>
232                                                                 <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
233                                                                 <propertyName>surefireArgLine</propertyName>
234                                                         </configuration>
235                                                 </execution>
236                                                 <execution>
237                                                         <id>post-unit-test</id>
238                                                         <phase>test</phase>
239                                                         <goals>
240                                                                 <goal>report</goal>
241                                                         </goals>
242                                                         <configuration>
243                                                                 <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
244                                                                 <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
245                                                         </configuration>
246                                                 </execution>
247                                                 <execution>
248                                                         <id>pre-integration-test</id>
249                                                         <phase>pre-integration-test</phase>
250                                                         <goals>
251                                                                 <goal>prepare-agent</goal>
252                                                         </goals>
253                                                         <configuration>
254                                                                 <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
255                                                                 <propertyName>failsafeArgLine</propertyName>
256                                                         </configuration>
257                                                 </execution>
258                                                 <execution>
259                                                         <id>post-integration-test</id>
260                                                         <phase>post-integration-test</phase>
261                                                         <goals>
262                                                                 <goal>report</goal>
263                                                         </goals>
264                                                         <configuration>
265                                                                 <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
266                                                                 <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
267                                                         </configuration>
268                                                 </execution>
269                                         </executions>
270                                 </plugin>
271                         </plugins>
272                 </pluginManagement>
273         </build>
274
275         <dependencies>
276                 <dependency>
277                         <groupId>log4j</groupId>
278                         <artifactId>log4j</artifactId>
279                         <scope>compile</scope> <!-- Provides scope only, in case other users prefer another Logging Implementation -->
280                 </dependency>
281         </dependencies>
282
283
284         <distributionManagement>
285                 <repository>
286                         <id>ecomp-releases</id>
287                         <name>AAF Release Repository</name>
288                         <url>${nexusproxy}${releaseNexusPath}</url>
289                 </repository>
290                 <snapshotRepository>
291                         <id>ecomp-snapshots</id>
292                         <name>AAF Snapshot Repository</name>
293                         <url>${nexusproxy}${snapshotNexusPath}</url>
294                 </snapshotRepository>
295                 <site>
296                         <id>ecomp-site</id>
297                         <url>dav:${nexusproxy}${sitePath}</url>
298                 </site>
299         </distributionManagement>
300 </project>
301