[
https://issues.apache.org/jira/browse/HBASE-2982?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12908356#action_12908356
]
stack commented on HBASE-2982:
------------------------------
@Lars OK If I remove what James suggests above? I just tried it and in
non-extensive testing stuff seems fine w/o them?
{code}
st...@face:~/hbase$ git diff pom.xml
diff --git a/pom.xml b/pom.xml
index 267ab49..8485b6b 100644
--- a/pom.xml
+++ b/pom.xml
@@ -739,11 +739,6 @@
<!-- Avro dependencies -->
<dependency>
- <groupId>org.slf4j</groupId>
- <artifactId>slf4j-log4j12</artifactId>
- <version>${slf4j.version}</version>
- </dependency>
- <dependency>
<groupId>org.apache.hadoop</groupId>
<artifactId>avro</artifactId>
<version>1.3.2</version>
@@ -783,11 +778,6 @@
<groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-test</artifactId>
</dependency>
- <dependency>
- <groupId>com.google.guava</groupId>
- <artifactId>guava</artifactId>
- <version>${guava.version}</version>
- </dependency>
</dependencies>
<!--
{code}
> Maven 3 doesn't like duplicate dependencies in hbase/pom.xml
> ------------------------------------------------------------
>
> Key: HBASE-2982
> URL: https://issues.apache.org/jira/browse/HBASE-2982
> Project: HBase
> Issue Type: Bug
> Components: build
> Environment: Using eclipse maven plugin that forces usage of embedded
> Maven 3 for dependency resolution.
> Reporter: James Kennedy
> Original Estimate: 0.33h
> Remaining Estimate: 0.33h
>
> An install of the latest maven plugin resolves dependencies with Maven 3.
> Maven 3 does not like the fact that several dependencies in the main pom.xml
> are duplicated.
> Below is the error message which can be fixed by removing:
> * The 2nd com.google.guava dependency from the "Test dependencies" section
> * both org.slf4j dependencies from the "Avro dependencies" section
> 9/10/10 11:15:50 AM PDT: Build errors for hbase;
> org.apache.maven.project.ProjectBuildingException: Some problems were
> encountered while processing the POMs:
> [WARNING] 'version' contains an expression but should be a constant. @
> org.apache.hbase:hbase:${hbase.version}, /opt/eclipse/troove/hbase/pom.xml
> [ERROR] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must
> be unique: org.slf4j:slf4j-log4j12:jar -> duplicate declaration of version
> ${slf4j.version} @ org.apache.hbase:hbase:${hbase.version},
> /opt/eclipse/troove/hbase/pom.xml
> [ERROR] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must
> be unique: org.slf4j:slf4j-api:jar -> duplicate declaration of version
> ${slf4j.version} @ org.apache.hbase:hbase:${hbase.version},
> /opt/eclipse/troove/hbase/pom.xml
> [ERROR] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must
> be unique: com.google.guava:guava:jar -> duplicate declaration of version
> ${guava.version} @ org.apache.hbase:hbase:${hbase.version},
> /opt/eclipse/troove/hbase/pom.xml
> [WARNING] 'build.plugins.plugin.version' is missing for
> org.codehaus.mojo:build-helper-maven-plugin @
> org.apache.hbase:hbase:0.89-SNAPSHOT-withHLogSplit,
> /opt/eclipse/troove/hbase/pom.xml
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.