cancel
Showing results for 
Search instead for 
Did you mean: 

Ant clean all deletes all addons

Former Member
0 Kudos

Hey experts,

I have a problem with my ant clean all process. everytime the process is deleting every addon from my storefront but its not copying the needed files back when the addons are genereated. so my build fails when it tries to compile the less files which are just not existing. The installed and the localextensions.xml and extensioninfo.xml are defined correctly.

Does anybody know what tot do?

Accepted Solutions (0)

Answers (4)

Answers (4)

0 Kudos

might be issue with addoninstall, even after installing the addon if you still face same issue check if in your storefront extension's extensioninfo.xml have the addon entries.

If not, you can manually edit the extensioninfo.xml to have your addon entry. And try building again.

former_member595526
Active Participant
0 Kudos

I too faced this problem. Installing the addon to storefront again solved the problem. Just try it. Ant clean all worked after installing it again.

Hope it helps

former_member620692
Active Contributor
0 Kudos

Did you migrate to a newer version or installed hybris in a new environment/machine and copied there the custom extensions from your version repository? If yes, you need to install the addon again. Unfortunately, this is how hybris installs the addon currently: instead of updating the project.properties file of your storefront, it updates the project.properties of your addon which is refreshed in the new version. However, since you do not include the OOTB extensions/addons in version repository, they will not be copied to a new environment or pulled by a developer to a local machine. It means that those updates to the addon/project.properties will have to be copied to the addon/project.properties in the new version/environment/machine explicitly (by executing the addoninstall command as a recommended practice or by copying from addon/project.properties of the old-version/source machine and pasting into addon/project.properties of the new-version/target machine).

Former Member
0 Kudos

It is a fresh 6.7 version and I also tried to reinstall the addons, but there is no difference to the result. The build process crashes when the compiling of the less files take part, because therefore the addons are not available but listet in the addons.less file the process quits.

former_member702005
Participant
0 Kudos

Could be an issue with running ant addoninstall? https://help.hybris.com/1808/hcd/8adf7365866910149ceb975f778d809d.html

Former Member
0 Kudos

The issue appeared from one day to another. The addons itself were installed correctly, because my system was running the days before. But something (without any changes) happened and I couldn't figured out what. I also initialized again and it helped for getting the addons back. But perfort clean all deletes the addons again. Now even through initialize the addons don't come back :(

former_member702005
Participant
0 Kudos

Hi Frederic, ant clean is supposed to remove the addons, so I understand that you're problem is with recreating them during ant sync task (triggered during ant build). Since you're issue seems non-deterministic, maybe check if you're using the addonfilter that's supposed to copy the files between addon and target storefront during runtime.