You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Mark Reynolds <ma...@gmail.com> on 2007/12/12 03:36:51 UTC

Re: Interpolation of Pom Properties in Assembly Descriptor

I'll assume this is a regression in the latest 2.2-beta-2-SNAPSHOT.

http://jira.codehaus.org/browse/MASSEMBLY-256

On Nov 28, 2007 12:45 PM, Mark Reynolds <ma...@gmail.com>
wrote:

> That wasn't it, but thanks.
>
>
> On Nov 27, 2007 12:36 PM, Wayne Fay <wa...@gmail.com> wrote:
>
> > I've seen that mentioned on this list a couple times, and I generally
> > use this notation myself as well for no particular reason.
> >
> > Wayne
> >
> > On 11/27/07, Dennis Lundberg <de...@apache.org> wrote:
> > > Some time back I encountered a problem with properties in the pom
> > using
> > > a dot-notation. I solved that by using camelHump-notation instead. In
> > > your case that would mean replacing "my.path" with "myPath". Not sure
> > if
> > > it will work in this case, but it's worth a try.
> > >
> > > Mark Reynolds wrote:
> > > > I was using maven-assembly-plugin 2.2-SNAPSHOT and tried to switch
> > to
> > > > 2.2-beta-2-SNAPSHOT but encountered a problem.
> > > >
> > > > I reference properties from my pom in the assembly descriptor, like
> > this:
> > > >
> > > > <project>
> > > >   ...
> > > >   <properties>
> > > >     <my.path>myapp/WEB-INF</my.path>
> > > >   </properties>
> > > >   ..
> > > > </project>
> > > >
> > > >
> > > > <assembly>
> > > >   ...
> > > >   <files>
> > > >     <file>
> > > >       <source>${basedir}/target/config/somefile.conf</source>
> > > >       <outputDirectory>${ my.path}/etc</outputDirectory>
> > > >     </file>
> > > >   </files>
> > > >   ...
> > > > </assembly>
> > > >
> > > > In 2.2-SNAPSHOT, the value was substituted but in
> > 2.2-beta-2-SNAPSHOT the
> > > > literal ${my.path} is used. Is this a regression, a removed feature,
> > or has
> > > > the syntax for doing this changed?
> > > >
> > > > -- Mark R
> > > >
> > >
> > >
> > > --
> > > Dennis Lundberg
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > For additional commands, e-mail: users-help@maven.apache.org
> > >
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
>