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