61d4f5d2e11b6cbf4c9600905e94feda0c7707ac
[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     <parent>
26        <groupId>org.onap.aaf.authz</groupId>
27        <artifactId>parent</artifactId>
28        <version>2.7.0-SNAPSHOT</version>
29     </parent>
30     <artifactId>miscparent</artifactId>
31     <name>AAF Misc Parent</name>
32     <packaging>pom</packaging>
33
34     <developers>
35         <developer>
36             <name>Jonathan Gathman</name>
37             <email>jonathan.gathman@att.com</email>
38             <organization>ATT</organization>
39             <roles>
40                 <role>Architect</role>
41                 <role>Lead Developer</role>
42             </roles>
43         </developer>
44         <developer>
45             <name>Sai Gandham</name>
46             <email>sai.gandham@att.com</email>
47             <organization>ATT</organization>
48             <roles>
49                 <role>Developer</role>
50             </roles>
51         </developer>
52     </developers>
53
54     <dependencies>
55         <dependency>
56             <groupId>org.mockito</groupId>
57             <artifactId>mockito-all</artifactId>
58             <scope>test</scope>
59         </dependency>
60
61         <dependency>
62             <groupId>org.powermock</groupId>
63             <artifactId>powermock-module-junit4</artifactId>
64             <scope>test</scope>
65         </dependency>
66         <dependency>
67             <groupId>org.powermock</groupId>
68             <artifactId>powermock-api-mockito</artifactId>
69             <scope>test</scope>
70         </dependency>
71         <dependency>
72             <groupId>junit</groupId>
73             <artifactId>junit</artifactId>
74             <scope>test</scope>
75         </dependency>
76         <dependency>            
77                         <groupId>org.owasp.encoder</groupId>            
78                         <artifactId>encoder</artifactId>                
79                         <version>1.2.1</version>                
80                 </dependency>
81         
82     </dependencies>
83
84     <modules>
85         <module>env</module>
86         <module>xgen</module>
87         <module>rosetta</module>
88         <module>log4j</module> <!--  note: generates log4j, to avoid Jar conflict -->
89     </modules>
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                     </configuration>
141                 </plugin>
142
143                 <plugin>
144                     <artifactId>maven-assembly-plugin</artifactId>
145                     <version>2.5.5</version>
146                 </plugin>
147
148                 <plugin>
149                     <groupId>org.apache.maven.plugins</groupId>
150                     <artifactId>maven-dependency-plugin</artifactId>
151                     <version>2.10</version>
152                 </plugin>
153
154                 <!-- Maven surefire plugin for testing -->
155                 <plugin>
156                     <artifactId>maven-surefire-plugin</artifactId>
157                     <version>2.17</version>
158                     <configuration>
159                         <skipTests>false</skipTests>
160                         <includes>
161                             <include>**/JU*.java</include>
162                         </includes>
163                         <excludes>
164                         </excludes>
165                         <useSystemClassLoader>false</useSystemClassLoader>
166                     </configuration>
167                 </plugin>
168
169                 <!--This plugin's configuration is used to store Eclipse m2e settings
170                     only. It has no influence on the Maven build itself. -->
171                 <plugin>
172                     <groupId>org.eclipse.m2e</groupId>
173                     <artifactId>lifecycle-mapping</artifactId>
174                     <version>1.0.0</version>
175                     <configuration>
176                         <lifecycleMappingMetadata>
177                             <pluginExecutions>
178                                 <pluginExecution>
179                                     <pluginExecutionFilter>
180                                         <groupId>
181                                             org.codehaus.mojo
182                                         </groupId>
183                                         <artifactId>
184                                             jaxb2-maven-plugin
185                                         </artifactId>
186                                         <versionRange>
187                                             [1.3,)
188                                         </versionRange>
189                                         <goals>
190                                             <goal>xjc</goal>
191                                         </goals>
192                                     </pluginExecutionFilter>
193                                     <action>
194                                         <ignore />
195                                     </action>
196                                 </pluginExecution>
197                             </pluginExecutions>
198                         </lifecycleMappingMetadata>
199                     </configuration>
200                 </plugin>
201                 <plugin>
202                     <groupId>org.jacoco</groupId>
203                     <artifactId>jacoco-maven-plugin</artifactId>
204                     <version>${jacoco.version}</version>
205                     <configuration>
206                         <excludes>
207                             <exclude>**/gen/**</exclude>
208                             <exclude>**/generated-sources/**</exclude>
209                             <exclude>**/yang-gen/**</exclude>
210                             <exclude>**/pax/**</exclude>
211                         </excludes>
212                     </configuration>
213                     <executions>
214                         <execution>
215                             <id>pre-unit-test</id>
216                             <goals>
217                                 <goal>prepare-agent</goal>
218                             </goals>
219                             <configuration>
220                                 <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
221                                 <propertyName>surefireArgLine</propertyName>
222                             </configuration>
223                         </execution>
224                         <execution>
225                             <id>post-unit-test</id>
226                             <phase>test</phase>
227                             <goals>
228                                 <goal>report</goal>
229                             </goals>
230                             <configuration>
231                                 <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
232                                 <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
233                             </configuration>
234                         </execution>
235                         <execution>
236                             <id>pre-integration-test</id>
237                             <phase>pre-integration-test</phase>
238                             <goals>
239                                 <goal>prepare-agent</goal>
240                             </goals>
241                             <configuration>
242                                 <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
243                                 <propertyName>failsafeArgLine</propertyName>
244                             </configuration>
245                         </execution>
246                         <execution>
247                             <id>post-integration-test</id>
248                             <phase>post-integration-test</phase>
249                             <goals>
250                                 <goal>report</goal>
251                             </goals>
252                             <configuration>
253                                 <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
254                                 <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
255                             </configuration>
256                         </execution>
257                     </executions>
258                 </plugin>
259             </plugins>
260         </pluginManagement>
261     </build>
262
263
264     <distributionManagement>
265         <repository>
266             <id>ecomp-releases</id>
267             <name>AAF Release Repository</name>
268             <url>${nexusproxy}${releaseNexusPath}</url>
269         </repository>
270         <snapshotRepository>
271             <id>ecomp-snapshots</id>
272             <name>AAF Snapshot Repository</name>
273             <url>${nexusproxy}${snapshotNexusPath}</url>
274         </snapshotRepository>
275         <site>
276             <id>ecomp-site</id>
277             <url>dav:${nexusproxy}${sitePath}</url>
278         </site>
279     </distributionManagement>
280 </project>