-
Type: Bug
-
Status: Resolved
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: AAMP-2.0
-
Fix Version/s: AAMP-2.0.5
-
Component/s: ant-assembly-maven-plugin
-
Tags:
-
Sprint:DevOps Sprint 11
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.
- is required by
-
NXBT-941 Enable mongodb configuration on CI
- Resolved
-
NXDRIVE-549 Remove useless profile list in ftest root pom
- Resolved
-
NXP-19216 Remove useless profile list in nuxeo-drive addon root pom
- Resolved