You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Steve Cohen <sc...@javactivity.org> on 2012/11/28 16:07:52 UTC

assembly plugin - pass property from pom.xml to assembly descriptor?

Are properties defined in pom.xml available in the execution of an 
assembly descriptor invoked from pom.xml via the assembly plugin?

If not, is there a way to pass such definitions to the assembly plugin?

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: assembly plugin - pass property from pom.xml to assembly descriptor?

Posted by Curtis Rueden <ct...@wisc.edu>.
Hi Steve,

> Are properties defined in pom.xml available in the execution of an
> assembly descriptor invoked from pom.xml via the assembly plugin?

I did a quick test, and it works for me. Anything defined in the pom.xml
<properties> gets passed to the assembly descriptor, accessible via the
usual ${foo} syntax.

You can also pass additional filters using the <filters> section of the
assembly configuration:
https://maven.apache.org/plugins/maven-assembly-plugin/single-mojo.html#filters

HTH,
Curtis


On Wed, Nov 28, 2012 at 9:07 AM, Steve Cohen <sc...@javactivity.org> wrote:

> Are properties defined in pom.xml available in the execution of an
> assembly descriptor invoked from pom.xml via the assembly plugin?
>
> If not, is there a way to pass such definitions to the assembly plugin?
>
> ------------------------------**------------------------------**---------
> To unsubscribe, e-mail: users-unsubscribe@maven.**apache.org<us...@maven.apache.org>
> For additional commands, e-mail: users-help@maven.apache.org
>
>