-
Notifications
You must be signed in to change notification settings - Fork 88
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
[JBPM-9860] fixing conflicts between transitive dependency artifact resolution #223
base: main
Are you sure you want to change the base?
Conversation
Can one of the admins verify this patch? |
4 similar comments
Can one of the admins verify this patch? |
Can one of the admins verify this patch? |
Can one of the admins verify this patch? |
Can one of the admins verify this patch? |
The change will end up deferring to this method in EmbeddedPomParser.java (https://github.com/kiegroup/kie-soup/blob/main/kie-soup-maven-utils/kie-soup-maven-integration/src/main/java/org/appformer/maven/integration/embedder/EmbeddedPomParser.java#L41) and at this location the MavenProject::getDependencies method (https://github.com/apache/maven/blob/maven-3.3.9/maven-core/src/main/java/org/apache/maven/project/MavenProject.java#L281). This core maven code correctly removes the conflicts from the dependencies. |
Hi @Hillrunner2008 Please check it and let me know your thoughts . The change is already in 7.59 snapshot. |
The change I made does not remove transitive dependencies, so I'm a little unclear on what you mean. The change only resolves conflicts in the dependency graph. There is no "effective pom" calculation that should ever include conflicts. Maybe I'm missing some context, but in what possible way would having the unresolved graph be useful in one of these many locations you are concerned about impacting? The business central editor and all other relevant code would I believe want to resolve classpath correctly. I think the original author of the code had the intention you are describing (i.e. include transitive dependencies), but they didn't completely think through the implications for a simple traversal and aggregation without conflict resolution. |
ok to test |
jenkins do fdb |
SonarCloud Quality Gate failed. |
jenkins do fdb |
1 similar comment
jenkins do fdb |
Hi @mareknovotny, @mbiarnes, @elguardian, and @bacciotti, I definitely never cared for the runtime resolution of classpath from maven repos (instead of binaries like traditional fat jar or war/WEB-INF/lib), but if the use of this utility is going to continue to exist in any supported version of a downstream project I'd imagine merging this PR still would still be beneficial. I believe I've made the case for this as strongly as I can. However, if there's no movement on this PR the next time I check, I'll plan to close it out as its clearly losing relevance. |
No description provided.