In maven XAR project when we add an attachement as described in the XAR plugin doc, XWiki CLI fail to get the attachment size and so crash.
This issue is to fix this issue.