Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
0.2
-
None
Description
Building with Ant fails for me:
build-common.xml:350: impossible to ivy retrieve: java.lang.RuntimeException: problem during retrieve of org.apache.gora#gora-hbase: java.lang.RuntimeException: Multiple artifacts of the module org.apache.hbase#hbase;0.90.0 are retrieved to the same file! Update the retrieve pattern to fix this error.
Same as the problem here:
https://groups.google.com/a/cloudera.org/group/sqoop-dev/browse_thread/thread/d3001e9474bc849f
So this modification fixes it:
diff --git a/build-common.xml b/build-common.xml
index 0e824a9..49d3318 100644
— a/build-common.xml
+++ b/build-common.xml
@@ -347,7 +347,7 @@
<!-- the call to resolve is not mandatory, retrieve makes an implicit call if we don't -->
<ivy:resolve file="${ivy.dir}/${ivy.file}" conf="compile" log="download-only"/>
- <ivy:retrieve pattern="${lib.dir}/[artifact]-[revision].[ext]" symlink="true" log="quiet" conf="compile"/>
+ <ivy:retrieve pattern="${lib.dir}/[artifact][revision]([classifier]).[ext]" symlink="true" log="quiet" conf="compile"/>
<!-- copy the libs in lib-ext, which are not ivy enabled, should change in the future -->
<copy todir="${lib.dir}/" failonerror="false">