Uploaded image for project: 'Maven Archetype'
  1. Maven Archetype
  2. ARCHETYPE-241

Filtering of directory name same as filenames

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0-alpha-4
    • Fix Version/s: 3.0.0
    • Component/s: Generator
    • Labels:
      None

      Description

      Currently I have the following setup:

      target\generated-sources\archetype\src\main\resources\archetype-resources
      - __rootArtifactId__-test1
         - src
            - main
               - java
      - __projectName__-test2
         - src
            - main
               - java
                  - Test-__projectName__.java
                     "This is ${projectName}!"
      

      When I use this archetype with the required property "projectName" set to "myName" it generates:

      - myArtifactId-test1
         - src
            - main
               - java
      - __projectName__-test2
         - src
            - main
               - java
                  - Test-myName.java
                     "This is myName!"
      

      This project builds as expected, but as you can see, the property is changed in all the filenames (thanks to ARCHETYPE-191) and Velocity changes the property in the files, but the directory isn't renamed. I would expect that the directory and module would also accept custom properties besides the usual rootArtifactId?

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                rfscholte Robert Scholte
                Reporter:
                yor Roy van Rijn
              • Votes:
                2 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: