Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.2
-
Fix Version/s: 2.6
-
Labels:None
Description
HI
in same circumstances the eclipse-plugin will generate a Eclipse project file which contains two references to the same artifact/project which will cause Eclipse to fail loading the project. The attached patch is very small and solves this problem by managing the references within a java.util.Set and using equals() within the IdeDependency.java class.
Thanks
Kristian
IdeDependency is comparable and equals delegates to compare, hashCode() also defined.
AbstractIdeSupportMojo.doDependencyResolution() maintains a list of dependencies and code already guards against duplicates:
This should resolve your problem.