blob: 5170580dca5c8a175607a9b3cce49c2c37f48914 [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.
Anaël Closson9ab3bc52017-08-28 15:35:58 +02004 Modifications copyright (C) 2017 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>
Gary Wue26a9902018-11-13 09:39:13 -080023 <version>1.2.3-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>
35 <maven.compiler.source>1.8</maven.compiler.source>
36 <maven.compiler.target>1.8</maven.compiler.target>
37 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
38 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
Gary Wuff1f3422017-08-23 13:24:41 -070039 <!-- sitePath may be overridden in the inheriting POM if desired -->
40 <sitePath>/content/sites/site/${project.groupId}/${project.artifactId}/${project.version}</sitePath>
Gary Wu87895562018-09-11 14:28:49 -070041
42 <!--
43 The following properties should be defined in your own ~/.m2/settings.xml based on your own build infastructure setup.
44 See the settings.xml in this directory for default settings based on the Linux Foundation ONAP infrastructure.
45
46 <onap.nexus.url>https://nexus.onap.org</onap.nexus.url>
Lusheng Jicbb90272017-09-01 17:43:02 +000047 <onap.nexus.rawrepo.baseurl.upload>https://nexus.onap.org/content/sites/raw</onap.nexus.rawrepo.baseurl.upload>
Gary Wu87895562018-09-11 14:28:49 -070048 <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 +000049 <onap.nexus.rawrepo.serverid>ecomp-raw</onap.nexus.rawrepo.serverid>
Lusheng Jicbb90272017-09-01 17:43:02 +000050 <onap.nexus.dockerregistry.daily>nexus3.onap.org:10003</onap.nexus.dockerregistry.daily>
51 <onap.nexus.dockerregistry.release>nexus3.onap.org:10002</onap.nexus.dockerregistry.release>
Gary Wu87895562018-09-11 14:28:49 -070052 <docker.pull.registry>nexus3.onap.org:10001</docker.pull.registry>
53 <docker.push.registry>nexus3.onap.org:10003</docker.push.registry>
54 -->
Gary Wu7f1c1522017-06-21 15:03:17 -070055 </properties>
Gary Wu2a78a372017-08-21 14:03:14 -070056 <distributionManagement>
57 <repository>
Gary Wudcfc3442017-10-11 12:58:43 -070058 <id>ecomp-releases</id>
Gary Wu2a78a372017-08-21 14:03:14 -070059 <url>${onap.nexus.url}/content/repositories/releases</url>
60 </repository>
61 <snapshotRepository>
Gary Wudcfc3442017-10-11 12:58:43 -070062 <id>ecomp-snapshots</id>
Gary Wu2a78a372017-08-21 14:03:14 -070063 <url>${onap.nexus.url}/content/repositories/snapshots</url>
64 </snapshotRepository>
65 </distributionManagement>
Gary Wu7f1c1522017-06-21 15:03:17 -070066 <build>
67 <pluginManagement>
68 <plugins>
69 <plugin>
Gary Wu2a78a372017-08-21 14:03:14 -070070 <groupId>org.sonatype.plugins</groupId>
71 <artifactId>nexus-staging-maven-plugin</artifactId>
72 <version>1.6.7</version>
73 <extensions>true</extensions>
Gary Wu7f1c1522017-06-21 15:03:17 -070074 <configuration>
Gary Wu2a78a372017-08-21 14:03:14 -070075 <nexusUrl>${onap.nexus.url}</nexusUrl>
76 <stagingProfileId>176c31dfe190a</stagingProfileId>
Gary Wudcfc3442017-10-11 12:58:43 -070077 <serverId>ecomp-staging</serverId>
Gary Wu7f1c1522017-06-21 15:03:17 -070078 </configuration>
Gary Wu07a40c82017-08-23 12:03:32 -070079 </plugin>
80 <plugin>
Gary Wu7f1c1522017-06-21 15:03:17 -070081 <groupId>org.apache.maven.plugins</groupId>
Gary Wu2a78a372017-08-21 14:03:14 -070082 <artifactId>maven-deploy-plugin</artifactId>
Gary Wu07a40c82017-08-23 12:03:32 -070083 <!-- This version supports the "deployAtEnd" parameter -->
84 <version>2.8</version>
Gary Wu7f1c1522017-06-21 15:03:17 -070085 <configuration>
Gary Wu07a40c82017-08-23 12:03:32 -070086 <skip/>
Gary Wu7f1c1522017-06-21 15:03:17 -070087 </configuration>
Gary Wu07a40c82017-08-23 12:03:32 -070088 </plugin>
89 <plugin>
90 <groupId>org.apache.maven.plugins</groupId>
91 <artifactId>maven-site-plugin</artifactId>
92 <version>3.6</version>
93 <dependencies>
94 <dependency>
95 <groupId>org.apache.maven.wagon</groupId>
96 <artifactId>wagon-webdav-jackrabbit</artifactId>
97 <version>2.10</version>
98 </dependency>
99 </dependencies>
100 </plugin>
Anaël Closson9ab3bc52017-08-28 15:35:58 +0200101 <plugin>
Anaël Clossond25cc102017-08-28 15:43:22 +0200102 <groupId>org.apache.maven.plugins</groupId>
103 <artifactId>maven-enforcer-plugin</artifactId>
Gary Wu87895562018-09-11 14:28:49 -0700104 <version>3.0.0-M2</version>
Anaël Clossond25cc102017-08-28 15:43:22 +0200105 <executions>
106 <execution>
Gary Wu87895562018-09-11 14:28:49 -0700107 <id>enforce-property</id>
108 <goals>
109 <goal>enforce</goal>
110 </goals>
111 <configuration>
112 <rules>
113 <requireProperty>
114 <property>onap.nexus.url</property>
115 <message>You must set a onap.nexus.url property in your ~/.m2/settings.xml. See oparent/settings.xml for an example.</message>
116 </requireProperty>
117 </rules>
118 <fail>true</fail>
119 </configuration>
120 </execution>
121 <execution>
Anaël Clossond25cc102017-08-28 15:43:22 +0200122 <id>enforce-no-snapshots</id>
123 <goals>
124 <goal>enforce</goal>
125 </goals>
126 <configuration>
127 <rules>
128 <requireReleaseDeps>
129 <failWhenParentIsSnapshot>false</failWhenParentIsSnapshot>
130 <onlyWhenRelease>true</onlyWhenRelease>
Gary Wu926c7562017-10-27 10:53:27 -0700131 <level>ERROR</level>
Anaël Clossond25cc102017-08-28 15:43:22 +0200132 </requireReleaseDeps>
133 </rules>
134 </configuration>
135 </execution>
136 </executions>
137 </plugin>
Gary Wue3c423d2018-02-02 11:10:57 -0800138 <!-- https://mvnrepository.com/artifact/org.sonarsource.scanner.maven/sonar-maven-plugin -->
139 <plugin>
140 <groupId>org.sonarsource.scanner.maven</groupId>
141 <artifactId>sonar-maven-plugin</artifactId>
Jessica Wagantallb8f094b2018-02-05 17:59:39 -0800142 <version>3.2</version>
Gary Wue3c423d2018-02-02 11:10:57 -0800143 </plugin>
Gary Wu7f1c1522017-06-21 15:03:17 -0700144 </plugins>
145 </pluginManagement>
Gary Wu07a40c82017-08-23 12:03:32 -0700146 <plugins>
147 <plugin>
148 <groupId>org.sonatype.plugins</groupId>
149 <artifactId>nexus-staging-maven-plugin</artifactId>
150 </plugin>
151 <plugin>
152 <groupId>org.apache.maven.plugins</groupId>
153 <artifactId>maven-deploy-plugin</artifactId>
154 </plugin>
155 <plugin>
156 <groupId>org.apache.maven.plugins</groupId>
157 <artifactId>maven-site-plugin</artifactId>
158 </plugin>
Anaël Closson9ab3bc52017-08-28 15:35:58 +0200159 <plugin>
Anaël Clossond25cc102017-08-28 15:43:22 +0200160 <groupId>org.apache.maven.plugins</groupId>
161 <artifactId>maven-enforcer-plugin</artifactId>
162 </plugin>
Gary Wu07a40c82017-08-23 12:03:32 -0700163 </plugins>
Gary Wu87895562018-09-11 14:28:49 -0700164
Gary Wu7f1c1522017-06-21 15:03:17 -0700165 </build>
166</project>