Uploaded image for project: 'Nuxeo ECM Build/Test Environment'
  1. Nuxeo ECM Build/Test Environment
  2. NXBT-982

AAMP must add all active Maven profiles to Ant

    XMLWordPrintable

    Details

    • Tags:
    • Sprint:
      DevOps Sprint 11

      Description

      AAMP currently adds to Ant the profiles list returned by org.apache.maven.project.MavenProject.getActiveProfiles() which considers only the profiles defined in the current project POM.
      That is wrong: it must take into account all the profiles contributed to the project's effective POM. This includes active profiles from the project's POM and all its parent POMs as well as from external sources like the settings.xml.
      AAMP must use org.apache.maven.project.MavenProject.getInjectedProfileIds().

      Sample issue with current implementation:

      • the mongodb profile is only defined in org.nuxeo:nuxeo-ecm and org.nuxeo.ecm.distribution:nuxeo-distribution-cap-funkload-tests
      • mongodb profile is not visible to Ant in org.nuxeo.ecm.distribution:nuxeo-distribution-cap-webdriver-tests whereas it is activated by Maven.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: