28 Feb 2006, 1:29am
Projects:
by

2 comments

  • Corrupted Jar On Local Maven Repository

    test:test:
    [junit] Running
    foo.bar.BlahTestCase java.util.zip.ZipException: error in opening zip file
    at java.util.zip.ZipFile.open(Native Method)
    at java.util.zip.ZipFile.<init>(ZipFile.java:111)
    at java.util.zip.ZipFile.<init>(ZipFile.java:127)
    at org.apache.tools.ant.AntClassLoader.getResourceURL(AntClassLoader.java:870)
    at org.apache.tools.ant.AntClassLoader.getResource(AntClassLoader.java:799)
    

    After staring blankly on why the test failed with Maven but it was ok as a stand-alone, I remembered that I had this problem before. It was caused by corrupted jar on my local maven repository. The solution was to simply destroy the repository and rebuild it.

    Recent Posts

    Recent Comments

    • SIMAR PAUL SINGH: Define :global_known_hosts_file :user_known_hosts_file options with a list of valid host_file...
    • Penny: I received this book from my Grandmother 6 months before she died. She INSISTED I read it…and I kept...
    • Nicholas Orr: Hilarious ;) No need to put true, keep’em guessing. Thanks for posting this am going to have to...
    • Amy: Truly awesome! I will share it with my boys who lost their father at 4&5 they are 8&9 now. What a gift...
    • Michael Sharkey: Let the propaganda continue!

    Most Commented Posts

    Linkroll