filename in maven plugin creates an unreadable zip
Status: Beta
Brought to you by:
simontuffs
Hi,
i use this plugin for the first time and i just wan't to build a jar with default name. So i just added the filename parameter to the plugin configuration.
<configuration> <onejarVersion>0.97</onejarVersion> <attachToBuild>true</attachToBuild> <filename>${project.build.finalName}.jar</filename> </configuration>
The jar file will be created but the main file is corrupted. When starting i get an message:
E:\daten\workspace\MSA2Fulltext\target>java -jar MSA2Fulltext-1.0-SNAPSHOT.jar Unable to load resource: java.io.EOFException: Unexpected end of ZLIB input stream java.io.EOFException: Unexpected end of ZLIB input stream at java.util.zip.InflaterInputStream.fill(Unknown Source)
Extracting <main>.jar with 7Zip leads into a : invalid or corrupted jarfile.