Create and prepare non-deploy release 2.7.1
[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.7.1-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>Sai Gandham</name>
67             <email>sai.gandham@att.com</email>
68             <organization>ATT</organization>
69             <roles>
70                 <role>Developer</role>
71             </roles>
72         </developer>
73     </developers>
74
75     <!-- ============================================================== -->
76     <!-- Define common plugins and make them available for all modules -->
77     <!-- ============================================================== -->
78     <build>
79         <testSourceDirectory>src/test/java</testSourceDirectory>
80         <plugins>
81         </plugins>
82         <pluginManagement>
83             <plugins>
84                 <plugin>
85                     <inherited>true</inherited>
86                     <groupId>org.apache.maven.plugins</groupId>
87                     <artifactId>maven-compiler-plugin</artifactId>
88                     <version>2.3.2</version>
89                     <configuration>
90                         <source>1.7</source>
91                         <target>1.7</target>
92                     </configuration>
93                 </plugin>
94
95                 <plugin>
96                     <groupId>org.apache.maven.plugins</groupId>
97                     <version>2.4</version>
98                     <artifactId>maven-jar-plugin</artifactId>
99                     <configuration>
100                         <outputDirectory>target</outputDirectory>
101                         <archive>
102                             <manifestEntries>
103                                 <Sealed>true</Sealed>
104                             </manifestEntries>
105                         </archive>
106                     </configuration>
107                 </plugin>
108
109                 <!-- Define the javadoc plugin -->
110                 <plugin>
111                     <groupId>org.apache.maven.plugins</groupId>
112                     <artifactId>maven-javadoc-plugin</artifactId>
113                     <version>2.10</version>
114                     <configuration>
115                         <excludePackageNames>org.opendaylight.*</excludePackageNames>
116                     </configuration>
117                 </plugin>
118
119                 <plugin>
120                     <artifactId>maven-release-plugin</artifactId>
121                     <version>2.5.2</version>
122                     <configuration>
123                         <goals>-s ${mvn.settings} deploy</goals>
124                         <skipTests>false</skipTests>
125                         <includes>
126                             <include>**/JU*.java</include>
127                         </includes>
128                         <excludes>
129                         </excludes>
130                         <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
131                         <propertyName>surefireArgLine</propertyName>
132                     </configuration>
133                 </plugin>
134
135                 <plugin>
136                     <artifactId>maven-assembly-plugin</artifactId>
137                     <version>2.5.5</version>
138                 </plugin>
139
140                 <plugin>
141                     <groupId>org.apache.maven.plugins</groupId>
142                     <artifactId>maven-dependency-plugin</artifactId>
143                     <version>2.10</version>
144                 </plugin>
145
146                 <!-- Maven surefire plugin for testing -->
147                 <plugin>
148                     <artifactId>maven-surefire-plugin</artifactId>
149                     <version>2.17</version>
150                     <configuration>
151                         <skipTests>false</skipTests>
152                         <includes>
153                             <include>**/JU*.java</include>
154                         </includes>
155                         <excludes>
156                         </excludes>
157                     </configuration>
158                 </plugin>
159
160                 <!--This plugin's configuration is used to store Eclipse m2e settings
161                     only. It has no influence on the Maven build itself. -->
162                 <plugin>
163                     <groupId>org.eclipse.m2e</groupId>
164                     <artifactId>lifecycle-mapping</artifactId>
165                     <version>1.0.0</version>
166                     <configuration>
167                         <lifecycleMappingMetadata>
168                             <pluginExecutions>
169                                 <pluginExecution>
170                                     <pluginExecutionFilter>
171                                         <groupId>
172                                             org.codehaus.mojo
173                                         </groupId>
174                                         <artifactId>
175                                             jaxb2-maven-plugin
176                                         </artifactId>
177                                         <versionRange>
178                                             [1.3,)
179                                         </versionRange>
180                                         <goals>
181                                             <goal>xjc</goal>
182                                         </goals>
183                                     </pluginExecutionFilter>
184                                     <action>
185                                         <ignore />
186                                     </action>
187                                 </pluginExecution>
188                             </pluginExecutions>
189                         </lifecycleMappingMetadata>
190                     </configuration>
191                 </plugin>
192                 <plugin>
193                     <groupId>org.jacoco</groupId>
194                     <artifactId>jacoco-maven-plugin</artifactId>
195                     <version>${jacoco.version}</version>
196                     <configuration>
197                         <excludes>
198                             <exclude>**/gen/**</exclude>
199                             <exclude>**/generated-sources/**</exclude>
200                             <exclude>**/yang-gen/**</exclude>
201                             <exclude>**/pax/**</exclude>
202                         </excludes>
203                     </configuration>
204                     <executions>
205                         <execution>
206                             <id>pre-unit-test</id>
207                             <goals>
208                                 <goal>prepare-agent</goal>
209                             </goals>
210                             <configuration>
211                                 <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
212                                 <propertyName>surefireArgLine</propertyName>
213                             </configuration>
214                         </execution>
215                         <execution>
216                             <id>post-unit-test</id>
217                             <phase>test</phase>
218                             <goals>
219                                 <goal>report</goal>
220                             </goals>
221                             <configuration>
222                                 <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
223                                 <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
224                             </configuration>
225                         </execution>
226                         <execution>
227                             <id>pre-integration-test</id>
228                             <phase>pre-integration-test</phase>
229                             <goals>
230                                 <goal>prepare-agent</goal>
231                             </goals>
232                             <configuration>
233                                 <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
234                                 <propertyName>failsafeArgLine</propertyName>
235                             </configuration>
236                         </execution>
237                         <execution>
238                             <id>post-integration-test</id>
239                             <phase>post-integration-test</phase>
240                             <goals>
241                                 <goal>report</goal>
242                             </goals>
243                             <configuration>
244                                 <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
245                                 <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
246                             </configuration>
247                         </execution>
248                     </executions>
249                 </plugin>
250             </plugins>
251         </pluginManagement>
252     </build>
253
254     <dependencies>
255         <dependency>
256             <groupId>log4j</groupId>
257             <artifactId>log4j</artifactId>
258             <scope>compile</scope> <!-- Provides scope only, in case other users prefer another Logging Implementation -->
259         </dependency>
260         
261         <dependency>
262             <groupId>org.mockito</groupId>
263             <artifactId>mockito-all</artifactId>
264             <scope>test</scope>
265         </dependency>
266
267         <dependency>
268             <groupId>org.powermock</groupId>
269             <artifactId>powermock-module-junit4</artifactId>
270             <scope>test</scope>
271         </dependency>
272         <dependency>
273             <groupId>org.powermock</groupId>
274             <artifactId>powermock-api-mockito</artifactId>
275             <scope>test</scope>
276         </dependency>
277
278         <dependency>
279             <groupId>junit</groupId>
280             <artifactId>junit</artifactId>
281             <scope>test</scope>
282         </dependency>
283     </dependencies>
284
285
286     <distributionManagement>
287         <repository>
288             <id>ecomp-releases</id>
289             <name>AAF Release Repository</name>
290             <url>${nexusproxy}${releaseNexusPath}</url>
291         </repository>
292         <snapshotRepository>
293             <id>ecomp-snapshots</id>
294             <name>AAF Snapshot Repository</name>
295             <url>${nexusproxy}${snapshotNexusPath}</url>
296         </snapshotRepository>
297         <site>
298             <id>ecomp-site</id>
299             <url>dav:${nexusproxy}${sitePath}</url>
300         </site>
301     </distributionManagement>
302 </project>
303