Skip to content

RATIS-2429. ratis-bom module fails to deploy due to missing distributionManagement configuration#1371

Merged
adoroszlai merged 2 commits intoapache:masterfrom
OneSizeFitsQuorum:jira2429
Mar 10, 2026
Merged

RATIS-2429. ratis-bom module fails to deploy due to missing distributionManagement configuration#1371
adoroszlai merged 2 commits intoapache:masterfrom
OneSizeFitsQuorum:jira2429

Conversation

@OneSizeFitsQuorum
Copy link
Contributor

Signed-off-by: OneSizeFitsQuorum <tanxinyu@apache.org>

<properties>
<ratis.thirdparty.version>1.0.10</ratis.thirdparty.version>
<ratis.thirdparty.version>1.0.11</ratis.thirdparty.version>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch, I missed following my own comment:

ratis/pom.xml

Lines 185 to 186 in 1433b4c

<!-- Contains all shaded thirdparty dependencies; make sure to also update in ratis-bom/pom.xml -->
<ratis.thirdparty.version>1.0.11</ratis.thirdparty.version>

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was just an accidental discovery :)

Comment on lines +25 to +36
<distributionManagement>
<repository>
<id>apache.staging.https</id>
<name>Apache Release Distribution Repository</name>
<url>https://repository.apache.org/service/local/staging/deploy/maven2</url>
</repository>
<snapshotRepository>
<id>apache.snapshots.https</id>
<name>Apache Development Snapshot Repository</name>
<url>https://repository.apache.org/content/repositories/snapshots</url>
</snapshotRepository>
</distributionManagement>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we copy from root POM both distributionManagement and the properties it refers to, as is?

ratis/pom.xml

Lines 36 to 47 in 1433b4c

<distributionManagement>
<repository>
<id>${distMgmtStagingId}</id>
<name>${distMgmtStagingName}</name>
<url>${distMgmtStagingUrl}</url>
</repository>
<snapshotRepository>
<id>${distMgmtSnapshotsId}</id>
<name>${distMgmtSnapshotsName}</name>
<url>${distMgmtSnapshotsUrl}</url>
</snapshotRepository>
</distributionManagement>

ratis/pom.xml

Lines 171 to 176 in 1433b4c

<distMgmtSnapshotsId>apache.snapshots.https</distMgmtSnapshotsId>
<distMgmtSnapshotsName>Apache Development Snapshot Repository</distMgmtSnapshotsName>
<distMgmtSnapshotsUrl>https://repository.apache.org/content/repositories/snapshots</distMgmtSnapshotsUrl>
<distMgmtStagingId>apache.staging.https</distMgmtStagingId>
<distMgmtStagingName>Apache Release Distribution Repository</distMgmtStagingName>
<distMgmtStagingUrl>https://repository.apache.org/service/local/staging/deploy/maven2</distMgmtStagingUrl>

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Currently, there are no properties in the ratis-bom, so I think the current style is consistent. I think it's both OK whether to change it or not.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My concern is that if someone builds the project with custom repo (-DdistMgmtStagingUrl=... or similar), ratis-bom might unexpectedly get deployed to Apache. Copying the properties would prevent it, custom value would be applied to ratis-bom lke all other modules.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make Sense! Fixed!

@adoroszlai adoroszlai merged commit f333acf into apache:master Mar 10, 2026
16 checks passed
adoroszlai pushed a commit that referenced this pull request Mar 10, 2026
…ionManagement configuration (#1371)

(cherry picked from commit f333acf)
@OneSizeFitsQuorum OneSizeFitsQuorum deleted the jira2429 branch March 10, 2026 16:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants