Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Major
-
Resolution: Won't Fix
-
Affects Version/s: 1.0-alpha-1
-
Fix Version/s: 1.0
-
Component/s: None
-
Labels:None
-
Number of attachments :
Description
Archiva automatically delivers the new pom and jar for a relocated artifact to a maven client.
The downside of this feature is that clients do not get a warning that the artifact is relocated anymore.
In a "All-Maven2" environment this warning is quite good, and gives the developer a hint and a motivation (get rid of the warning
) to use the new groupId.
So I think it would be a good idea to make this feature configurable, so the archiva admin can turn it off.
Hello, I made the original contrib for the relocation feature.
Maven2 will request all POMs from archiva before requesting the artifacts, so it will handle relocations metadata itself and warn the user. Maven2 will then ask for the relocated artifact and archiva reloaction will not occur. Isn't this what you get/expect ?
Maven1 has no support for model4 POMs and will not download the POM neither read any relocation info, so it can't warn the user. The relocation from the archiva-side was designed for maven1 only, to avoid legacy/duplicated artifacts in a managed repo (my corporate repo had 5 "ejb.jar" under groupIds "ejb", "j2ee", "sun", "java.ejb" and "javax.ejb"). It should not occur when maven2 only is used.