cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

SAP Commerce 2105 ant clean all takes long time

adiputera
Active Participant
7,495

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?

Accepted Solutions (1)

Accepted Solutions (1)

adiputera
Active Participant

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)

Answers (1)

Answers (1)

adiputera
Active Participant

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 :

  1. do ant clean all (or ant all)
  2. Backup your existing bin/modules/smartedit/smartedit/buildcallbacks.xml and bin/modules/smartedit/smartedittools/buildcallbacks.xml
  3. replace bin/modules/smartedit/smartedit/buildcallbacks.xml with smartedit-buildcallbacks.xml (rename it to buildcallbacks.xml)
  4. replace bin/modules/smartedit/smartedittools/buildcallbacks.xml with smartedittools-buildcallbacks.xml (rename it to buildcallbacks.xml)
  5. again, do ant clean all (or ant all)
  6. if smartedit is not working, restore your backup, do ant clean all, then replace buildcallbacks.xml again

smartedit-buildcallbacks.xml

smartedittools-buildcallbacks.xml

stephen_spalding
Contributor
0 Kudos

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

adiputera
Active Participant
0 Kudos

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.