Question

I've installed a hybris 5 Commerce Accelerator B2C platform on my computer and imported the Eclipse projects from this platform into Eclipse, but some of the projects always have build errors. I can run ant clean all from the command line and build all projects successfully, but when I try cleaning and building my workspace from Eclipse I get this error for some of the projects:

Errors running builder 'Integrated External Tool Builder' on project 'ondemandcommon'.
Variable references non-existent resource : ${workspace_loc:/platform/resources/ant/beangen.xml}
Variable references non-existent resource : ${workspace_loc:/platform/resources/ant/beangen.xml}

The file /platform/resources/ant/beangen.xml in fact doesn't exist, but every project references this file from their .externalToolBuilder/HybrisBeanGeneration.launch file (see image below), so how come only a few projects can't be built?

enter image description here

Why won't these projects compile and what's the best way to fix this?

Was it helpful?

Solution

Have you mixed and matched platform/extensions from different releases? This was replaced by codegen.xml, try using this.

Alternatively, you very well may not need any of the cis/oms/ondemand extensions and can safely remove them.

Finally, you can disable the builder in eclipse and use the Ant build system. This is faster anyway.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top