You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Herve Boutemy (JIRA)" <ji...@codehaus.org> on 2010/08/12 23:11:32 UTC

[jira] Commented: (ARCHETYPE-305) rootArtifactId for modules isn't resolved when parent contains filsets

    [ http://jira.codehaus.org/browse/ARCHETYPE-305?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=231853#action_231853 ] 

Herve Boutemy commented on ARCHETYPE-305:
-----------------------------------------

can you provide a sample project showing the issue?

> rootArtifactId for modules isn't resolved when parent contains filsets 
> -----------------------------------------------------------------------
>
>                 Key: ARCHETYPE-305
>                 URL: http://jira.codehaus.org/browse/ARCHETYPE-305
>             Project: Maven Archetype
>          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:
> {code:xml}<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>{code}
> It works: folders are renamed and I'm happy.
> But when I want to also filter parent resources like this:
> {code:xml}<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>{code}
> 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