Unable to Compile Maven Project with Guava using j2cl-maven-plugin #269
Unanswered
loveslikey
asked this question in
Q&A
Replies: 1 comment 3 replies
-
This is new ground to cover - to my knowledge no one has investigated using guava in j2cl-maven-plugin yet. I believe that the bazel sample project that you referenced has some custom wiring for guava, it might be necessary to look into what that does exactly and seek to replicate it for this plugin. Can you share the entire log, and confirm that the jar you have listed has the sources for ImmutableList.java (and that you do not need, for example, to have the sources jar added too)? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am currently working on a project where I'm attempting to use the j2cl-maven-plugin to compile Java code for use in a browser environment. I've noticed that in the official demo, bazel-helloworld, libraries like Guava are being utilized successfully. However, when I try to import these same libraries (e.g., Guava ) into my Maven project using the j2cl-maven-plugin, the compilation fails.
I've searched for documentation or examples that might explain how to properly include these libraries in a Maven project with j2cl-maven-plugin, but haven't found anything relevant.
Could you please provide guidance on how to successfully use libraries like Guava with j2cl-maven-plugin in a Maven project? Is there a special configuration or additional steps that I need to follow?
Thank you for your assistance!
maven dependency
<dependency>\n <groupId>com.google.guava</groupId> <artifactId>guava-gwt</artifactId> <version>32.1.1-jre</version> </dependency>
Beta Was this translation helpful? Give feedback.
All reactions