Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

is it possible to deploy only core module?

Avatar

Level 2

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?

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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/archetyp...

Hope that helps!

Regards,

Santosh

View solution in original post

2 Replies

Avatar

Correct answer by
Community Advisor

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/archetyp...

Hope that helps!

Regards,

Santosh

Avatar

Level 7

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