1a4ab7bafdf2d162fc55254e2822146a7e382aa5
[aaf/authz.git] / misc / rosetta / 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.20-SNAPSHOT</version>
28         <relativePath>..</relativePath>
29     </parent>
30
31     <modelVersion>4.0.0</modelVersion>
32     <artifactId>aaf-misc-rosetta</artifactId>
33     <name>AAF Misc Rosetta</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     <scijava.jvm.version>1.8</scijava.jvm.version>
59     <!-- <sonar.skip>true</sonar.skip> -->
60          <jacoco.version>0.7.7.201606060606</jacoco.version>
61         <sonar-jacoco-listeners.version>3.2</sonar-jacoco-listeners.version>
62         <sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin>
63         <!-- Default Sonar configuration -->
64         <sonar.jacoco.reportPaths>target/code-coverage/jacoco-ut.exec</sonar.jacoco.reportPaths>
65         <sonar.jacoco.itReportPaths>target/code-coverage/jacoco-it.exec</sonar.jacoco.itReportPaths>
66         <!-- Note: This list should match jacoco-maven-plugin's exclusion list below -->
67         <sonar.exclusions>**/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/**</sonar.exclusions>
68
69         <nexusproxy>https://nexus.onap.org</nexusproxy>
70         <snapshotNexusPath>/content/repositories/snapshots/</snapshotNexusPath>
71         <releaseNexusPath>/content/repositories/releases/</releaseNexusPath>
72         <stagingNexusPath>/content/repositories/staging/</stagingNexusPath>
73         <sitePath>/content/sites/site/org/onap/aaf/authz/${project.artifactId}/${project.version}</sitePath>
74     </properties>
75
76     <dependencies>
77         <dependency>
78             <groupId>org.onap.aaf.authz</groupId>
79             <artifactId>aaf-misc-env</artifactId>
80         </dependency>
81         <dependency>
82           <groupId>javax.xml.bind</groupId>
83           <artifactId>jaxb-api</artifactId>
84         </dependency>
85         <dependency>
86           <groupId>org.glassfish.jaxb</groupId>
87           <artifactId>jaxb-runtime</artifactId>
88         </dependency>
89     </dependencies>
90
91             
92
93                 <!-- ============================================================== -->
94     <!-- Define common plugins and make them available for all modules -->
95     <!-- ============================================================== -->
96     <build>
97         <testSourceDirectory>src/test/java</testSourceDirectory>
98         
99             <plugins>
100                 <plugin>
101                     <inherited>true</inherited>
102                     <groupId>org.apache.maven.plugins</groupId>
103                     <artifactId>maven-compiler-plugin</artifactId>
104                     <configuration>
105                         <source>1.7</source>
106                         <target>1.7</target>
107                     </configuration>
108                 </plugin>
109
110                 <plugin>
111                 <groupId>org.jvnet.jaxb2.maven2</groupId>
112                 <artifactId>maven-jaxb2-plugin</artifactId>
113                 <version>0.8.2</version>
114                 <executions>
115                     <execution>
116                         <goals>
117                             <goal>generate</goal>
118                         </goals>
119                     </execution>
120                 </executions>
121                 <configuration>
122                     <schemaDirectory>src/main/xsd</schemaDirectory>
123                 </configuration>
124             </plugin>
125             
126                 <plugin>
127                     <groupId>org.apache.maven.plugins</groupId>
128                     <artifactId>maven-jar-plugin</artifactId>
129                     <configuration>
130                         <outputDirectory>target</outputDirectory>
131                         <archive>
132                             <manifestEntries>
133                                 <Sealed>true</Sealed>
134                             </manifestEntries>
135                         </archive>
136                     </configuration>
137                 </plugin>
138
139                 <!-- Define the javadoc plugin -->
140                 <plugin>
141                     <groupId>org.apache.maven.plugins</groupId>
142                     <artifactId>maven-javadoc-plugin</artifactId>
143                     <configuration>
144                         <excludePackageNames>org.opendaylight.*</excludePackageNames>
145                     </configuration>
146                 </plugin>
147
148                 <plugin>
149                     <artifactId>maven-release-plugin</artifactId>
150                     <configuration>
151                         <goals>-s ${mvn.settings} deploy</goals>
152                     </configuration>
153                 </plugin>
154
155                 <plugin>
156                     <artifactId>maven-assembly-plugin</artifactId>
157                 </plugin>
158
159                 <plugin>
160                     <groupId>org.apache.maven.plugins</groupId>
161                     <artifactId>maven-deploy-plugin</artifactId>
162                     <configuration>
163                         <skip>false</skip>
164                     </configuration>
165
166                 </plugin>
167
168                 <plugin>
169                     <groupId>org.apache.maven.plugins</groupId>
170                     <artifactId>maven-dependency-plugin</artifactId>
171                 </plugin>
172
173                 <!-- Maven surefire plugin for testing -->
174                 <plugin>
175                     <artifactId>maven-surefire-plugin</artifactId>
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                     <configuration>
192                         <lifecycleMappingMetadata>
193                             <pluginExecutions>
194                                 <pluginExecution>
195                                     <pluginExecutionFilter>
196                                         <groupId>
197                                             org.codehaus.mojo
198                                         </groupId>
199                                         <artifactId>
200                                             jaxb2-maven-plugin
201                                         </artifactId>
202                                         <versionRange>
203                                             [1.3,)
204                                         </versionRange>
205                                         <goals>
206                                             <goal>xjc</goal>
207                                         </goals>
208                                     </pluginExecutionFilter>
209                                     <action>
210                                         <ignore />
211                                     </action>
212                                 </pluginExecution>
213                             </pluginExecutions>
214                         </lifecycleMappingMetadata>
215                     </configuration>
216                 </plugin>
217                 <plugin>
218                     <groupId>org.jacoco</groupId>
219                     <artifactId>jacoco-maven-plugin</artifactId>
220                     <configuration>
221                         <excludes>
222                             <exclude>**/gen/**</exclude>
223                             <exclude>**/generated-sources/**</exclude>
224                             <exclude>**/yang-gen/**</exclude>
225                             <exclude>**/pax/**</exclude>
226                         </excludes>
227                     </configuration>
228                     <executions>
229                         <execution>
230                             <id>pre-unit-test</id>
231                             <goals>
232                                 <goal>prepare-agent</goal>
233                             </goals>
234                             <configuration>
235                                 <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
236                                 <propertyName>surefireArgLine</propertyName>
237                             </configuration>
238                         </execution>
239                         <execution>
240                             <id>post-unit-test</id>
241                             <phase>test</phase>
242                             <goals>
243                                 <goal>report</goal>
244                             </goals>
245                             <configuration>
246                                 <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
247                                 <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
248                             </configuration>
249                         </execution>
250                         <execution>
251                             <id>pre-integration-test</id>
252                             <phase>pre-integration-test</phase>
253                             <goals>
254                                 <goal>prepare-agent</goal>
255                             </goals>
256                             <configuration>
257                                 <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
258                                 <propertyName>failsafeArgLine</propertyName>
259                             </configuration>
260                         </execution>
261                         <execution>
262                             <id>post-integration-test</id>
263                             <phase>post-integration-test</phase>
264                             <goals>
265                                 <goal>report</goal>
266                             </goals>
267                             <configuration>
268                                 <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
269                                 <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
270                             </configuration>
271                         </execution>
272                     </executions>
273                 </plugin>
274             </plugins>
275     </build>
276
277     <distributionManagement>
278         <repository>
279             <id>ecomp-releases</id>
280             <name>AAF Release Repository</name>
281             <url>${nexusproxy}${releaseNexusPath}</url>
282         </repository>
283         <snapshotRepository>
284             <id>ecomp-snapshots</id>
285             <name>AAF Snapshot Repository</name>
286             <url>${nexusproxy}${snapshotNexusPath}</url>
287         </snapshotRepository>
288         <site>
289             <id>ecomp-site</id>
290             <url>dav:${nexusproxy}${sitePath}</url>
291         </site>
292     </distributionManagement>
293
294 </project>