Update POMS for SONAR code coverage
[aaf/authz.git] / misc / rosetta / 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-rosetta</artifactId>
33         <name>AAF Misc Rosetta</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         <jacocoVersion>0.7.6.201602180812</jacocoVersion>
74                 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
75                 <encoding>UTF-8</encoding>
76                 <sonar.exclusions>**/scripts/**/*,**.js</sonar.exclusions>
77                 <sonar.test.exclusions>**/test/**/*,**/tests/**/*</sonar.test.exclusions>
78                 <enforcer.skip>true</enforcer.skip>
79
80                 <nexusproxy>https://nexus.onap.org</nexusproxy>
81                 <snapshotNexusPath>/content/repositories/snapshots/</snapshotNexusPath>
82                 <releaseNexusPath>/content/repositories/releases/</releaseNexusPath>
83                 <stagingNexusPath>/content/repositories/staging/</stagingNexusPath>
84                 <sitePath>/content/sites/site/org/onap/aaf/authz/${project.artifactId}/${project.version}</sitePath>
85         </properties>
86
87         <dependencies>
88                 <dependency>
89                         <groupId>org.onap.aaf.authz.misc</groupId>
90                         <artifactId>aaf-misc-env</artifactId>
91                         <version>${project.version}</version>
92                 </dependency>
93         </dependencies>
94
95         <build>
96                 <plugins>
97                         <plugin>
98                                 <groupId>org.jvnet.jaxb2.maven2</groupId>
99                                 <artifactId>maven-jaxb2-plugin</artifactId>
100                                 <version>0.8.2</version>
101                                 <executions>
102                                         <execution>
103                                                 <goals>
104                                                         <goal>generate</goal>
105                                                 </goals>
106                                         </execution>
107                                 </executions>
108                                 <configuration>
109                                         <schemaDirectory>src/main/xsd</schemaDirectory>
110                                 </configuration>
111                         </plugin>
112                         <plugin>
113                                 <groupId>org.sonatype.plugins</groupId>
114                                 <artifactId>nexus-staging-maven-plugin</artifactId>
115                                 <version>1.6.7</version>
116                                 <extensions>true</extensions>
117                                 <configuration>
118                                         <nexusUrl>${nexusproxy}</nexusUrl>
119                                         <stagingProfileId>176c31dfe190a</stagingProfileId>
120                                         <serverId>ecomp-staging</serverId>
121                                 </configuration>
122                         </plugin>
123                         <plugin>
124                                 <groupId>org.sonarsource.scanner.maven</groupId>
125                                 <artifactId>sonar-maven-plugin</artifactId>
126                                 <version>3.2</version>
127                         </plugin>
128                         <!-- Jacoco -->
129                         <plugin>
130                                 <groupId>org.jacoco</groupId>
131                                 <artifactId>jacoco-maven-plugin</artifactId>
132                                 <version>${jacoco.version}</version>
133                                 <configuration>
134                                         <excludes>
135                                                 <exclude>**/gen/**</exclude>
136                                                 <exclude>**/generated-sources/**</exclude>
137                                                 <exclude>**/yang-gen/**</exclude>
138                                                 <exclude>**/pax/**</exclude>
139                                         </excludes>
140                                 </configuration>
141                                 <executions>
142                                         <execution>
143                                                 <id>pre-unit-test</id>
144                                                 <goals>
145                                                         <goal>prepare-agent</goal>
146                                                 </goals>
147                                                 <configuration>
148                                                         <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
149                                                         <propertyName>surefireArgLine</propertyName>
150                                                 </configuration>
151                                         </execution>
152                                         <execution>
153                                                 <id>post-unit-test</id>
154                                                 <phase>test</phase>
155                                                 <goals>
156                                                         <goal>report</goal>
157                                                 </goals>
158                                                 <configuration>
159                                                         <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
160                                                         <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
161                                                 </configuration>
162                                         </execution>
163                                         <execution>
164                                                 <id>pre-integration-test</id>
165                                                 <phase>pre-integration-test</phase>
166                                                 <goals>
167                                                         <goal>prepare-agent</goal>
168                                                 </goals>
169                                                 <configuration>
170                                                         <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
171                                                         <propertyName>failsafeArgLine</propertyName>
172                                                 </configuration>
173                                         </execution>
174                                         <execution>
175                                                 <id>post-integration-test</id>
176                                                 <phase>post-integration-test</phase>
177                                                 <goals>
178                                                         <goal>report</goal>
179                                                 </goals>
180                                                 <configuration>
181                                                         <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
182                                                         <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
183                                                 </configuration>
184                                         </execution>
185                                 </executions>
186                         </plugin>
187
188                         <plugin>
189                                 <groupId>org.apache.maven.plugins</groupId>
190                                 <artifactId>maven-surefire-plugin</artifactId>
191                                 <configuration>
192                                         <systemPropertyVariables>
193                                                 <jacoco-agent.destfile>${project.build.directory}/code-coverage/jacoco-ut.exec</jacoco-agent.destfile>
194                                         </systemPropertyVariables>
195                                 </configuration>
196                         </plugin>
197                 </plugins>
198
199         </build>
200
201         <distributionManagement>
202                 <repository>
203                         <id>ecomp-releases</id>
204                         <name>AAF Release Repository</name>
205                         <url>${nexusproxy}${releaseNexusPath}</url>
206                 </repository>
207                 <snapshotRepository>
208                         <id>ecomp-snapshots</id>
209                         <name>AAF Snapshot Repository</name>
210                         <url>${nexusproxy}${snapshotNexusPath}</url>
211                 </snapshotRepository>
212                 <site>
213                         <id>ecomp-site</id>
214                         <url>dav:${nexusproxy}${sitePath}</url>
215                 </site>
216         </distributionManagement>
217
218 </project>