-
Notifications
You must be signed in to change notification settings - Fork 277
Added Maven native implementation using flexpack #3081
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
a1ecb5c to
2920eff
Compare
2920eff to
c02dc3c
Compare
c02dc3c to
15dabf6
Compare
15dabf6 to
78989c5
Compare
78989c5 to
1e5e5c1
Compare
utils/buildinfo/buildinfo.go
Outdated
| buildInstance, err := buildInfoService.GetOrCreateBuildWithProject( | ||
| buildInfo.Name, | ||
| buildInfo.Number, | ||
| "", // project key - can be empty for now |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! will add this.
utils/buildinfo/buildinfo.go
Outdated
| // Get deployment repository from configuration | ||
| deployRepo := getDeploymentRepoFromConfig(workingDir) | ||
| if deployRepo == "" { | ||
| deployRepo = "maven-flexpack-local" // fallback |
There was a problem hiding this comment.
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.
utils/buildinfo/buildinfo.go
Outdated
| // Also check for POM file (deployed by Maven from project root) | ||
| pomPatterns := []string{ | ||
| "pom.xml", // The original POM file that Maven deployed | ||
| } |
There was a problem hiding this comment.
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.
b978b0f to
8fb9220
Compare
f75cff3 to
3cfdf8d
Compare
3cfdf8d to
921aebe
Compare
73b02d5 to
9ab34a7
Compare
- 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
9ab34a7 to
32b305e
Compare

devbranch.go vet ./....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-goto provide enhanced build info collection and artifact management for Maven projects.Changes Made
FlexPack Integration
maven_test.gobuild-info-goFlexPack implementation for native Maven supportTest Enhancements
Dependencies
build-info-gorepositoryJFROG_RUN_NATIVE=trueenvironment variable for FlexPack executionFiles Modified
jfrog-cli/maven_test.go- Added FlexPack test coverage and fixed linting issues