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

[HOP-3977] Fat JAR generated in hop-web container is missing some dependencies #1524

Merged
merged 2 commits into from Jun 6, 2022

Conversation

iht
Copy link
Contributor

@iht iht commented Jun 5, 2022

Fat JAR generated in hop-web container is missing some dependencies

The fat JAR generated with the docker hop-web container is missing all the JARs included in the lib directory of Hop, and it only includes the JARs in the Tomcat lib directory, and the plugins JARs.

This change checks if we are running in Tomcat in the docker hop-web container and in that case, it adds all the Hop lib JARs too.

There is an additional small change, related to HOP-3966: if the libswt directory does not exist, the plugin does not attempt to import JARs from that directory. Attempting that import makes the fat JAR generation fail.

iht added 2 commits June 6, 2022 01:34
In the hop-web Docker image, this directory does not exist, and the generation of a fat JAR fails.
This is required for the JAR to work with Cloud Dataflow, and the issue probably happens with other runners too.

The directory only exists if this is running in Tomcat.
@hansva hansva requested a review from mattcasters June 6, 2022 13:41
@mattcasters mattcasters merged commit b2e9d1c into apache:master Jun 6, 2022
@iht iht deleted the add_all_jars branch June 6, 2022 15:13
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.

None yet

2 participants