I need a better understanding of deploying to AEM with MAVEN | Adobe Higher Education
Skip to main content
Level 6
January 14, 2016
Risolto

I need a better understanding of deploying to AEM with MAVEN

  • January 14, 2016
  • 6 risposte
  • 1672 visualizzazioni

I have been using Maven to build my OSGI bundles.

Then I started using the AEM plugin for Eclipse and using that to import and export component code (JSP, CSS, JS and so on) between my project in Eclipse and my AEM server.

For OSGI bundles I would deploy them using AEM Web Console Bundles - <server><port>/system/console/bundles

Is it not possible to use a plugin inside maven to deploy code and bundles to an AEM server?

Is there a development tutorial that explains how to use and configure AEM and Sling plugins to deploy components and OSGI bundles using Maven?

 

Regards

Clive Stewart

Questo argomento è stato chiuso alle risposte.
Migliore risposta di kautuk_sahni

Hi 

Adding few more links to be used as reference:

Link:- http://goo.gl/r0Pctw

Link:- http://adobeaemclub.com/how-to-set-up-aem-projects-using-eclipse-plugin/

Link:- http://adobeaemclub.com/configuring-aem-maven-archetype-for-eclipse-plugin/

I hope this would help you.

Thanks and Regards

Kautuk Sahni

6 risposte

Kunal_Gaba_
January 14, 2016
smacdonald2008
Level 10
January 14, 2016

While we show in the AEM community articles how to install manually using Apache Felx console (so AEM developers know how to do this manually and its not a blackbox) - you are correct - you can install automatically via Maven. Use this command:

mvn -PautoInstallPackage install

For more information - see this AEM Doc topic: 

How to Build AEM Projects using Apache Maven

Level 6
January 15, 2016

kunal23 wrote...

Yes you can deploy bundles directly to an AEM using Maven plugins. 

Check these links- 

http://www.cqblueprints.com/tipsandtricks/build-and-deploy-osgi/build-deploy-osgi-1.html

https://docs.adobe.com/docs/en/aem/6-1/develop/dev-tools/ht-projects-maven.html

 


Thank you for providing these links

Level 6
January 15, 2016

smacdonald2008 wrote...

While we show in the AEM community articles how to install manually using Apache Felx console (so AEM developers know how to do this manually and its not a blackbox) - you are correct - you can install automatically via Maven. Use this command:

mvn -PautoInstallPackage install

For more information - see this AEM Doc topic: 

How to Build AEM Projects using Apache Maven

 

Hi Scott,

Thank you for the link and explaining that I need to use -PautoInstallPackage when I run mvn install

kautuk_sahni
Community Manager
kautuk_sahniCommunity ManagerRisposta
Community Manager
January 15, 2016

Hi 

Adding few more links to be used as reference:

Link:- http://goo.gl/r0Pctw

Link:- http://adobeaemclub.com/how-to-set-up-aem-projects-using-eclipse-plugin/

Link:- http://adobeaemclub.com/configuring-aem-maven-archetype-for-eclipse-plugin/

I hope this would help you.

Thanks and Regards

Kautuk Sahni

Kautuk Sahni
Level 6
January 15, 2016

kautuksahni wrote...

Hi 

Adding few more links to be used as reference:

Link:- http://goo.gl/r0Pctw

Link:- http://adobeaemclub.com/how-to-set-up-aem-projects-using-eclipse-plugin/

Link:- http://adobeaemclub.com/configuring-aem-maven-archetype-for-eclipse-plugin/

I hope this would help you.

Thanks and Regards

Kautuk Sahni

 

Hi Kautuk Shani,

Thank you for these links for me to read.

I really appreciate it.

 

Regards

Clive Stewart