This was a small issue l have faced while am putting ant clean all.
The Issue/Error is:
Build failed, due to missing enclosing type ‘Your item type’.
The simple solution for this error is – Go to your items.xml file (or)
Check your Itemtype that you have define in XML where you have given autocreate=”false”.
That is the reason, your build getting failed. which should be “true”
You can set it as “false ” only in case if the model class is already exists in hybris.