How can I deploy only frontend module into AEM | Community
Skip to main content
April 26, 2022
Solved

How can I deploy only frontend module into AEM

  • April 26, 2022
  • 1 reply
  • 1850 views

Hi Folks,

 

I want to take only frontend module build and deploy to local AEM server.

I have both ui.frontend and ui.apps modules.

 

Thanks

Ganesh

+91-9380201140

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by MayurSatav

Hi @aem-enthu27 ,

 

First of all, navigate to your targeted bundle and open your terminal/cmd. Now run the below command.

mvn clean install -PautoInstallBundle

So basically it will deploy your bundle instead of the complete project package.

 

But if you are using nodeJs then you can simply use npm run dev command to sync your changes. For a detailed understanding please refer this blog.

 

Thanks

 

 

 

 

1 reply

MayurSatav
Community Advisor and Adobe Champion
MayurSatavCommunity Advisor and Adobe ChampionAccepted solution
Community Advisor and Adobe Champion
April 26, 2022

Hi @aem-enthu27 ,

 

First of all, navigate to your targeted bundle and open your terminal/cmd. Now run the below command.

mvn clean install -PautoInstallBundle

So basically it will deploy your bundle instead of the complete project package.

 

But if you are using nodeJs then you can simply use npm run dev command to sync your changes. For a detailed understanding please refer this blog.

 

Thanks

 

 

 

 

April 26, 2022

Thanks @mayursatav  for your reply

"mvn clean install -PautoInstallBundle " is for core module right?

npm run dev is not working.

I just commented other modules except ui.frontend and ui.apps from parent pom.

And ran "mvn clean install -PautoInstallPackage" it is working.

 

MayurSatav
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
April 26, 2022

Hi,

 

mvn clean install -PautoInstallBundle is not only for core-bundle. I use it for ui.apps also.