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

Profile activation should be per module

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 2.0.9
    • None
    • Dependencies, POM
    • None

    Description

      In a multi-module-project, one might wish to run certain targets dependent on the existance of some file or directory.

      In a single-module-project, I'd say

      <profiles><profile><id>do-if-file-exists</id>
      <activation><exists>some/special/path</exists></activation>
      <plugins><!-- my specific configuration --></plugins></profile></profiles>

      This however does not work on a per-module base in a multi-module project, but the profile is (de)activated depending on the situation on the run pom only, and this is not even documented.

      In my opinion, profile activation should be on a per-module basis.

      Attachments

        Issue Links

          Activity

            People

              brett Brett Porter
              tinne tinne
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: