You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Stevo Slavić <ss...@gmail.com> on 2009/10/02 12:36:03 UTC
maven-archetype-plugin and package parameter
Hello Maven users,
Is it possible to reference archetype parameters in archetype-metadata.xml?
E.g. I'd like to reference package parameter and use it in outputDirectory
of a fileSet.
Regards,
Stevo.
Re: maven-archetype-plugin and package parameter
Posted by Stevo Slavić <ss...@gmail.com>.
A-ha, "Filesets can be packaged, which means the selected files will be
generated/copied in a directory structure that is prepended by the package
property. They can be non-packaged, which means that the selected files will
be generated/copied without that prepend.", *<fileSet filtered="true"
packaged="true">* from archetype plugin
docs<http://maven.apache.org/plugins/maven-archetype-plugin/specification/archetype-metadata.html>
.
Regards,
Stevo.
On Fri, Oct 2, 2009 at 12:52 PM, Stevo Slavić <ss...@gmail.com> wrote:
> Just found out, if XML schema for archetype-metadata.xml attached to this
> maven-archetype-plugin issue<http://jira.codehaus.org/browse/ARCHETYPE-237>is correct, fileSet in archetype-metadata.xml doesn't support
> outputDirectory at all. How is one then supposed to alter package/directory
> names originating from the archetype resources using package parameter?
>
> Regards,
> Stevo.
>
>
> On Fri, Oct 2, 2009 at 12:36 PM, Stevo Slavić <ss...@gmail.com> wrote:
>
>> Hello Maven users,
>>
>> Is it possible to reference archetype parameters in
>> archetype-metadata.xml? E.g. I'd like to reference package parameter and use
>> it in outputDirectory of a fileSet.
>>
>> Regards,
>> Stevo.
>>
>
>
Re: maven-archetype-plugin and package parameter
Posted by Stevo Slavić <ss...@gmail.com>.
Just found out, if XML schema for archetype-metadata.xml attached to this
maven-archetype-plugin issue
<http://jira.codehaus.org/browse/ARCHETYPE-237>is correct, fileSet in
archetype-metadata.xml doesn't support
outputDirectory at all. How is one then supposed to alter package/directory
names originating from the archetype resources using package parameter?
Regards,
Stevo.
On Fri, Oct 2, 2009 at 12:36 PM, Stevo Slavić <ss...@gmail.com> wrote:
> Hello Maven users,
>
> Is it possible to reference archetype parameters in archetype-metadata.xml?
> E.g. I'd like to reference package parameter and use it in outputDirectory
> of a fileSet.
>
> Regards,
> Stevo.
>