Maven Archetype
  1. Maven Archetype
  2. ARCHETYPE-305

rootArtifactId for modules isn't resolved when parent contains filsets

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Critical Critical
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:
      Windows OS, maven 2.2.1
    • Number of attachments :
      0

      Description

      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.

        Activity

        Hide
        Herve Boutemy added a comment -

        can you provide a sample project showing the issue?

        Show
        Herve Boutemy added a comment - can you provide a sample project showing the issue?
        Hide
        Michael Osipov added a comment -

        Please refer to https://cwiki.apache.org/confluence/display/MAVEN/The+Great+JIRA+Cleanup+of+2014 if you're wondering why this issue was closed out.

        Show
        Michael Osipov added a comment - Please refer to https://cwiki.apache.org/confluence/display/MAVEN/The+Great+JIRA+Cleanup+of+2014 if you're wondering why this issue was closed out.

          People

          • Assignee:
            Unassigned
            Reporter:
            Charlie Mordant
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: