maven-assembly-plugin icon indicating copy to clipboard operation
maven-assembly-plugin copied to clipboard

[MASSEMBLY-925] Detailed error message on assembly failure

Open jira-importer opened this issue 6 years ago • 6 comments

Christian Domsch opened MASSEMBLY-925 and commented

If the assembly fails during processing of its dependencySets/fileSets, it would be very convenient to get the current set/item it is trying to work on while it fails.

I just lost about a couple days worth of tracking down, why my assembly failed with the message: "Failed to create assembly: Error creating assembly archive base: archive is not a ZIP archive -> [Help 1]" Long story short, in our package feed (we are building our software in Azure) one dependency that we used had a corrupt ZIP archive. Since this assembly is the final one we use to build our installers, it contains 50 dependencySets and some files and filesets. Which means, tracking down which of those was causing the issue while one build roughly takes 40mins, is very time consuming.

In order to improve this, it would be very helpful, if in the event of an error, the plugin would tell you which module/dependency/file it actually failed on.


Affects: 3.2.0

Issue Links:

  • COMPRESS-515 Add fileName/path info to ZipFile constructor IOException ("is blocked by")

Remote Links:

0 votes, 6 watchers

jira-importer avatar Dec 16 '19 12:12 jira-importer