Expand my Community achievements bar.

SOLVED

I need a better understanding of deploying to AEM with MAVEN

Avatar

Level 6

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

1 Accepted Solution

Avatar

Correct answer by
Administrator

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

View solution in original post

6 Replies

Avatar

Level 10

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

Avatar

Level 6

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

Avatar

Level 6

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

Avatar

Correct answer by
Administrator

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

Avatar

Level 6

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