Skip to content
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

chore(jolokia): upgrade to Jolokia 1.7.0 #2594

Merged
merged 2 commits into from
Aug 26, 2021

Conversation

tadayosi
Copy link
Member

Fix #2593

Release Note

Jolokia is upgraded to 1.7.0

@astefanutti
Copy link
Member

There is an error during the build:

Failed to execute goal on project camel-k-integration: Could not resolve dependencies for project org.apache.camel.k.integration:camel-k-integration:jar:1.6.0-SNAPSHOT: Could not find artifact com.sun:tools:jar:1.8 at specified path /Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home/jre/../lib/tools.jar

@tadayosi
Copy link
Member Author

@astefanutti It's because jolokia-jvm 1.7.0 pom is somewhat broken (hardcoded macOS' system tools.jar dependency in the published pom). I did a bit dirty fix that explicitly exclude com.sun:tools from jolokia-jvm.

Please review again and let me know if there is a cleaner way.

At this moment, I also think there should be a way to specify exclusions for a dependency via Dependencies trait.

@@ -89,6 +89,14 @@ func ManageIntegrationDependencies(
gav := strings.TrimPrefix(d, "mvn:")

project.AddEncodedDependencyGAV(gav)
// hack for tools.jar dependency issue in jolokia-jvm
Copy link
Member

Choose a reason for hiding this comment

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

A TODO stating that the code block should be removed once it's fixed in the jolokia-jvm could be useful.

@tadayosi tadayosi force-pushed the Issue-2593-jolokia-upgrade branch from a618c74 to ceb4997 Compare August 26, 2021 08:22
@tadayosi tadayosi merged commit 45bcecb into apache:main Aug 26, 2021
@nicolaferraro nicolaferraro mentioned this pull request Sep 3, 2021
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.

Upgrade to Jolokia 1.7.0
3 participants