Expand my Community achievements bar.

SOLVED

How can I deploy only frontend module into AEM

Avatar

Level 5

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

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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

 

 

 

 

View solution in original post

3 Replies

Avatar

Correct answer by
Community Advisor

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

 

 

 

 

Avatar

Level 5

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.

 

Avatar

Community Advisor

Hi,

 

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