diff options
author | gjoranv <gv@oath.com> | 2018-07-25 17:04:19 +0200 |
---|---|---|
committer | gjoranv <gv@oath.com> | 2018-07-25 17:04:19 +0200 |
commit | f8e8977ea94c8f8274ac3f6058195c763035ffd9 (patch) | |
tree | 9310aa5641a40953f80e57ae318ab69a7af6c6ae /linguistics/pom.xml | |
parent | 7fc037ff1fb000914b33103e88b8722393c1eec3 (diff) |
Must exclude slf4j from language-detector to avoid compile scope.
.. and linkage error:
java.lang.LinkageError: loader constraint violation: when resolving method "org.slf4j.impl.StaticLoggerBinder.getLoggerFactory()Lorg/slf4j/ILoggerFactory;" the class loader (instance of org/apache/felix/framework/BundleWiringImpl$BundleClassLoader) of the current class, org/slf4j/LoggerFactory, and the class loader (instance of sun/misc/Launcher$AppClassLoader) for the method's defining class, org/slf4j/impl/StaticLoggerBinder, have different Class objects for the type org/slf4j/ILoggerFactory used in the signature
Diffstat (limited to 'linguistics/pom.xml')
-rw-r--r-- | linguistics/pom.xml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/linguistics/pom.xml b/linguistics/pom.xml index f743348dde3..3a308151a15 100644 --- a/linguistics/pom.xml +++ b/linguistics/pom.xml @@ -69,6 +69,12 @@ <dependency> <groupId>com.optimaize.languagedetector</groupId> <artifactId>language-detector</artifactId> + <exclusions> + <exclusion> + <groupId>org.slf4j</groupId> + <artifactId>slf4j-api</artifactId> + </exclusion> + </exclusions> </dependency> </dependencies> <build> |