Skip to content

Fix #25726: remove invalid <snapshots> block from snapshotRepository - #25739

Merged
wing328 merged 1 commit into
OpenAPITools:masterfrom
Inf1mum:fix/25726-pom-snapshots
Nov 21, 2026
Merged

wing328 merged 1 commit into
OpenAPITools:masterfrom
Inf1mum:fix/25726-pom-snapshots

Conversation

@Inf1mum

@Inf1mum Inf1mum commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #25726

The release profile's snapshotRepository carried a <snapshots><enabled>true</enabled></snapshots> block, which is not part of the Maven DeploymentRepository model (<snapshots>/<releases> are legal only in <repositories>/<pluginRepositories>). Maven silently drops the dead element, but strict parsers — per the issue, JFrog Artifactory's "Cleanup Repository References in POMs" — reject the published POM.

The three lines are removed; mvn help:effective-pom before/after is byte-identical, so the change is behavior-neutral for Maven while fixing strict-schema consumers.


Summary by cubic

Removes the invalid <snapshots> block from the release profile's snapshotRepository in pom.xml, fixing #25726. Maven's DeploymentRepository model doesn't allow <snapshots>/<releases> (those only belong in <repositories>/<pluginRepositories>), so strict consumers like JFrog Artifactory's POM cleanup reject the published POM. Maven silently discarded the dead element, and mvn help:effective-pom output is byte-identical, so the fix is behavior-neutral for Maven.

Written for commit 1fbc65e. Summary will update on new commits.

View guided diff

…otRepository> in release profile

Signed-off-by: Inf1mum <vadimlazuk5@gmail.com>

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

No issues found across 1 file

View guided diff | Re-trigger cubic

@wing328
wing328 merged commit 3d195e5 into OpenAPITools:master Nov 21, 2026
16 checks passed
@wing328 wing328 added this to the 7.28.0 milestone Nov 21, 2026
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.

[BUG][JAVA] 7.27.0 root pom.xml has invalid <snapshots> inside <distributionManagement><snapshotRepository>

2 participants