Here's a working example: http://jira.codehaus.org/browse/MNG-2561

Hi, thanks for the cookbook example.

My problem now is that if I use filtering, I get exceptions thrown
during testing, these exceptions aren't thrown if I remove the
filter/resources sections from my pom.  Is this a known issue?  Is
there anything I have to do to get my tests to pass without throwing
exceptions?

some output:

       at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
java.util.zip.ZipException: oversubscribed literal/length tree
       at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:140)
       at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
       at java.io.BufferedInputStream.read(BufferedInputStream.java:235)
       at java.io.FilterInputStream.read(FilterInputStream.java:66)
       at com.sun.imageio.plugins.png.PNGImageReader.decodePass(PNGImageReader.
java:1165)
       at com.sun.imageio.plugins.png.PNGImageReader.decodeImage(PNGImageReader
.java:1276)
       at com.sun.imageio.plugins.png.PNGImageReader.readImage(PNGImageReader.j
ava:1362)
       at com.sun.imageio.plugins.png.PNGImageReader.read(PNGImageReader.java:1
579)
       at javax.imageio.ImageIO.read(ImageIO.java:1400)
       at javax.imageio.ImageIO.read(ImageIO.java:1322)
       at com.seanergie.persistence.ImageFile.initSizes(ImageFile.java:101)
       at com.seanergie.persistence.ImageFile.<init>(ImageFile.java:63)
       at com.seanergie.persistence.ImageFileTest.constructTestImageFile(ImageF
ileTest.java:18)

As I said, if I remove the resources/filters from the pom, the tests
pass, so there's something fishy going on when maven uses filters.

Thanks for your help so far (btw what time is it for you?)

Kev

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to