Skip to content

Commit

Permalink
Merge pull request #1325 from MyRobotLab/loggingfix
Browse files Browse the repository at this point in the history
clean up tika slf4j logging imports in document pipeline
  • Loading branch information
kwatters authored Aug 1, 2023
2 parents 8df9777 + 41688a3 commit 6bd029e
Show file tree
Hide file tree
Showing 2 changed files with 70 additions and 18 deletions.
76 changes: 58 additions & 18 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -163,10 +163,6 @@
<!-- Duplicate entry for com.squareup.okhttp3-okhttp-3.9.0 skipping -->
<!-- AzureTranslator end -->

<!-- BodyPart begin -->
<!-- Duplicate entry for org.apache.commons-commons-lang3-3.3.2 skipping -->
<!-- BodyPart end -->

<!-- BoofCv begin -->
<dependency>
<groupId>org.boofcv</groupId>
Expand Down Expand Up @@ -305,18 +301,62 @@
<!-- Docker end -->

<!-- DocumentPipeline begin -->
<!-- https://mvnrepository.com/artifact/org.apache.tika/tika-core -->
<dependency>
<groupId>org.apache.tika</groupId>
<artifactId>tika-core</artifactId>
<version>2.8.0</version>
</dependency>
<dependency>
<groupId>org.apache.tika</groupId>
<artifactId>tika-parser-audiovideo-module</artifactId>
<version>2.8.0</version>
</dependency>

<dependency>
<groupId>org.apache.tika</groupId>
<artifactId>tika-core</artifactId>
<version>2.8.0</version>
<scope>provided</scope>
<exclusions>
<exclusion>
<groupId>org.slf4j</groupId>
<artifactId>*</artifactId>
</exclusion>
<exclusion>
<groupId>log4j</groupId>
<artifactId>*</artifactId>
</exclusion>
<exclusion>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>*</artifactId>
</exclusion>
<exclusion>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>*</artifactId>
</exclusion>
<exclusion>
<groupId>io.netty</groupId>
<artifactId>*</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.tika</groupId>
<artifactId>tika-parser-audiovideo-module</artifactId>
<version>2.8.0</version>
<scope>provided</scope>
<exclusions>
<exclusion>
<groupId>org.slf4j</groupId>
<artifactId>*</artifactId>
</exclusion>
<exclusion>
<groupId>log4j</groupId>
<artifactId>*</artifactId>
</exclusion>
<exclusion>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>*</artifactId>
</exclusion>
<exclusion>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>*</artifactId>
</exclusion>
<exclusion>
<groupId>io.netty</groupId>
<artifactId>*</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.opennlp</groupId>
<artifactId>opennlp-tools</artifactId>
Expand Down Expand Up @@ -1243,13 +1283,13 @@
<dependency>
<groupId>org.bytedeco</groupId>
<artifactId>cpython-platform</artifactId>
<version>3.11.3-1.5.9</version>
<version>3.10.8-1.5.8</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.bytedeco</groupId>
<artifactId>cpython</artifactId>
<version>3.11.3-1.5.9</version>
<version>3.10.8-1.5.8</version>
<scope>provided</scope>
</dependency>
<!-- Py4j end -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,19 @@ public DocumentPipelineMeta() {
addDescription("This service will pass a document through a document processing pipeline made up of transformers");
addCategory("ingest");
addDependency("org.apache.tika", "tika-core", "2.8.0");
exclude("org.slf4j", "*");
exclude("log4j", "*");
exclude("org.apache.logging.log4j", "*");
exclude("com.fasterxml.jackson.core", "*");
exclude("io.netty", "*");

addDependency("org.apache.tika", "tika-parser-audiovideo-module", "2.8.0");
exclude("org.slf4j", "*");
exclude("log4j", "*");
exclude("org.apache.logging.log4j", "*");
exclude("com.fasterxml.jackson.core", "*");
exclude("io.netty", "*");


addDependency("org.apache.opennlp", "opennlp-tools", "1.6.0");
addDependency("net.objecthunter", "exp4j", "0.4.8");
Expand Down

0 comments on commit 6bd029e

Please sign in to comment.