blob: 6eaab6f6f233889116d293c17422ad6c4d178d18 [file] [log] [blame]
Gary Wu7f1c1522017-06-21 15:03:17 -07001<?xml version="1.0" encoding="UTF-8"?>
2<!--
Gary Wu87895562018-09-11 14:28:49 -07003 Copyright (c) 2016-2018 Huawei Technologies Co., Ltd.
Brian Freemanbedb4842019-11-01 08:48:01 -05004 Modifications copyright (C) 2017-2019 AT&T Intellectual Property
Gary Wu7f1c1522017-06-21 15:03:17 -07005
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>
Gary Wu7f1c1522017-06-21 15:03:17 -070020 <name>oparent</name>
Gary Wu2a78a372017-08-21 14:03:14 -070021 <groupId>org.onap.oparent</groupId>
22 <artifactId>version</artifactId>
Pamela Dragoshde497772020-04-20 12:52:50 -040023 <version>3.1.0-SNAPSHOT</version>
Gary Wu7f1c1522017-06-21 15:03:17 -070024 <packaging>pom</packaging>
Gary Wu7f1c1522017-06-21 15:03:17 -070025 <modules>
26 <!-- oparent tools -->
Gary Wu7f1c1522017-06-21 15:03:17 -070027 <module>checkstyle</module>
28 <module>license</module>
Gary Wu2a78a372017-08-21 14:03:14 -070029 <module>oparent</module>
DR695Heb3dd602017-09-08 15:20:22 -040030 <module>oparent-python</module>
Pamela Dragosh3d0fef42018-08-23 13:38:15 -040031 <module>dependencies</module>
32 <module>dependencies-clm</module>
Gary Wu7f1c1522017-06-21 15:03:17 -070033 </modules>
Gary Wu2a78a372017-08-21 14:03:14 -070034 <properties>
Gary Wu2a78a372017-08-21 14:03:14 -070035 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
36 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
Gary Wuff1f3422017-08-23 13:24:41 -070037 <!-- sitePath may be overridden in the inheriting POM if desired -->
38 <sitePath>/content/sites/site/${project.groupId}/${project.artifactId}/${project.version}</sitePath>
Brian Freemanfcd164a2019-11-07 15:56:25 -050039 <maven.compiler.release>11</maven.compiler.release>
Pamela Dragosh81f6ddb2020-01-09 20:21:59 -050040 <sonar.scanner.version>3.7.0.1746</sonar.scanner.version>
41
Brian Freemanfcd164a2019-11-07 15:56:25 -050042 <!--
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 -->
Gary Wu87895562018-09-11 14:28:49 -070048 <!--
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>
Lusheng Jicbb90272017-09-01 17:43:02 +000053 <onap.nexus.rawrepo.baseurl.upload>https://nexus.onap.org/content/sites/raw</onap.nexus.rawrepo.baseurl.upload>
Gary Wu87895562018-09-11 14:28:49 -070054 <onap.nexus.rawrepo.baseurl.download>https://nexus.onap.org/service/local/repositories/raw/content</onap.nexus.rawrepo.baseurl.download>
Lusheng Jicbb90272017-09-01 17:43:02 +000055 <onap.nexus.rawrepo.serverid>ecomp-raw</onap.nexus.rawrepo.serverid>
Lusheng Jicbb90272017-09-01 17:43:02 +000056 <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>
Gary Wu87895562018-09-11 14:28:49 -070058 <docker.pull.registry>nexus3.onap.org:10001</docker.pull.registry>
59 <docker.push.registry>nexus3.onap.org:10003</docker.push.registry>
60 -->
Gary Wu7f1c1522017-06-21 15:03:17 -070061 </properties>
Gary Wu2a78a372017-08-21 14:03:14 -070062 <distributionManagement>
63 <repository>
Gary Wudcfc3442017-10-11 12:58:43 -070064 <id>ecomp-releases</id>
Gary Wu2a78a372017-08-21 14:03:14 -070065 <url>${onap.nexus.url}/content/repositories/releases</url>
66 </repository>
67 <snapshotRepository>
Gary Wudcfc3442017-10-11 12:58:43 -070068 <id>ecomp-snapshots</id>
Gary Wu2a78a372017-08-21 14:03:14 -070069 <url>${onap.nexus.url}/content/repositories/snapshots</url>
70 </snapshotRepository>
71 </distributionManagement>
Gary Wu7f1c1522017-06-21 15:03:17 -070072 <build>
73 <pluginManagement>
74 <plugins>
75 <plugin>
Brian Freemanfcd164a2019-11-07 15:56:25 -050076 <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>
Gary Wu7f1c1522017-06-21 15:03:17 -070092 <groupId>org.apache.maven.plugins</groupId>
Gary Wu2a78a372017-08-21 14:03:14 -070093 <artifactId>maven-deploy-plugin</artifactId>
Gary Wu07a40c82017-08-23 12:03:32 -070094 <!-- This version supports the "deployAtEnd" parameter -->
95 <version>2.8</version>
Gary Wu7f1c1522017-06-21 15:03:17 -070096 <configuration>
Gary Wu07a40c82017-08-23 12:03:32 -070097 <skip/>
Gary Wu7f1c1522017-06-21 15:03:17 -070098 </configuration>
Gary Wu07a40c82017-08-23 12:03:32 -070099 </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>
Anaël Closson9ab3bc52017-08-28 15:35:58 +0200112 <plugin>
Anaël Clossond25cc102017-08-28 15:43:22 +0200113 <groupId>org.apache.maven.plugins</groupId>
114 <artifactId>maven-enforcer-plugin</artifactId>
Gary Wu87895562018-09-11 14:28:49 -0700115 <version>3.0.0-M2</version>
Anaël Clossond25cc102017-08-28 15:43:22 +0200116 <executions>
117 <execution>
Gary Wu87895562018-09-11 14:28:49 -0700118 <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>
Anaël Clossond25cc102017-08-28 15:43:22 +0200133 <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>
Gary Wu926c7562017-10-27 10:53:27 -0700142 <level>ERROR</level>
Anaël Clossond25cc102017-08-28 15:43:22 +0200143 </requireReleaseDeps>
144 </rules>
145 </configuration>
146 </execution>
147 </executions>
148 </plugin>
Gary Wue3c423d2018-02-02 11:10:57 -0800149 <!-- 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>
Pamela Dragosh81f6ddb2020-01-09 20:21:59 -0500153 <version>${sonar.scanner.version}</version>
Gary Wue3c423d2018-02-02 11:10:57 -0800154 </plugin>
Gary Wu7f1c1522017-06-21 15:03:17 -0700155 </plugins>
156 </pluginManagement>
Gary Wu07a40c82017-08-23 12:03:32 -0700157 <plugins>
158 <plugin>
Gary Wu07a40c82017-08-23 12:03:32 -0700159 <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>
Anaël Closson9ab3bc52017-08-28 15:35:58 +0200166 <plugin>
Anaël Clossond25cc102017-08-28 15:43:22 +0200167 <groupId>org.apache.maven.plugins</groupId>
168 <artifactId>maven-enforcer-plugin</artifactId>
169 </plugin>
Gary Wu07a40c82017-08-23 12:03:32 -0700170 </plugins>
Gary Wu7f1c1522017-06-21 15:03:17 -0700171 </build>
172</project>