on 2021 Aug 27 8:17 AM
Hi,
I just try SAP Commerce 2105 with cx recipe, and when I do 'ant clean all' it takes way longer than 2011 version and requires active & stable internet connection. In 2011 version clean all would be 5 minutes, but on 2105 could be up to 15 minutes and failed if I didn't connect to a network.
When I see logs, I see that 'ant clean all' will execute 'pnpm install' and 'rush build', those 2 action takes minutes to complete and need an active and stable internet connection.
How can I make clean all not to execute pnpm install and rush build?
Request clarification before answering.
Seems like SAP already did an enhancement on 2105-6. All you have to do is download the 2105 patch 6 and add smartedittools.only.build.once=true property to local.properties. This will make smartedit build only once for the first time build (if you have custom smartedit you should not skip the smartedit build process though)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
So, I have created a ticket to SAP a few months ago, and they said they already create an enhancement request to development team, but still no updates till today.
So while waiting for a fix (or ehancement) from SAP, I manage to skip rush build and pnpm install, just replace your buildcallbacks.xml in bin/modules/smartedit/smartedit and bin/modules/smartedit/smartedittools with the file from attachment below. Just to inform that in order to have smartedit working, you have to successfully build (ant all) with rush build and pnpm install enabled at least once, then you can replace smartedit & smartedittools buildcallbacks.xml.
Just to be more clear, the step is :
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Yusuf,
We have been in the process of upgrading to 2105 and have been having problems with our azure pipeline builds failing with an 'out of heap space' error. I used the information in your post today to disable the smartedit build process, which is what I was suspecting the problem was. Your post was very helpful to me today!
We encountered a similar problem with importing the java projects for 2105 into Eclipse, where it would run for a long time and eventually error out with an 'out of heap space' error. We were able to work around this by excluding all modules whose names contain 'smartedit' when importing into Eclipse. Did you encounter anything similar to this? If so, what did you do to solve the problem?
Thank you!
Stephen Spalding
Hi stephen.spalding,
I recommend using accepted answer to skip rush build and pnpm install as OOTB hybris now provides config so we can skip rush build and pnpm install.
Regarding out of mempry, we didn't have issue with Eclipse, just make sure Build Automatically is uncheck and it's fine for us.
We did however facing those issue in intelliJ. What we do in intelliJ is to exclude 'node_modules' from intelliJ indexing and it's fine now.
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.