Cleanup DAM API and split into sub modules (MGNLDAM-389)

[MGNLDAM-403] Use Maven relocation to ease the transition from a single module to the newly split modules Created: 21/Feb/14  Updated: 13/Mar/14  Resolved: 21/Feb/14

Status: Closed
Project: Magnolia DAM Module
Component/s: None
Affects Version/s: None
Fix Version/s: 2.0

Type: Sub-task Priority: Neutral
Reporter: Magnolia International Assignee: Magnolia International
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:
Sprint: 5.3 Sprint 3, 5.3 Sprint 4

 Description   

With http://maven.apache.org/guides/mini/guide-relocation.html, we could perhaps create a "relocation pom" using the artifactId of version 1.x, so that upgrades are made a little smoother. It could even perhaps redirect to the magnolia-dam-compatibility artifact, which would bring in all other artifacts.

  • See if/how users get warned about the relocation
  • See if it actually works


 Comments   
Comment by Magnolia International [ 21/Feb/14 ]

Added yet another submodule called magnolia-dam-maven-relocate, which uses the 1.x info.magnolia.dam:magnolia-dam artifactID, and relocates it to info.magnolia.dam:magnolia-dam-compatibility.
It's added to the reactor and can thus be built with the rest of the project.

We can keep it alive as long as we keep info.magnolia.dam:magnolia-dam-compatibility alive as well; probably until 2.1.

The relocation can have a <message> element, which is displayed whenever the relocation occur (i.e when building something that has a dependency on the relocated artifact), so I went ahead and use a big fat banner to make sure it's as visible as possible.

I also noticed that if the relocation redirects to an non-existing artifact, the message is still displayed, so it might be useful simply to warn users about such groupId/artifactId changes, even when we can't actually relocate to something sensible.

Generated at Mon Feb 12 04:59:29 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.