[
https://issues.apache.org/jira/browse/IGNITE-15354?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17432565#comment-17432565
]
Konstantin Orlov edited comment on IGNITE-15354 at 10/21/21, 3:49 PM:
----------------------------------------------------------------------
Hi, [~apolovtcev]. I've tried to do the same with Caffeine cache.
Since that cache potentially could be used by multiple modules, I've decided to
adopt approach I saw in Apache jclouds project: introduce a separate module
{{ignite-caffeine}} containing only caffeine dependency and shade plugin. All
client modules suppose to be dependent on newly introduced module.
The result is not so good: everything works fine when running from terminal,
but IDEA refuced to attach generated jar to class path. After attaching
manually that jar as external library, the IDEA become able to build the
project, but running IT test still fails in runtime with NoClassDefFound
exception.
I found opened issue which seems to relate to the mentioned problem:
https://youtrack.jetbrains.com/issue/IDEA-93855
was (Author: korlov):
Hi, Alex. I've tried to do the same with Caffeine cache.
Since that cache potentially could be used by multiple modules, I've decided to
adopt approach I saw in Apache jclouds project: introduce a separate module
{{ignite-caffeine}} containing only caffeine dependency and shade plugin. All
client modules suppose to be dependent on newly introduced module.
The result is not so good: everything works fine when running from terminal,
but IDEA refuced to attach generated jar to class path. After attaching
manually that jar as external library, the IDEA become able to build the
project, but running IT test still fails in runtime with NoClassDefFound
exception.
I found opened issue which seems to relate to the mentioned problem:
https://youtrack.jetbrains.com/issue/IDEA-93855
> Investigate Maven Shade plugin capabilities for Guava
> -----------------------------------------------------
>
> Key: IGNITE-15354
> URL: https://issues.apache.org/jira/browse/IGNITE-15354
> Project: Ignite
> Issue Type: Task
> Reporter: Aleksandr Polovtcev
> Assignee: Aleksandr Polovtcev
> Priority: Major
> Labels: ignite-3
>
> Since we want to somehow shade the Guava library into the Ignite 3 project,
> we need to understand if it is possible to do using the Shade plugin
> ([https://maven.apache.org/plugins/maven-shade-plugin/)] . In particular, the
> following should be investigated:
> # How to re-write the Guava package names in transitive dependencies (e.g.
> Calcite).
> # How to minimize the shaded JAR (remove unneeded classes to reduce the JAR
> size).
--
This message was sent by Atlassian Jira
(v8.3.4#803005)