Gary Wu | 7f1c152 | 2017-06-21 15:03:17 -0700 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <!-- |
Gary Wu | 8789556 | 2018-09-11 14:28:49 -0700 | [diff] [blame] | 3 | Copyright (c) 2016-2018 Huawei Technologies Co., Ltd. |
Brian Freeman | bedb484 | 2019-11-01 08:48:01 -0500 | [diff] [blame] | 4 | Modifications copyright (C) 2017-2019 AT&T Intellectual Property |
Gary Wu | 7f1c152 | 2017-06-21 15:03:17 -0700 | [diff] [blame] | 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> |
Gary Wu | 7f1c152 | 2017-06-21 15:03:17 -0700 | [diff] [blame] | 20 | <name>oparent</name> |
Gary Wu | 2a78a37 | 2017-08-21 14:03:14 -0700 | [diff] [blame] | 21 | <groupId>org.onap.oparent</groupId> |
| 22 | <artifactId>version</artifactId> |
Pamela Dragosh | de49777 | 2020-04-20 12:52:50 -0400 | [diff] [blame] | 23 | <version>3.1.0-SNAPSHOT</version> |
Gary Wu | 7f1c152 | 2017-06-21 15:03:17 -0700 | [diff] [blame] | 24 | <packaging>pom</packaging> |
Gary Wu | 7f1c152 | 2017-06-21 15:03:17 -0700 | [diff] [blame] | 25 | <modules> |
| 26 | <!-- oparent tools --> |
Gary Wu | 7f1c152 | 2017-06-21 15:03:17 -0700 | [diff] [blame] | 27 | <module>checkstyle</module> |
| 28 | <module>license</module> |
Gary Wu | 2a78a37 | 2017-08-21 14:03:14 -0700 | [diff] [blame] | 29 | <module>oparent</module> |
DR695H | eb3dd60 | 2017-09-08 15:20:22 -0400 | [diff] [blame] | 30 | <module>oparent-python</module> |
Pamela Dragosh | 3d0fef4 | 2018-08-23 13:38:15 -0400 | [diff] [blame] | 31 | <module>dependencies</module> |
| 32 | <module>dependencies-clm</module> |
Gary Wu | 7f1c152 | 2017-06-21 15:03:17 -0700 | [diff] [blame] | 33 | </modules> |
Gary Wu | 2a78a37 | 2017-08-21 14:03:14 -0700 | [diff] [blame] | 34 | <properties> |
Gary Wu | 2a78a37 | 2017-08-21 14:03:14 -0700 | [diff] [blame] | 35 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 36 | <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> |
Gary Wu | ff1f342 | 2017-08-23 13:24:41 -0700 | [diff] [blame] | 37 | <!-- sitePath may be overridden in the inheriting POM if desired --> |
| 38 | <sitePath>/content/sites/site/${project.groupId}/${project.artifactId}/${project.version}</sitePath> |
Brian Freeman | fcd164a | 2019-11-07 15:56:25 -0500 | [diff] [blame] | 39 | <maven.compiler.release>11</maven.compiler.release> |
Pamela Dragosh | 81f6ddb | 2020-01-09 20:21:59 -0500 | [diff] [blame] | 40 | <sonar.scanner.version>3.7.0.1746</sonar.scanner.version> |
| 41 | |
Brian Freeman | fcd164a | 2019-11-07 15:56:25 -0500 | [diff] [blame] | 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 | --> |
Gary Wu | 8789556 | 2018-09-11 14:28:49 -0700 | [diff] [blame] | 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> |
Lusheng Ji | cbb9027 | 2017-09-01 17:43:02 +0000 | [diff] [blame] | 53 | <onap.nexus.rawrepo.baseurl.upload>https://nexus.onap.org/content/sites/raw</onap.nexus.rawrepo.baseurl.upload> |
Gary Wu | 8789556 | 2018-09-11 14:28:49 -0700 | [diff] [blame] | 54 | <onap.nexus.rawrepo.baseurl.download>https://nexus.onap.org/service/local/repositories/raw/content</onap.nexus.rawrepo.baseurl.download> |
Lusheng Ji | cbb9027 | 2017-09-01 17:43:02 +0000 | [diff] [blame] | 55 | <onap.nexus.rawrepo.serverid>ecomp-raw</onap.nexus.rawrepo.serverid> |
Lusheng Ji | cbb9027 | 2017-09-01 17:43:02 +0000 | [diff] [blame] | 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> |
Gary Wu | 8789556 | 2018-09-11 14:28:49 -0700 | [diff] [blame] | 58 | <docker.pull.registry>nexus3.onap.org:10001</docker.pull.registry> |
| 59 | <docker.push.registry>nexus3.onap.org:10003</docker.push.registry> |
| 60 | --> |
Gary Wu | 7f1c152 | 2017-06-21 15:03:17 -0700 | [diff] [blame] | 61 | </properties> |
Gary Wu | 2a78a37 | 2017-08-21 14:03:14 -0700 | [diff] [blame] | 62 | <distributionManagement> |
| 63 | <repository> |
Gary Wu | dcfc344 | 2017-10-11 12:58:43 -0700 | [diff] [blame] | 64 | <id>ecomp-releases</id> |
Gary Wu | 2a78a37 | 2017-08-21 14:03:14 -0700 | [diff] [blame] | 65 | <url>${onap.nexus.url}/content/repositories/releases</url> |
| 66 | </repository> |
| 67 | <snapshotRepository> |
Gary Wu | dcfc344 | 2017-10-11 12:58:43 -0700 | [diff] [blame] | 68 | <id>ecomp-snapshots</id> |
Gary Wu | 2a78a37 | 2017-08-21 14:03:14 -0700 | [diff] [blame] | 69 | <url>${onap.nexus.url}/content/repositories/snapshots</url> |
| 70 | </snapshotRepository> |
| 71 | </distributionManagement> |
Gary Wu | 7f1c152 | 2017-06-21 15:03:17 -0700 | [diff] [blame] | 72 | <build> |
| 73 | <pluginManagement> |
| 74 | <plugins> |
| 75 | <plugin> |
Brian Freeman | fcd164a | 2019-11-07 15:56:25 -0500 | [diff] [blame] | 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> |
Gary Wu | 7f1c152 | 2017-06-21 15:03:17 -0700 | [diff] [blame] | 92 | <groupId>org.apache.maven.plugins</groupId> |
Gary Wu | 2a78a37 | 2017-08-21 14:03:14 -0700 | [diff] [blame] | 93 | <artifactId>maven-deploy-plugin</artifactId> |
Gary Wu | 07a40c8 | 2017-08-23 12:03:32 -0700 | [diff] [blame] | 94 | <!-- This version supports the "deployAtEnd" parameter --> |
| 95 | <version>2.8</version> |
Gary Wu | 7f1c152 | 2017-06-21 15:03:17 -0700 | [diff] [blame] | 96 | <configuration> |
Gary Wu | 07a40c8 | 2017-08-23 12:03:32 -0700 | [diff] [blame] | 97 | <skip/> |
Gary Wu | 7f1c152 | 2017-06-21 15:03:17 -0700 | [diff] [blame] | 98 | </configuration> |
Gary Wu | 07a40c8 | 2017-08-23 12:03:32 -0700 | [diff] [blame] | 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> |
Anaël Closson | 9ab3bc5 | 2017-08-28 15:35:58 +0200 | [diff] [blame] | 112 | <plugin> |
Anaël Closson | d25cc10 | 2017-08-28 15:43:22 +0200 | [diff] [blame] | 113 | <groupId>org.apache.maven.plugins</groupId> |
| 114 | <artifactId>maven-enforcer-plugin</artifactId> |
Gary Wu | 8789556 | 2018-09-11 14:28:49 -0700 | [diff] [blame] | 115 | <version>3.0.0-M2</version> |
Anaël Closson | d25cc10 | 2017-08-28 15:43:22 +0200 | [diff] [blame] | 116 | <executions> |
| 117 | <execution> |
Gary Wu | 8789556 | 2018-09-11 14:28:49 -0700 | [diff] [blame] | 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> |
Anaël Closson | d25cc10 | 2017-08-28 15:43:22 +0200 | [diff] [blame] | 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> |
Gary Wu | 926c756 | 2017-10-27 10:53:27 -0700 | [diff] [blame] | 142 | <level>ERROR</level> |
Anaël Closson | d25cc10 | 2017-08-28 15:43:22 +0200 | [diff] [blame] | 143 | </requireReleaseDeps> |
| 144 | </rules> |
| 145 | </configuration> |
| 146 | </execution> |
| 147 | </executions> |
| 148 | </plugin> |
Gary Wu | e3c423d | 2018-02-02 11:10:57 -0800 | [diff] [blame] | 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> |
Pamela Dragosh | 81f6ddb | 2020-01-09 20:21:59 -0500 | [diff] [blame] | 153 | <version>${sonar.scanner.version}</version> |
Gary Wu | e3c423d | 2018-02-02 11:10:57 -0800 | [diff] [blame] | 154 | </plugin> |
Gary Wu | 7f1c152 | 2017-06-21 15:03:17 -0700 | [diff] [blame] | 155 | </plugins> |
| 156 | </pluginManagement> |
Gary Wu | 07a40c8 | 2017-08-23 12:03:32 -0700 | [diff] [blame] | 157 | <plugins> |
| 158 | <plugin> |
Gary Wu | 07a40c8 | 2017-08-23 12:03:32 -0700 | [diff] [blame] | 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> |
Anaël Closson | 9ab3bc5 | 2017-08-28 15:35:58 +0200 | [diff] [blame] | 166 | <plugin> |
Anaël Closson | d25cc10 | 2017-08-28 15:43:22 +0200 | [diff] [blame] | 167 | <groupId>org.apache.maven.plugins</groupId> |
| 168 | <artifactId>maven-enforcer-plugin</artifactId> |
| 169 | </plugin> |
Gary Wu | 07a40c8 | 2017-08-23 12:03:32 -0700 | [diff] [blame] | 170 | </plugins> |
Gary Wu | 7f1c152 | 2017-06-21 15:03:17 -0700 | [diff] [blame] | 171 | </build> |
| 172 | </project> |