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

Filtering of directory name same as filenames

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.0-alpha-4
    • 3.0.0
    • Generator
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: