[ https://issues.apache.org/jira/browse/MASSEMBLY-897?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16996664#comment-16996664 ]
Marcel commented on MASSEMBLY-897: ---------------------------------- [~khmarbaise] I've tested with both 3.1.1 and 3.2.0 and it works. I suppose you took care of the integration test. > zipentry.getSize() returns -1 for regular files in a m-a-p created zip > ---------------------------------------------------------------------- > > Key: MASSEMBLY-897 > URL: https://issues.apache.org/jira/browse/MASSEMBLY-897 > Project: Maven Assembly Plugin > Issue Type: Bug > Components: maven-archiver > Affects Versions: 2.5, 2.4.1, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.5.5, 2.6, 3.1.0 > Environment: Windows, oracle and ibm 1.8 jvm's > Reporter: Marcel > Priority: Major > Attachments: ReadZip.java, pom.xml > > > When you create a zip file using maven-assembly-plugin in one the 'affected > versions' and later read it back usingĀ java.util.zip.ZipInputStream, the > ZipEntry instances for files will returnĀ -1 from a call to > zipentry.getSize(). Using version 2.4 this call will return the correct > uncompressed size. It also works when I build and use the latest > 3.1.1-SNAPSHOT. It was fixed in commit 5ccac88 which not surprisingly updated > plexus-archiver. > Please consider releasing 3.1.1 to make this publicly available and also to > use the attached pom and java code to add a testcase guarding against a > future regression. -- This message was sent by Atlassian Jira (v8.3.4#803005)