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

Change context classloader when starting clojure runtime #240

Merged
merged 1 commit into from Feb 10, 2022
Merged

Change context classloader when starting clojure runtime #240

merged 1 commit into from Feb 10, 2022

Conversation

ghost
Copy link

@ghost ghost commented Feb 9, 2022

If running under maven 3.8.4, the clojure extension dies when it's
trying to initialize clojure runtime. Unlike in #117, this does not
happen during compilation of clojure sources, but rather when reading
pom.clj.

The fix changes the context classloader of the current thread from
whatever maven now sets it to to a classloader known to have clojure
available. It's copied essentially verbatim from this SO
answer
.

For #239

If running under maven 3.8.4, the clojure extension dies when it's
trying to initialize clojure runtime. Unlike in #117, this does not
happen during compilation of clojure sources, but rather when reading
`pom.clj`.

The fix changes the context classloader of the current thread from
whatever maven now sets it to to a classloader known to have clojure
available. It's copied essentially verbatim from [this SO
answer](https://stackoverflow.com/a/13711141/6564029).
@jvanzyl jvanzyl merged commit 8f0fb13 into takari:master Feb 10, 2022
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.

1 participant