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

Flexible Modulename

    XMLWordPrintableJSON

Details

    • Wish
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • None
    • None
    • Generator
    • None
    • Patch

    Description

      I have to create a multi-module project from maven-archetype with free configurable modulenames. This should be possible with required properties in the archetype.
      Up to now this is only possible with artifactId or rootArtifactId and you have to use it in form of prefix_rootArtifactId_postfix for the module directory.
      What I want is to set a required property while setting up the new project with the archetype. Within the archetype you have to configure the module with directory _yourproperty_ and in the archetype-metadata.xml the module entry like as follows:

      <module id="${yourproperty}" dir="__yourproperty__" name="${yourproperty}">
      

      I made a patch which works for me.

      Attachments

        1. archetype-multi-module-project-1.1.jar
          2 kB
          Michael Kopf
        2. archetype-common-flex-module-name.patch
          14 kB
          Michael Kopf

        Issue Links

          Activity

            People

              rfscholte Robert Scholte
              michael_k Michael Kopf
              Votes:
              5 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: