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