is it possible to deploy only core module? | Community
Skip to main content
Level 2
Sep 28, 2022 7:18 PM UTC
Solved

is it possible to deploy only core module?

I need to run "mvn clean install -PautoInstallBundle" every time I do any small change in my servlet class and it takes nearly 30 minutes do deploy everything... Is there a better way to build and sent only core module to the AEM instance?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
SantoshSai
SantoshSaiAccepted solution
New Participant
Sep 28, 2022 7:48 PM UTC

Hi @rute ,

The Maven Sling Plugin allows the core bundle to be deployed to AEM directly leveraging the autoInstallBundle profile as defined in the parent POM.

mvn -PautoInstallBundle clean install

I believe you are on core module and running above command - for more details please refer: https://experienceleague.adobe.com/docs/experience-manager-core-components/using/developing/archetype/core.html?lang=en

Hope that helps!

Regards,

Santosh

Santosh Sai

2 replies

HeenaMadan
New Participant
Sep 29, 2022 12:26 PM UTC

Go to code module path like

cd <project>/core and run below command. It will deploy only core module.

mvn clean install -PautoInstallBundle 

You can also do skiptests for local work:

mvn clean install -PautoInstallBundle -DskipTests=true

 

Translate
SantoshSai
SantoshSaiAccepted solution
New Participant
Sep 28, 2022 7:48 PM UTC

Hi @rute ,

The Maven Sling Plugin allows the core bundle to be deployed to AEM directly leveraging the autoInstallBundle profile as defined in the parent POM.

mvn -PautoInstallBundle clean install

I believe you are on core module and running above command - for more details please refer: https://experienceleague.adobe.com/docs/experience-manager-core-components/using/developing/archetype/core.html?lang=en

Hope that helps!

Regards,

Santosh

Translate
Santosh Sai