Hi all,
I am looking for some way to seperate the local project build and installing the package in AEM.
I am looking for something to break into 2 steps.
The first step
mvn clean install -DskipTests=true
which will prepare the zip files under target folders of ui apps and ui content and the bundle under core.
Then second step
-PautoinstallPackage which can install my zips as well as the bundle to AEM without building it again.
Is it possible to do it like this?
Any help will be appreciated.
Thanks
Solved! Go to Solution.
Views
Replies
Total Likes
Hi @user05300, you can try one of below option to achieve your goal.
Hi @user05300 ,
I don't think you could execute a maven command without goals.
you can either just build it (mvn clean install) or build and install (mvn clean install -PautoInstallPackage).
if you wan't to be in separate ways, you could build first and then manually install packages through package manager.
Thank you.
Hi @B_Sravan
Goals are already there in my parent pom.
I don't want to install the packages manually.
Any way to just build the codebase in 1st step and deploy the packages in the 2nd step.
Thanks
Hi @user05300 ,
I was mentioning the goals on the command (clean and install).
If you don't want to install them manually and wanted in two steps,
1: Build it --> mvn clean install
2: Install --> mvn install -PautoInstallPackage. (this will still build the project again but doesn't clean the existing packages).
I wonder why you want to split a single step in to two, may I know the context?
The requirement is to save time in prod deployment. My team wants to save time in building the code base like keeping it prebuilt code and in the prod deployment window just install the package. But this we want to do through maven only without any manual addition or installation of package
Hi @user05300, you can try one of below option to achieve your goal.
Views
Likes
Replies
Views
Likes
Replies