Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-1493

Support in multiproject environment modules with different named POMs

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.0
    • 2.0.9, 3.0-alpha-1
    • POM
    • None
    • Patch

    Description

      Command line version of Maven 2 supports POMs with a different name using the -f option. Unfortunately such POMs cannot be used as modules, since the value of the module tag is defined as a directory to another pom.xml instead of a pathname to another POM. Only if the value is not already an existing file the value should be treated as directory with a present pom.xml file. Similar situation applies to the relativePath element of the parent tag.

      This makes the generation of different artifacts from the same sources (with some modifications) much more easy. Currently you will have to put the POMs in separate directories and modify the sourec location into another module.

      Attachments

        1. DefaultMaven.diff
          2 kB
          Brian Deacon

        Issue Links

          Activity

            People

              jdcasey John Dennis Casey
              joehni Joerg Schaible
              Votes:
              2 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: