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