Fix Maven verify goal including undeployed artifacts in build info#830
Merged
agrasth merged 1 commit intojfrog:masterfrom Sep 23, 2025
Merged
Fix Maven verify goal including undeployed artifacts in build info#830agrasth merged 1 commit intojfrog:masterfrom
agrasth merged 1 commit intojfrog:masterfrom
Conversation
bhanurp
approved these changes
Sep 23, 2025
nitinp19
pushed a commit
to nitinp19/build-info
that referenced
this pull request
Sep 23, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fix Maven verify goal including undeployed artifacts in build info
Problem
Maven
verifygoal was incorrectly including built artifacts in the build info even though these artifacts were never deployed to Artifactory. This caused issues when creating Release Bundles, as they referenced non-existent artifacts.Solution
Added a check in
BuildInfoRecorder.addArtifactsToCurrentModule()to respect thepublish.artifactsconfiguration property. When artifact publishing is disabled, the extractor now skips artifact collection entirely.Changes
build-info-extractor-maven3/src/main/java/org/jfrog/build/extractor/maven/BuildInfoRecorder.java!conf.publisher.isPublishArtifacts()check before collecting artifactsmvn verify: ✅ Dependencies collected, ❌ No artifacts in build infomvn deploy: ✅ Dependencies collected, ✅ Artifacts collected and deployedTesting
verifygoal produces build info with 0 artifacts and dependencies intactdeploygoal continues to work normally with artifacts includedImpact
Fixes Release Bundle creation failures caused by referencing undeployed artifacts from
verifybuilds.