-
Notifications
You must be signed in to change notification settings - Fork 25k
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
Remove intellij jar hell leniency #13404
Comments
+1 I think it makes sense to run tests in IDEs the same way as we run in maven. I will try to figure out how to fix intellij and post a guide here. |
+1 |
1 similar comment
+1 |
running this patch with IntelliJ 14 passes without a jarhell. diff --git a/core/src/test/java/org/elasticsearch/bootstrap/BootstrapForTesting.java b/core/src/test/java/org/elasticsearch/bootstrap/BootstrapForTesting.java
index a7b9043..d942cc2 100644
--- a/core/src/test/java/org/elasticsearch/bootstrap/BootstrapForTesting.java
+++ b/core/src/test/java/org/elasticsearch/bootstrap/BootstrapForTesting.java
@@ -61,13 +61,7 @@ public class BootstrapForTesting {
try {
JarHell.checkJarHell();
} catch (Exception e) {
- if (Boolean.parseBoolean(System.getProperty("tests.maven"))) {
- throw new RuntimeException("found jar hell in test classpath", e);
- } else {
- Loggers.getLogger(BootstrapForTesting.class)
- .warn("Your ide or custom test runner has jar hell issues, " +
- "you might want to look into that", e);
- }
+ throw new RuntimeException("found jar hell in test classpath", e);
} I think we are good to go |
Closes #13404 Conflicts: core/src/test/java/org/elasticsearch/bootstrap/BootstrapForTesting.java
Is there a way to disable the jar hell check? I am using elasticsearch with several other libraries, and there are no simple solutions to completely get rid of jar hell in all my dependencies. It seems that the way things are implemented, I can't even swallow the exception and move along. |
No. |
Its confusing to people that we are lenient to jar hell when running under intellij: thats totally an intellij bug, but by allowing it, people think that jar hell check is "optional" or that we don't execute it in tests, which we totally do in maven and jenkins.
This leniency needs to be removed.
The text was updated successfully, but these errors were encountered: