Uploaded image for project: 'Maven Release Plugin'
  1. Maven Release Plugin
  2. MRELEASE-415

Plugin fails to activate profiles in submodules.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0-beta-8
    • 2.4
    • perform
    • None
    • Fedora8, Sun Java 1.6.0_07, Maven 2.0.9

    Description

      (I hope this is not a duplicate. I searched JIRA but didn't find anything that looked like one.)

      In a multi-module project, profiles that are activated only for sub-modules (not the parent project) are omitted from execution during release:perform. In my specific case, I have a large, multi-module project in which one of the sub-modules is there to create an assembly during release. Since I only want it to run during release, I've placed that into a profile in the sub-module's pom.xml. When I run release:perform, I activate the profile. However, the profile is never executed.

      Workaround: By adding a dummy profile to the parent pom.xml, I was able to get release:perform to operate as desired.

      I'm afraid I don't have an example to upload, at this time. If I can find the time, I'll try to create one and come back to upload it.

      Attachments

        1. AbstractReleaseMojo.patch
          2 kB
          Reinhard Nägele

        Issue Links

          Activity

            People

              rfscholte Robert Scholte
              dchicks David C. Hicks
              Votes:
              9 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: