Create and prepare non-deploy release 2.7.1
[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.7.1-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-dependency-plugin</artifactId>
162                 </plugin>
163
164                 <!-- Maven surefire plugin for testing -->
165                 <plugin>
166                     <artifactId>maven-surefire-plugin</artifactId>
167                     <configuration>
168                     <skipTests>false</skipTests>
169                     <includes>
170                         <include>**/JU*.java</include>
171                     </includes>
172                     <excludes>
173                     </excludes>
174                     </configuration>
175                 </plugin>
176
177                 <!--This plugin's configuration is used to store Eclipse m2e settings
178                     only. It has no influence on the Maven build itself. -->
179                 <plugin>
180                     <groupId>org.eclipse.m2e</groupId>
181                     <artifactId>lifecycle-mapping</artifactId>
182                     <configuration>
183                         <lifecycleMappingMetadata>
184                             <pluginExecutions>
185                                 <pluginExecution>
186                                     <pluginExecutionFilter>
187                                         <groupId>
188                                             org.codehaus.mojo
189                                         </groupId>
190                                         <artifactId>
191                                             jaxb2-maven-plugin
192                                         </artifactId>
193                                         <versionRange>
194                                             [1.3,)
195                                         </versionRange>
196                                         <goals>
197                                             <goal>xjc</goal>
198                                         </goals>
199                                     </pluginExecutionFilter>
200                                     <action>
201                                         <ignore />
202                                     </action>
203                                 </pluginExecution>
204                             </pluginExecutions>
205                         </lifecycleMappingMetadata>
206                     </configuration>
207                 </plugin>
208                 <plugin>
209                     <groupId>org.jacoco</groupId>
210                     <artifactId>jacoco-maven-plugin</artifactId>
211                     <configuration>
212                         <excludes>
213                             <exclude>**/gen/**</exclude>
214                             <exclude>**/generated-sources/**</exclude>
215                             <exclude>**/yang-gen/**</exclude>
216                             <exclude>**/pax/**</exclude>
217                         </excludes>
218                     </configuration>
219                     <executions>
220                         <execution>
221                             <id>pre-unit-test</id>
222                             <goals>
223                                 <goal>prepare-agent</goal>
224                             </goals>
225                             <configuration>
226                                 <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
227                                 <propertyName>surefireArgLine</propertyName>
228                             </configuration>
229                         </execution>
230                         <execution>
231                             <id>post-unit-test</id>
232                             <phase>test</phase>
233                             <goals>
234                                 <goal>report</goal>
235                             </goals>
236                             <configuration>
237                                 <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
238                                 <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
239                             </configuration>
240                         </execution>
241                         <execution>
242                             <id>pre-integration-test</id>
243                             <phase>pre-integration-test</phase>
244                             <goals>
245                                 <goal>prepare-agent</goal>
246                             </goals>
247                             <configuration>
248                                 <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
249                                 <propertyName>failsafeArgLine</propertyName>
250                             </configuration>
251                         </execution>
252                         <execution>
253                             <id>post-integration-test</id>
254                             <phase>post-integration-test</phase>
255                             <goals>
256                                 <goal>report</goal>
257                             </goals>
258                             <configuration>
259                                 <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
260                                 <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
261                             </configuration>
262                         </execution>
263                     </executions>
264                 </plugin>
265             </plugins>
266     </build>
267
268     <distributionManagement>
269         <repository>
270             <id>ecomp-releases</id>
271             <name>AAF Release Repository</name>
272             <url>${nexusproxy}${releaseNexusPath}</url>
273         </repository>
274         <snapshotRepository>
275             <id>ecomp-snapshots</id>
276             <name>AAF Snapshot Repository</name>
277             <url>${nexusproxy}${snapshotNexusPath}</url>
278         </snapshotRepository>
279         <site>
280             <id>ecomp-site</id>
281             <url>dav:${nexusproxy}${sitePath}</url>
282         </site>
283     </distributionManagement>
284
285 </project>