rootArtifactId for modules isn't resolved when parent contains filsets
-----------------------------------------------------------------------
Key: ARCHETYPE-298
URL: http://jira.codehaus.org/browse/ARCHETYPE-298
Project: Maven Archetype
Issue Type: Bug
Components: Plugin
Affects Versions: 2.0-alpha-4
Environment: Windows OS, maven 2.2.1
Reporter: Charlie Mordant
Priority: Critical
I tried to make a multi-module Maven archetype.
In my archetype metadata, when I only specify <modules> like this:
<archetype-descriptor>
<modules>
<module id="${rootArtifactId}-jsf_core" dir="__rootArtifactId__-jsf_core"
name="${rootArtifactId}-jsf_core">
<fileSets>
<fileSet filtered="true" encoding="UTF-8">
<directory>src/main/webapp</directory>
<includes>
<include>**/*.xhtml</include>
<include>**/*.xml</include>
</includes>
</fileSet>
<fileSet filtered="true" encoding="UTF-8">
<directory>src/main/resources</directory>
<includes>
<include>**/*.xml</include>
</includes>
</fileSet>
</fileSets>
</module>
</modules>
</module>
</modules>
</archetype-descriptor>
It works: folders are renamed and I'm happy.
But when I want to also filter parent resources like this:
<archetype-descriptor>
<fileSets>
<fileSet filtered="true" encoding="UTF-8">
<directory>src/generation</directory>
<includes>
<include>**/*.uml</include>
</includes>
<includes>
<include>**/*.umldi</include>
</includes>
</fileSet>
</fileSets>
<modules>
<module id="${rootArtifactId}-jsf_core" dir="__rootArtifactId__-jsf_core"
name="${rootArtifactId}-jsf_core">
<fileSets>
<fileSet filtered="true" encoding="UTF-8">
<directory>src/main/webapp</directory>
<includes>
<include>**/*.xhtml</include>
<include>**/*.xml</include>
</includes>
</fileSet>
<fileSet filtered="true" encoding="UTF-8">
<directory>src/main/resources</directory>
<includes>
<include>**/*.xml</include>
</includes>
</fileSet>
</fileSets>
</module>
</modules>
</module>
</modules>
</archetype-descriptor>
My modules folders aren't renamed and ${rootArtifactId} variable isn't resolved
in children modules.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira