From a6151d93c4b97f1d4b911aca7a2f189fb84f3e5b Mon Sep 17 00:00:00 2001 From: Jochen Schalanda Date: Sun, 7 Jun 2020 10:57:45 +0200 Subject: [PATCH] Fix Maven warnings ``` [WARNING] Some problems were encountered while building the effective model for com.github.pinterest:kafkastats:jar:0.2.4.9 [WARNING] 'build.plugins.plugin.(groupId:artifactId)' must be unique but found duplicate declaration of plugin org.apache.maven.plugins:maven-assembly-plugin @ line 154, column 21 [WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: org.apache.avro:avro:jar -> duplicate declaration of version 1.8.2 @ com.github.pinterest:doctorkafka-parent:0.2.4.9, /Users/joschi/src/doctorkafka/pom.xml, line 101, column 15 [WARNING] 'build.plugins.plugin.version' for org.codehaus.mojo:build-helper-maven-plugin is missing. @ line 109, column 21 [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-source-plugin is missing. @ line 142, column 21 [WARNING] [WARNING] Some problems were encountered while building the effective model for com.github.pinterest:doctorkafka:jar:0.2.4.9 [WARNING] 'build.plugins.plugin.(groupId:artifactId)' must be unique but found duplicate declaration of plugin org.apache.maven.plugins:maven-assembly-plugin @ line 263, column 12 [WARNING] 'build.plugins.plugin.version' for org.codehaus.mojo:build-helper-maven-plugin is missing. @ line 234, column 12 [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-source-plugin is missing. @ line 251, column 12 [WARNING] [WARNING] Some problems were encountered while building the effective model for com.github.pinterest:doctorkafka-parent:pom:0.2.4.9 [WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: org.apache.avro:avro:jar -> duplicate declaration of version 1.8.2 @ line 101, column 15 [WARNING] [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build. [WARNING] [WARNING] For this reason, future Maven versions might no longer support building such malformed projects. ``` --- drkafka/pom.xml | 26 -------------------------- kafkastats/pom.xml | 16 ---------------- pom.xml | 25 ++++++++++++++++++++----- 3 files changed, 20 insertions(+), 47 deletions(-) diff --git a/drkafka/pom.xml b/drkafka/pom.xml index 9f2f560c..900019f8 100644 --- a/drkafka/pom.xml +++ b/drkafka/pom.xml @@ -157,16 +157,6 @@ ${dropwizard.version} test - - org.apache.kafka - kafka_2.12 - - - org.slf4j - slf4j-log4j12 - - - @@ -260,22 +250,6 @@ - - maven-assembly-plugin - - - package - - single - - - - - - jar-with-dependencies - - - org.apache.maven.plugins maven-gpg-plugin diff --git a/kafkastats/pom.xml b/kafkastats/pom.xml index 6dd52630..0468166c 100644 --- a/kafkastats/pom.xml +++ b/kafkastats/pom.xml @@ -151,22 +151,6 @@ - - maven-assembly-plugin - - - package - - single - - - - - - jar-with-dependencies - - - org.apache.maven.plugins maven-gpg-plugin diff --git a/pom.xml b/pom.xml index ff5e6edd..9d1e5303 100644 --- a/pom.xml +++ b/pom.xml @@ -93,16 +93,17 @@ org.apache.kafka kafka_2.12 + + + org.slf4j + slf4j-log4j12 + + org.apache.kafka kafka-clients - - org.apache.avro - avro - 1.8.2 - org.apache.logging.log4j log4j-core @@ -160,6 +161,20 @@ + + + + org.codehaus.mojo + build-helper-maven-plugin + 3.1.0 + + + org.apache.maven.plugins + maven-source-plugin + 3.2.1 + + +