maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "a.geo" <aquiles....@gmail.com>
Subject Re: Change name of assembled artifacts
Date Mon, 02 Aug 2010 15:32:18 GMT
mmmm, first think in the problem, why do you want change the repository
generated file name... ?

2010/8/2 C. Benson Manica <cbmanica@gmail.com>

> So there's absolutely no way to force Maven to deploy an artifact with a
> name not in the standard format?  If so, that's really unfortunate...
>
> On Mon, Aug 2, 2010 at 11:06 AM, Anders Hammar <anders@hammar.net> wrote:
>
> > Changing the name in the repo is not possible. It has to conform to Maven
> > standard.
> >
> > /Anders
> >
> > On Mon, Aug 2, 2010 at 17:04, a.geo <aquiles.geo@gmail.com> wrote:
> >
> > > So, you could use a weird Ant task embedded in the Maven plugins flow
> to
> > > change the name... But, I think you must think in a official/regular
> way
> > to
> > > resolve the problem first...
> > >
> > > 2010/8/2 Anders Hammar <anders@hammar.net>
> > >
> > > > Changing finalName does not impact the name in the repo (local or
> > > remote).
> > > > Just in the target folder.
> > > >
> > > > /Anders
> > > >
> > > > On Mon, Aug 2, 2010 at 16:52, a.geo <aquiles.geo@gmail.com> wrote:
> > > >
> > > > > Hi,
> > > > >
> > > > > You can to use
> > > > >
> > > > >    ....
> > > > >    <build>
> > > > >        <finalName>my-own-name</finalName>
> > > > >        <plugins>
> > > > >              ....
> > > > >
> > > > > In the POM.XML file
> > > > >
> > > > > 2010/8/2 C. Benson Manica <cbmanica@gmail.com>
> > > > >
> > > > > > We have a project "foo" that builds several assemblies - let's
> say
> > > one
> > > > of
> > > > > > them is named "bar".  The resulting artifacts get named
> > > > foo-VERSION-bar.
> > > > > > The problem is that the tool that will be processing these
> > artifacts
> > > > > really
> > > > > > wants them to be named foo-bar-VERSION.  Is there a way to coax
> the
> > > > > > assembly
> > > > > > plugin (or something else) to get the artifacts named like this?
> > >  There
> > > > > are
> > > > > > no Maven projects that depend on these assembled artifacts so
the
> > > > > renaming
> > > > > > isn't problematic from that perspective.  Since we need an
> > immediate
> > > > > > solution I am going to simply use the exec plugin to "mv" the
> > > artifacts
> > > > > as
> > > > > > need be, but I'm hoping to be able to replace that with a less
> ugly
> > > > > > solution.
> > > > > >
> > > > > > --
> > > > > > C. Benson Manica
> > > > > > cbmanica@gmail.com
> > > > > >
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > > Cesar De la Cruz Rojas
> > > > > *
> > > > >
> > > > >
> > > >
> > >
> >
> -----------------------------------------------------------------------------
> > > > > *
> > > > > Sennior Software Engineer
> > > > >
> > > > >
> > > >
> > >
> >
> -----------------------------------------------------------------------------
> > > > > Follow me in Facebook : http://www.facebook.com/aquiles.geo
> > > > > Twitter http://twitter.com/ageo
> > > > > Picture blog http://ageo.deviantart.com
> > > > >
> > > >
> > >
> > >
> > >
> > > --
> > > Cesar De la Cruz Rojas
> > > *
> > >
> > >
> >
> -----------------------------------------------------------------------------
> > > *
> > > Sennior Software Engineer
> > >
> > >
> >
> -----------------------------------------------------------------------------
> > > Follow me in Facebook : http://www.facebook.com/aquiles.geo
> > > Twitter http://twitter.com/ageo
> > > Picture blog http://ageo.deviantart.com
> > >
> >
>
>
>
> --
> C. Benson Manica
> cbmanica@gmail.com
>



-- 
Cesar De la Cruz Rojas
*
-----------------------------------------------------------------------------
*
Sennior Software Engineer
-----------------------------------------------------------------------------
Follow me in Facebook : http://www.facebook.com/aquiles.geo
Twitter http://twitter.com/ageo
Picture blog http://ageo.deviantart.com

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message