Fix sonar issues & modify deploy property
[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                                 <!-- Override OParent version -->
164                                 <version>${jacocoVersion}</version>
165                                 <executions>
166                                         <!-- disable jacoco executions from oparent -->
167                                         <execution>
168                                                 <id>pre-unit-test</id>
169                                                 <phase>none</phase>
170                                         </execution>
171                                         <execution>
172                                                 <id>post-unit-test</id>
173                                                 <phase>none</phase>
174                                         </execution>
175                                         <execution>
176                                                 <id>pre-integration-test</id>
177                                                 <phase>none</phase>
178                                         </execution>
179                                         <execution>
180                                                 <id>post-integration-test</id>
181                                                 <phase>none</phase>
182                                         </execution>
183                                         <!-- Order matters -->
184                                         <execution>
185                                                 <id>portal-prepare-agent</id>
186                                                 <goals>
187                                                         <goal>prepare-agent</goal>
188                                                 </goals>
189                                                 <configuration>
190                                                         <destFile>${sonar.jacoco.reportPath}</destFile>
191                                                 </configuration>
192                                         </execution>
193                                         <!-- offline instrumentation for PowerMock -->
194                                         <execution>
195                                                 <id>portal-offline-instrument</id>
196                                                 <goals>
197                                                         <goal>instrument</goal>
198                                                 </goals>
199                                         </execution>
200                                         <execution>
201                                                 <id>portal-restore-instrumented-classes</id>
202                                                 <phase>test</phase>
203                                                 <goals>
204                                                         <goal>restore-instrumented-classes</goal>
205                                                 </goals>
206                                         </execution>
207                                         <execution>
208                                                 <id>portal-post-unit-test</id>
209                                                 <phase>test</phase>
210                                                 <goals>
211                                                         <goal>report</goal>
212                                                 </goals>
213                                                 <configuration>
214                                                         <dataFile>${sonar.jacoco.reportPath}</dataFile>
215                                                         <outputDirectory>${project.basedir}/target/site/jacoco</outputDirectory>
216                                                 </configuration>
217                                         </execution>
218                                 </executions>
219                         </plugin>
220
221                         <plugin>
222                                 <groupId>org.apache.maven.plugins</groupId>
223                                 <artifactId>maven-surefire-plugin</artifactId>
224                                 <configuration>
225                                         <systemPropertyVariables>
226                                                 <jacoco-agent.destfile>${project.build.directory}/code-coverage/jacoco-ut.exec</jacoco-agent.destfile>
227                                         </systemPropertyVariables>
228                                 </configuration>
229                         </plugin>
230                         </plugins>
231                 </pluginManagement>
232         </build>
233
234         <modules>
235                 <module>env</module>
236                 <module>xgen</module>
237                 <module>rosetta</module>
238                 <module>log4j</module> <!--  note: generates log4j, to avoid Jar conflict -->
239         </modules>
240
241         <dependencyManagement>
242                 <dependencies>
243                         <dependency>
244                                 <groupId>log4j</groupId>
245                                 <artifactId>log4j</artifactId>
246                                 <version>1.2.17</version>
247                         </dependency>
248                         <dependency>
249                                 <groupId>org.slf4j</groupId>
250                                 <artifactId>slf4j-log4j12</artifactId>
251                                 <version>1.7.5</version>
252                         </dependency>
253                 </dependencies>
254         </dependencyManagement>
255         
256         <distributionManagement>
257                 <repository>
258                         <id>ecomp-releases</id>
259                         <name>AAF Release Repository</name>
260                         <url>${nexusproxy}${releaseNexusPath}</url>
261                 </repository>
262                 <snapshotRepository>
263                         <id>ecomp-snapshots</id>
264                         <name>AAF Snapshot Repository</name>
265                         <url>${nexusproxy}${snapshotNexusPath}</url>
266                 </snapshotRepository>
267                 <site>
268                         <id>ecomp-site</id>
269                         <url>dav:${nexusproxy}${sitePath}</url>
270                 </site>
271         </distributionManagement>
272 </project>