Adobe-Marketing-Cloud / aem-guides-wknd

Steps to create a website with Adobe Experience Manager (AEM)
https://helpx.adobe.com/experience-manager/kt/sites/using/getting-started-wknd-tutorial-develop.html
76 stars 68 forks source link

Add maven-sling-plugin to pom.xml #34

Closed pnyiu closed 5 years ago

pnyiu commented 5 years ago

Is it possible to add below plugin in build section to core/pom.xml? So that, it will deploy the bundle to AEM.

image

mvn clean install

[INFO] --- maven-sling-plugin:2.2.0:install (install-bundle) @ aem-guides-wknd.core --- [INFO] Installing Bundle com.adobe.aem.guides.wknd-sites-guide(/root/aem_project/aem-guides-wknd/core/target/aem-guides-wknd.core-0.0.1-SNAPSHOT.jar) to http://localhost:4502/system/console via WebConsole [INFO] Bundle installed

godanny86 commented 5 years ago

@pnyiu does this not work with as is with:

mvn -PautoInstallBundle clean install ?

pnyiu commented 5 years ago

@godanny86 Yes, it works.

I just wonder if we can include the maven-sling-plugin and content-package-maven-plugin to the pom.xml for package type as bundle and content-package respectively. Then, we can simply use mvn clean install to build and install all modules with adobe-public profile activated by default.

godanny86 commented 5 years ago

@pnyiu we will be updating the project to use the latest Maven Archetype 15. If you think this is something that should be part of the default archetype I would comment on that project. Thank you!