You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Dejan Ognjenović (JIRA)" <ji...@apache.org> on 2016/08/25 10:15:22 UTC

[jira] [Created] (ARCHETYPE-508) Ability to use any context property for module name

Dejan Ognjenović created ARCHETYPE-508:
------------------------------------------

             Summary: Ability to use any context property for module name
                 Key: ARCHETYPE-508
                 URL: https://issues.apache.org/jira/browse/ARCHETYPE-508
             Project: Maven Archetype
          Issue Type: Bug
          Components: Generator, Plugin
    Affects Versions: 2.4
            Reporter: Dejan Ognjenović
             Fix For: 2.5


When generating a new project one cannot use custom variables to generate module names. For example:

{code:title=archetype-metadata.xml | borderStyle=solid}
<archetype-descriptor name="modules-archetype">

  <requiredProperties>
    <requiredProperty key="module1">
    </requiredProperty>
  </requiredProperties>

  <modules>
    <module id="${module1}-ejb" dir="__module1__-ejb" name="-${module1}-ejb">
      <fileSets>
        <fileSet encoding="UTF-8">
          <directory>src/main/java</directory>
        </fileSet>
      </fileSets>
    </module>
  </modules>

</archetype-descriptor>
{code}

The above code does not replace file name "__module1__-ejb" but leaves it intact. This was supposedly patched already by Brad Szabo as seen here: 
https://issues.apache.org/jira/browse/ARCHETYPE-191





--
This message was sent by Atlassian JIRA
(v6.3.4#6332)