aem-project-archetype icon indicating copy to clipboard operation
aem-project-archetype copied to clipboard

Only execute aem-analyser-maven-plugin outside of Cloud Manager builds

Open kwin opened this issue 4 years ago • 1 comments

Executing the aem-analyser-maven-plugin is not useful during Cloud Manager builds, as those steps will anyhow be performed, therefore the module analyse (https://github.com/adobe/aem-project-archetype/blob/4b7ba9653b1ff4322f83798cc7dda3aa38dfa4fe/src/main/archetype/pom.xml#L55) should only be included in the Maven reactor in Maven profile which is active when environment variable CM_BUILD is not set to true (https://experienceleague.adobe.com/docs/experience-manager-cloud-manager/using/getting-started/create-application-project/build-environment-details.html?lang=en#environment-variables)

kwin avatar Jan 15 '21 17:01 kwin

In fact the version of the plugin is only defined if the archetype is used with the cloud options (https://github.com/adobe/aem-project-archetype/blob/21dea7234123d60e1803cd707c3b6ef977ff581e/src/main/archetype/pom.xml#L95) but the module is included even when being included in the on-prem version.

kwin avatar Jan 26 '21 10:01 kwin