Skip to content

Commit ead33d7

Browse files
committed
[KYUUBI #2837] [BUILD] Support publish to private repo
### _Why are the changes needed?_ Usage: ``` build/mvn clean deploy -DskipTests -Pflink-provided,spark-provided,hive-provided,spark-3.3 \ -DdistMgmtReleaseId=xxx \ -DdistMgmtReleaseName=xxx \ -DdistMgmtReleaseUrl=xxx ``` ### _How was this patch tested?_ - [ ] Add some test cases that check the changes thoroughly including negative and positive cases if possible - [ ] Add screenshots for manual tests if appropriate - [ ] [Run test](https://kyuubi.apache.org/docs/latest/develop_tools/testing.html#running-tests) locally before make a pull request Closes #2837 from pan3793/deploy. Closes #2837 48d923e [Cheng Pan] 1 81fc8d3 [Cheng Pan] [BUILD] Support publish to private repo Authored-by: Cheng Pan <chengpan@apache.org> Signed-off-by: Cheng Pan <chengpan@apache.org>
1 parent f8e20e3 commit ead33d7

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

pom.xml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,13 @@
211211

212212
<!-- Package to use when relocating shaded classes. -->
213213
<kyuubi.shade.packageName>org.apache.kyuubi.shade</kyuubi.shade.packageName>
214+
215+
<distMgmtReleaseId>apache.releases.https</distMgmtReleaseId>
216+
<distMgmtReleaseName>Apache Release Distribution Repository</distMgmtReleaseName>
217+
<distMgmtReleaseUrl>https://repository.apache.org/service/local/staging/deploy/maven2</distMgmtReleaseUrl>
218+
<distMgmtSnapshotsId>apache.snapshots.https</distMgmtSnapshotsId>
219+
<distMgmtSnapshotsName>Apache Development Snapshot Repository</distMgmtSnapshotsName>
220+
<distMgmtSnapshotsUrl>https://repository.apache.org/content/repositories/snapshots</distMgmtSnapshotsUrl>
214221
</properties>
215222

216223
<repositories>
@@ -264,6 +271,19 @@
264271
</pluginRepository>
265272
</pluginRepositories>
266273

274+
<distributionManagement>
275+
<repository>
276+
<id>${distMgmtReleaseId}</id>
277+
<name>${distMgmtReleaseName}</name>
278+
<url>${distMgmtReleaseUrl}</url>
279+
</repository>
280+
<snapshotRepository>
281+
<id>${distMgmtSnapshotsId}</id>
282+
<name>${distMgmtSnapshotsName}</name>
283+
<url>${distMgmtSnapshotsUrl}</url>
284+
</snapshotRepository>
285+
</distributionManagement>
286+
267287
<dependencyManagement>
268288
<dependencies>
269289
<dependency>

0 commit comments

Comments
 (0)