Update POMS for SONAR code coverage
[aaf/authz.git] / misc / 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         <groupId>org.onap.aaf.authz.misc</groupId>
26         <artifactId>parent</artifactId>
27         <name>AAF Misc Parent</name>
28         <version>1.3.0-SNAPSHOT</version>
29         <packaging>pom</packaging>
30
31         <parent>
32         <groupId>org.onap.oparent</groupId>
33         <artifactId>oparent</artifactId>
34         <version>1.1.0</version>
35     </parent>
36
37         <properties>
38         <jacocoVersion>0.7.6.201602180812</jacocoVersion>
39                 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
40                 <encoding>UTF-8</encoding>
41                 <sonar.exclusions>**/scripts/**/*,**.js</sonar.exclusions>
42                 <sonar.test.exclusions>**/test/**/*,**/tests/**/*</sonar.test.exclusions>
43                 <enforcer.skip>true</enforcer.skip>
44
45                 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
46                 <powermock.version>1.5.1</powermock.version>
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         </properties>
53
54
55
56         <developers>
57                 <developer>
58                         <name>Jonathan Gathman</name>
59                         <email>jonathan.gathman@att.com</email>
60                         <organization>ATT</organization>
61                         <roles>
62                                 <role>Architect</role>
63                                 <role>Lead Developer</role>
64                         </roles>
65                 </developer>
66                 <developer>
67                         <name>Gabe Maurer</name>
68                         <email>gabe.maurer@att.com</email>
69                         <organization>ATT</organization>
70                         <roles>
71                                 <role>Developer</role>
72                         </roles>
73                 </developer>
74                 <developer>
75                         <name>Ian Howell</name>
76                         <email>ian.howell@att.com</email>
77                         <organization>ATT</organization>
78                         <roles>
79                                 <role>Developer</role>
80                         </roles>
81                 </developer>
82                 <developer>
83                         <name>Sai Gandham</name>
84                         <email>sai.gandham@att.com</email>
85                         <organization>ATT</organization>
86                         <roles>
87                                 <role>Developer</role>
88                         </roles>
89                 </developer>
90         </developers>
91
92         <dependencies>
93                 <dependency>
94                         <groupId>org.mockito</groupId>
95                         <artifactId>mockito-all</artifactId>
96                         <version>1.9.5</version>
97                         <scope>test</scope>
98                 </dependency>
99
100                 <dependency>
101                         <groupId>org.powermock</groupId>
102                         <artifactId>powermock-module-junit4</artifactId>
103                         <version>${powermock.version}</version>
104                         <scope>test</scope>
105                 </dependency>
106                 <dependency>
107                         <groupId>org.powermock</groupId>
108                         <artifactId>powermock-api-mockito</artifactId>
109                         <version>${powermock.version}</version>
110                         <scope>test</scope>
111                 </dependency>
112                 <dependency>
113                         <groupId>junit</groupId>
114                         <artifactId>junit</artifactId>
115                         <version>4.10</version>
116                         <scope>test</scope>
117                 </dependency>
118         </dependencies>
119
120         <build>
121                 <testSourceDirectory>src/test/java</testSourceDirectory>
122                 <pluginManagement>
123                         <plugins>
124                                 <plugin>
125                                         <groupId>org.apache.maven.plugins</groupId>
126                                         <version>2.4</version>
127                                         <artifactId>maven-jar-plugin</artifactId>
128                                         <configuration>
129                                                 <outputDirectory>target</outputDirectory>
130                                         </configuration>
131                                 </plugin>
132
133                                 <plugin>
134                                         <inherited>true</inherited>
135                                         <groupId>org.apache.maven.plugins</groupId>
136                                         <artifactId>maven-compiler-plugin</artifactId>
137                                         <version>2.3.2</version>
138                                         <configuration>
139                                                 <source>1.7</source>
140                                                 <target>1.7</target>
141                                         </configuration>
142                                 </plugin>
143                                 <plugin>
144                                         <groupId>org.sonatype.plugins</groupId>
145                                         <artifactId>nexus-staging-maven-plugin</artifactId>
146                                         <version>1.6.7</version>
147                                         <extensions>true</extensions>
148                                         <configuration>
149                                                 <nexusUrl>${nexusproxy}</nexusUrl>
150                                                 <stagingProfileId>176c31dfe190a</stagingProfileId>
151                                                 <serverId>ecomp-staging</serverId>
152                                         </configuration>
153                                 </plugin>
154                                 <plugin>
155                                         <groupId>org.sonarsource.scanner.maven</groupId>
156                                         <artifactId>sonar-maven-plugin</artifactId>
157                                         <version>3.2</version>
158                                 </plugin>
159                                 <!-- Jacoco -->
160                                 <plugin>
161                                         <groupId>org.jacoco</groupId>
162                                         <artifactId>jacoco-maven-plugin</artifactId>
163                                         <version>${jacoco.version}</version>
164                                         <configuration>
165                                                 <excludes>
166                                                         <exclude>**/gen/**</exclude>
167                                                         <exclude>**/generated-sources/**</exclude>
168                                                         <exclude>**/yang-gen/**</exclude>
169                                                         <exclude>**/pax/**</exclude>
170                                                 </excludes>
171                                         </configuration>
172                                         <executions>
173                                                 <execution>
174                                                         <id>pre-unit-test</id>
175                                                         <goals>
176                                                                 <goal>prepare-agent</goal>
177                                                         </goals>
178                                                         <configuration>
179                                                                 <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
180                                                                 <propertyName>surefireArgLine</propertyName>
181                                                         </configuration>
182                                                 </execution>
183                                                 <execution>
184                                                         <id>post-unit-test</id>
185                                                         <phase>test</phase>
186                                                         <goals>
187                                                                 <goal>report</goal>
188                                                         </goals>
189                                                         <configuration>
190                                                                 <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
191                                                                 <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
192                                                         </configuration>
193                                                 </execution>
194                                                 <execution>
195                                                         <id>pre-integration-test</id>
196                                                         <phase>pre-integration-test</phase>
197                                                         <goals>
198                                                                 <goal>prepare-agent</goal>
199                                                         </goals>
200                                                         <configuration>
201                                                                 <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
202                                                                 <propertyName>failsafeArgLine</propertyName>
203                                                         </configuration>
204                                                 </execution>
205                                                 <execution>
206                                                         <id>post-integration-test</id>
207                                                         <phase>post-integration-test</phase>
208                                                         <goals>
209                                                                 <goal>report</goal>
210                                                         </goals>
211                                                         <configuration>
212                                                                 <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
213                                                                 <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
214                                                         </configuration>
215                                                 </execution>
216                                         </executions>
217                                 </plugin>
218
219                                 <plugin>
220                                         <groupId>org.apache.maven.plugins</groupId>
221                                         <artifactId>maven-surefire-plugin</artifactId>
222                                         <configuration>
223                                                 <systemPropertyVariables>
224                                                         <jacoco-agent.destfile>${project.build.directory}/code-coverage/jacoco-ut.exec</jacoco-agent.destfile>
225                                                 </systemPropertyVariables>
226                                         </configuration>
227                                 </plugin>
228                         </plugins>
229                 </pluginManagement>
230         </build>
231
232         <modules>
233                 <module>env</module>
234                 <module>xgen</module>
235                 <module>rosetta</module>
236                 <module>log4j</module> <!--  note: generates log4j, to avoid Jar conflict -->
237         </modules>
238
239         <dependencyManagement>
240                 <dependencies>
241                         <dependency>
242                                 <groupId>log4j</groupId>
243                                 <artifactId>log4j</artifactId>
244                                 <version>1.2.17</version>
245                         </dependency>
246                         <dependency>
247                                 <groupId>org.slf4j</groupId>
248                                 <artifactId>slf4j-log4j12</artifactId>
249                                 <version>1.7.5</version>
250                         </dependency>
251                 </dependencies>
252         </dependencyManagement>
253
254         <distributionManagement>
255                 <repository>
256                         <id>ecomp-releases</id>
257                         <name>AAF Release Repository</name>
258                         <url>${nexusproxy}${releaseNexusPath}</url>
259                 </repository>
260                 <snapshotRepository>
261                         <id>ecomp-snapshots</id>
262                         <name>AAF Snapshot Repository</name>
263                         <url>${nexusproxy}${snapshotNexusPath}</url>
264                 </snapshotRepository>
265                 <site>
266                         <id>ecomp-site</id>
267                         <url>dav:${nexusproxy}${sitePath}</url>
268                 </site>
269         </distributionManagement>
270 </project>