maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stefan Hübner" <sthueb...@googlemail.com>
Subject Re: [m2] Relocating repository-artifacts
Date Tue, 27 Jun 2006 12:06:07 GMT
Hi Carlos,

(I'm always excited how quick users get responses to their questions
here on the list. Thanks!)

see my comment inside:

2006/6/27, Carlos Sanchez <carlos@apache.org>:
> you just add the relocation info to the old poms pointing to the new ones
>
You mean, by editing the old poms manually on the server, where the
internal repository resides?

> On 6/27/06, Stefan Hübner <sthuebner@googlemail.com> wrote:
> > Hi there,
> >
> > in our company we successfully introduced Maven2 for a fair lot of
> > modules. We didn't define conventions on group- and artifact-Ids in
> > the early days of adoption. Thus, those artifacts are somewhat spread
> > over our internal repository and I would like to reorganize them by
> > giving them nice hierarchical groupIds.
> >
> > Studying the POM-structure there's a relocation-Element inside
> > distributionManagemet, which can be used to expose the new location of
> > an artifact.
> >
> > But how do I populate that information the right way?
> >
> > I came up with this steps:
> > 1) get the artifact's regarding version from SCM
> > 2) add the relocation-info to its POM
> > 3) deploy the artifact
> > 4) change the groupId of the POM to meet our new conventions
> > 5) remove the relocation-element
> > 6) deploy the artifact again (now to its new location)
> >
> > This looks a bit odd to me, though. Is there any other (smarter) way
> > of relocating artifacts in a repository?
> >
> > Cheers,
> > Stefan
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
>
>
> --
> I could give you my word as a Spaniard.
> No good. I've known too many Spaniards.
>                              -- The Princess Bride
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
Mime
View raw message