Skip to content

Conversation

@agrasth
Copy link
Contributor

@agrasth agrasth commented Sep 11, 2025

  • All tests have passed. If this feature is not already covered by the tests, new tests have been added.
  • The pull request is targeting the dev branch.
  • The code has been validated to compile successfully by running go vet ./....
  • The code has been formatted properly using go fmt ./....

Add FlexPack Maven Support to JFrog CLI

Summary

Implements native FlexPack Maven support in JFrog CLI, leveraging the FlexPack implementation from build-info-go to provide enhanced build info collection and artifact management for Maven projects.

Changes Made

FlexPack Integration

  • Added FlexPack Maven test coverage in maven_test.go
  • Integrated with build-info-go FlexPack implementation for native Maven support
  • Added tests for FlexPack build info collection and artifact deployment
  • Implemented build properties validation for FlexPack-deployed artifacts

Test Enhancements

  • TestMavenBuildWithFlexPack: Validates FlexPack artifact deployment
  • TestMavenBuildWithFlexPackBuildInfo: Tests build info collection with dependency tracking
  • TestMavenFlexPackBuildProperties: Verifies build properties are correctly set on artifacts
  • Added comprehensive dependency validation (checksums, scopes, types)

Dependencies

  • Utilizes FlexPack implementation from build-info-go repository
  • Requires JFROG_RUN_NATIVE=true environment variable for FlexPack execution

Files Modified

  • jfrog-cli/maven_test.go - Added FlexPack test coverage and fixed linting issues

@agrasth agrasth added the improvement Automatically generated release notes label Sep 11, 2025
@agrasth agrasth added the safe to test Approve running integration tests on a pull request label Sep 14, 2025
@github-actions github-actions bot removed the safe to test Approve running integration tests on a pull request label Sep 14, 2025
@agrasth agrasth changed the base branch from dev-deprecated-please-target-master-directly to master September 16, 2025 07:15
@agrasth agrasth added the safe to test Approve running integration tests on a pull request label Sep 16, 2025
@github-actions github-actions bot removed the safe to test Approve running integration tests on a pull request label Sep 16, 2025
buildInstance, err := buildInfoService.GetOrCreateBuildWithProject(
buildInfo.Name,
buildInfo.Number,
"", // project key - can be empty for now
Copy link
Collaborator

Choose a reason for hiding this comment

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

Shouldn't we pass projectKey that is available with buildInfoService?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks! will add this.

// Get deployment repository from configuration
deployRepo := getDeploymentRepoFromConfig(workingDir)
if deployRepo == "" {
deployRepo = "maven-flexpack-local" // fallback
Copy link
Collaborator

Choose a reason for hiding this comment

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

We should use Const for storing hardcoded strings.

// Also check for POM file (deployed by Maven from project root)
pomPatterns := []string{
"pom.xml", // The original POM file that Maven deployed
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why only file inside slice? Are we expecting more files to be added inside it? If no, then no need of slice.

@agrasth agrasth force-pushed the mavenFlexpack branch 2 times, most recently from f75cff3 to 3cfdf8d Compare September 22, 2025 20:25
@ehl-jf ehl-jf added the safe to test Approve running integration tests on a pull request label Sep 22, 2025
@github-actions github-actions bot removed the safe to test Approve running integration tests on a pull request label Sep 22, 2025
@ehl-jf ehl-jf added the safe to test Approve running integration tests on a pull request label Sep 30, 2025
@github-actions github-actions bot removed the safe to test Approve running integration tests on a pull request label Sep 30, 2025
@ehl-jf ehl-jf added the safe to test Approve running integration tests on a pull request label Sep 30, 2025
@github-actions github-actions bot removed the safe to test Approve running integration tests on a pull request label Sep 30, 2025
- Removed duplicate import of jfrog-cli-core/v2/utils/log
- The file already uses jfrog-client-go/utils/log package
- This fixes the build error with redeclared log package
@ehl-jf ehl-jf added the safe to test Approve running integration tests on a pull request label Sep 30, 2025
@github-actions github-actions bot removed the safe to test Approve running integration tests on a pull request label Sep 30, 2025
@ehl-jf ehl-jf added the safe to test Approve running integration tests on a pull request label Oct 6, 2025
@github-actions github-actions bot removed the safe to test Approve running integration tests on a pull request label Oct 6, 2025
@ehl-jf ehl-jf added the safe to test Approve running integration tests on a pull request label Oct 6, 2025
@github-actions github-actions bot removed the safe to test Approve running integration tests on a pull request label Oct 6, 2025
@ehl-jf ehl-jf added the safe to test Approve running integration tests on a pull request label Oct 6, 2025
@github-actions github-actions bot removed the safe to test Approve running integration tests on a pull request label Oct 6, 2025
@ehl-jf ehl-jf added the safe to test Approve running integration tests on a pull request label Oct 6, 2025
@github-actions github-actions bot removed the safe to test Approve running integration tests on a pull request label Oct 6, 2025
@ehl-jf ehl-jf added the safe to test Approve running integration tests on a pull request label Oct 6, 2025
@github-actions github-actions bot removed the safe to test Approve running integration tests on a pull request label Oct 6, 2025
@agrasth agrasth added the safe to test Approve running integration tests on a pull request label Oct 6, 2025
@github-actions github-actions bot removed the safe to test Approve running integration tests on a pull request label Oct 6, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Oct 6, 2025

👍 Frogbot scanned this pull request and did not find any new security issues.


@agrasth agrasth merged commit e0da457 into jfrog:master Oct 6, 2025
81 of 126 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

improvement Automatically generated release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants