adobe / aem-project-archetype

Maven template to create best-practice websites on AEM.
https://experienceleague.adobe.com/docs/experience-manager-core-components/using/developing/archetype/overview.html
Apache License 2.0
544 stars 418 forks source link

Build fail for /core with default value of Archetype(#25) property - 'includeCommerce=n' #636

Closed dspathak21 closed 3 years ago

dspathak21 commented 3 years ago

Issue

Maven build failed on the project created with Archetype#25, using the default property value (includeCommerce=n)

Observation

Expected Behaviour

Actual Behaviour

Steps to Reproduce

Platform and Version

Logs taken while reproducing problem

Note

The build works fine with property - 'includeCommerce=y' in Archetype 25

bpauli commented 3 years ago

@dspathak21 This java files shouldn't exist when the parameter includeComer=n is set. There is a groovy (archetype-post-generate.groovy) which gets executed during the project creation. As you can see in https://github.com/adobe/aem-project-archetype/blob/aem-project-archetype-25/src/main/resources/META-INF/archetype-post-generate.groovy#L120 the directory is deleted. Can you please create a project again with the same parameter and check if the groovy script gets executed? If not , maybe you can post the whole console output here? Thanks!