596e8e8498369278a87482de12d7f5f933aaaac3
[oparent.git] / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3    Copyright (c) 2016-2018 Huawei Technologies Co., Ltd.
4    Modifications copyright (C) 2017-2019 AT&T Intellectual Property
5
6    Licensed under the Apache License, Version 2.0 (the "License");
7    you may not use this file except in compliance with the License.
8    You may obtain a copy of the License at
9
10        http://www.apache.org/licenses/LICENSE-2.0
11
12    Unless required by applicable law or agreed to in writing, software
13    distributed under the License is distributed on an "AS IS" BASIS,
14    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15    See the License for the specific language governing permissions and
16    limitations under the License.
17 -->
18 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
19   <modelVersion>4.0.0</modelVersion>
20   <name>oparent</name>
21   <groupId>org.onap.oparent</groupId>
22   <artifactId>version</artifactId>
23   <version>3.0.2-SNAPSHOT</version>
24   <packaging>pom</packaging>
25   <modules>
26     <!-- oparent tools -->
27     <module>checkstyle</module>
28     <module>license</module>
29     <module>oparent</module>
30     <module>oparent-python</module>
31     <module>dependencies</module>
32     <module>dependencies-clm</module>
33   </modules>
34   <properties>
35     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
36     <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
37     <!-- sitePath may be overridden in the inheriting POM if desired -->
38     <sitePath>/content/sites/site/${project.groupId}/${project.artifactId}/${project.version}</sitePath>
39     <maven.compiler.release>11</maven.compiler.release>
40     <sonar.scanner.version>3.7.0.1746</sonar.scanner.version>
41
42     <!-- 
43        In the java 8 version of oparent there were two variables defined for 1.8 source and target. These are no longer
44        applicable in Java 11 but you may be referencing them in your child poms so review and update as appropriate.
45          <maven.compiler.source>1.8</maven.compiler.source>
46          <maven.compiler.target>1.8</maven.compiler.target>
47     -->
48     <!--
49         The following properties should be defined in your own ~/.m2/settings.xml based on your own build infastructure setup.
50         See the settings.xml in this directory for default settings based on the Linux Foundation ONAP infrastructure.
51
52     <onap.nexus.url>https://nexus.onap.org</onap.nexus.url>
53     <onap.nexus.rawrepo.baseurl.upload>https://nexus.onap.org/content/sites/raw</onap.nexus.rawrepo.baseurl.upload>
54     <onap.nexus.rawrepo.baseurl.download>https://nexus.onap.org/service/local/repositories/raw/content</onap.nexus.rawrepo.baseurl.download>
55     <onap.nexus.rawrepo.serverid>ecomp-raw</onap.nexus.rawrepo.serverid>
56     <onap.nexus.dockerregistry.daily>nexus3.onap.org:10003</onap.nexus.dockerregistry.daily>
57     <onap.nexus.dockerregistry.release>nexus3.onap.org:10002</onap.nexus.dockerregistry.release>
58     <docker.pull.registry>nexus3.onap.org:10001</docker.pull.registry>
59     <docker.push.registry>nexus3.onap.org:10003</docker.push.registry>
60     -->
61   </properties>
62   <distributionManagement>
63     <repository>
64       <id>ecomp-releases</id>
65       <url>${onap.nexus.url}/content/repositories/releases</url>
66     </repository>
67     <snapshotRepository>
68       <id>ecomp-snapshots</id>
69       <url>${onap.nexus.url}/content/repositories/snapshots</url>
70     </snapshotRepository>
71   </distributionManagement>
72   <build>
73     <pluginManagement>
74       <plugins>
75         <plugin>
76             <groupId>org.apache.maven.plugins</groupId>
77             <artifactId>maven-compiler-plugin</artifactId>
78             <version>3.8.0</version>
79             <configuration>
80                <release>${maven.compiler.release}</release>
81             </configuration>
82         </plugin>
83         <plugin>
84             <groupId>org.codehaus.mojo</groupId>
85             <artifactId>versions-maven-plugin</artifactId>
86             <version>2.7</version>
87             <configuration>
88                <generateBackupPoms>false</generateBackupPoms>
89             </configuration>
90         </plugin>
91         <plugin>
92           <groupId>org.apache.maven.plugins</groupId>
93           <artifactId>maven-deploy-plugin</artifactId>
94           <!-- This version supports the "deployAtEnd" parameter -->
95           <version>2.8</version>
96           <configuration>
97             <skip/>
98           </configuration>
99         </plugin>
100         <plugin>
101           <groupId>org.apache.maven.plugins</groupId>
102           <artifactId>maven-site-plugin</artifactId>
103           <version>3.6</version>
104           <dependencies>
105             <dependency>
106               <groupId>org.apache.maven.wagon</groupId>
107               <artifactId>wagon-webdav-jackrabbit</artifactId>
108               <version>2.10</version>
109             </dependency>
110           </dependencies>
111         </plugin>
112         <plugin>
113           <groupId>org.apache.maven.plugins</groupId>
114           <artifactId>maven-enforcer-plugin</artifactId>
115           <version>3.0.0-M2</version>
116           <executions>
117             <execution>
118               <id>enforce-property</id>
119               <goals>
120                 <goal>enforce</goal>
121               </goals>
122               <configuration>
123                 <rules>
124                   <requireProperty>
125                     <property>onap.nexus.url</property>
126                     <message>You must set a onap.nexus.url property in your ~/.m2/settings.xml.  See oparent/settings.xml for an example.</message>
127                   </requireProperty>
128                 </rules>
129                 <fail>true</fail>
130               </configuration>
131             </execution>
132             <execution>
133               <id>enforce-no-snapshots</id>
134               <goals>
135                 <goal>enforce</goal>
136               </goals>
137               <configuration>
138                 <rules>
139                   <requireReleaseDeps>
140                     <failWhenParentIsSnapshot>false</failWhenParentIsSnapshot>
141                     <onlyWhenRelease>true</onlyWhenRelease>
142                     <level>ERROR</level>
143                   </requireReleaseDeps>
144                 </rules>
145               </configuration>
146             </execution>
147           </executions>
148         </plugin>
149         <!-- https://mvnrepository.com/artifact/org.sonarsource.scanner.maven/sonar-maven-plugin -->
150         <plugin>
151           <groupId>org.sonarsource.scanner.maven</groupId>
152           <artifactId>sonar-maven-plugin</artifactId>
153           <version>${sonar.scanner.version}</version>
154         </plugin>
155       </plugins>
156     </pluginManagement>
157     <plugins>
158       <plugin>
159         <groupId>org.apache.maven.plugins</groupId>
160         <artifactId>maven-deploy-plugin</artifactId>
161       </plugin>
162       <plugin>
163         <groupId>org.apache.maven.plugins</groupId>
164         <artifactId>maven-site-plugin</artifactId>
165       </plugin>
166       <plugin>
167         <groupId>org.apache.maven.plugins</groupId>
168         <artifactId>maven-enforcer-plugin</artifactId>
169       </plugin>
170     </plugins>
171   </build>
172 </project>