[
http://jira.codehaus.org/browse/MARCHETYPES-1?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Herve Boutemy moved ARCHETYPE-298 to MARCHETYPES-1:
---------------------------------------------------
Component/s: (was: Plugin)
Affects Version/s: (was: 2.0-alpha-4)
Key: MARCHETYPES-1 (was: ARCHETYPE-298)
Project: Maven Archetype Bundles (was: Maven Archetype)
> rootArtifactId for modules isn't resolved when parent contains filsets
> -----------------------------------------------------------------------
>
> Key: MARCHETYPES-1
> URL: http://jira.codehaus.org/browse/MARCHETYPES-1
> Project: Maven Archetype Bundles
> Issue Type: Bug
> 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