Maven Archetype
  1. Maven Archetype
  2. ARCHETYPE-385

support for multi-module projects modules which are part of profiles

    Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Major Major
    • Resolution: Auto Closed
    • Affects Version/s: 2.1
    • Fix Version/s: None
    • Component/s: Creator
    • Labels:
      None
    • Environment:
      Windows

      Description

      My project structure is shown as below:

      <project>
        <modules>
          <module>sample-domain</module>
          <module>sample-data</module>
        </modules>
      
        <profiles>
          <profile><id>it</id>
            <modules>
              <module>sample-it</modules>
            </modules>
          </profile>
        <profiles>
      </project>
      

      the idea is to have the module sample-it only when it is built with When this is the scenario, and i run the command create-from-project, the archetype-metadata.xml does not include the sample-it module, nor it filters the files in that module.

      archetype-metadata.xml

      <archetype-descriptor>
      <modules>
      <module id="${rootArtifactId}-domain" dir="__rootArtifactId__-domain" name="${rootArtifactId}-domain"></module>
      <module id="${rootArtifactId}-data" dir="__rootArtifactId__-data" name="${rootArtifactId}-data"></module>
      </modules>
      </archetype-descriptor>
      

      The sample-it module is not inluded in this, and it satys in the pom as is... and none of the files in the module is filtered. Is this my configuration issue, and what is the configuration to do this. Otherwise, it will be a great feature to have this feature.

        Activity

        tanmoy banerjee created issue -
        Mark Thomas made changes -
        Field Original Value New Value
        Project Import Sun Apr 05 09:05:55 UTC 2015 [ 1428224755734 ]
        Mark Thomas made changes -
        Workflow jira [ 12716822 ] Default workflow, editable Closed status [ 12748022 ]
        Mark Thomas made changes -
        Project Import Sun Apr 05 22:17:37 UTC 2015 [ 1428272257260 ]
        Mark Thomas made changes -
        Workflow jira [ 12953840 ] Default workflow, editable Closed status [ 12990974 ]
        Hide
        Michael Osipov added a comment -

        This issue has been auto closed because it has been inactive for a long period of time. If you think this issue still applies, retest your problem with the most recent version of Maven and the affected component, reopen and post your results.

        Show
        Michael Osipov added a comment - This issue has been auto closed because it has been inactive for a long period of time. If you think this issue still applies, retest your problem with the most recent version of Maven and the affected component, reopen and post your results.
        Michael Osipov made changes -
        Status Open [ 1 ] Closed [ 6 ]
        Resolution Auto Closed [ 10000 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Closed Closed
        1440d 3h 54m 1 Michael Osipov 06/Sep/15 20:45

          People

          • Assignee:
            Unassigned
            Reporter:
            tanmoy banerjee
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development