It's not supported.
The fix is to handle the exception and rethrow our own. The JDK zip lib does not support outputting empty files.
OK - thanks for pointing this out.
Yep, as Aslak points out this message *is* the fix, something which tells you exactly what went wrong and why:
java.lang.IllegalArgumentException: [SHRINKWRAP-93] Cannot use this JDK-based implementation to export as ZIP an archive with no content: test.war: 0 assets