Maven error: Error in opening zip file

Discussion in 'BungeeCord Plugin Development' started by Mas, May 20, 2016.

Thread Status:
Not open for further replies.
  1. Mas

    Mas

    This has only started happening recently, I have no idea why;
    When I try and build my plugin with maven using intellilJ, I get this error:

    Code (Text):

    "C:\Program Files\Java\jdk1.8.0_91\bin\java" "-Dmaven.home=C:\Program Files (x86)\JetBrains\IntelliJ IDEA Community Edition 2016.1\plugins\maven\lib\maven3" "-Dclassworlds.conf=C:\Program Files (x86)\JetBrains\IntelliJ IDEA Community Edition 2016.1\plugins\maven\lib\maven3\bin\m2.conf" -Didea.launcher.port=7534 "-Didea.launcher.bin.path=C:\Program Files (x86)\JetBrains\IntelliJ IDEA Community Edition 2016.1\bin" -Dfile.encoding=UTF-8 -classpath "C:\Program Files (x86)\JetBrains\IntelliJ IDEA Community Edition 2016.1\plugins\maven\lib\maven3\boot\plexus-classworlds-2.4.jar;C:\Program Files (x86)\JetBrains\IntelliJ IDEA Community Edition 2016.1\lib\idea_rt.jar" com.intellij.rt.execution.application.AppMain org.codehaus.classworlds.Launcher -Didea.version=2016.1.2 clean package
    [INFO] Scanning for projects...
    [INFO]                                                                        
    [INFO] ------------------------------------------------------------------------
    [INFO] Building HNRCore 1.0.0
    [INFO] ------------------------------------------------------------------------
    [WARNING] The POM for org.spigotmc:spigot:jar:1.9.4-R0.1-SNAPSHOT is missing, no dependency information available
    Downloading: http://repo.md-5.net/content/repositories/public/org/spigotmc/spigot/1.9.4-R0.1-SNAPSHOT/spigot-1.9.4-R0.1-SNAPSHOT.jar
    [WARNING] Checksum validation failed, expected <!DOCTYPE but is 97af04937e85b08fc62178d636f4b635253171a3 for http://repo.md-5.net/content/repositories/public/org/spigotmc/spigot/1.9.4-R0.1-SNAPSHOT/spigot-1.9.4-R0.1-SNAPSHOT.jar
    [WARNING] Checksum validation failed, expected <!DOCTYPE but is daf91190c4033852b1b3f3ce7eb736806369f296 for http://repo.md-5.net/content/repositories/public/org/spigotmc/spigot/1.9.4-R0.1-SNAPSHOT/spigot-1.9.4-R0.1-SNAPSHOT.jar
    Downloaded: http://repo.md-5.net/content/repositories/public/org/spigotmc/spigot/1.9.4-R0.1-SNAPSHOT/spigot-1.9.4-R0.1-SNAPSHOT.jar (100 KB at 33.4 KB/sec)
    [INFO]
    [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ HNRCore ---
    [INFO] Deleting C:\Users\samvp\workspace\HNRCore\target
    [INFO]
    [INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ HNRCore ---
    [debug] execute contextualize
    [WARNING] File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent!
    [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
    [INFO] Copying 1 resource to .
    [INFO]
    [INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ HNRCore ---
    [WARNING] File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent!
    [INFO] Compiling 2 source files to C:\Users\samvp\workspace\HNRCore\target\classes
    [INFO] -------------------------------------------------------------
    [ERROR] COMPILATION ERROR :
    [INFO] -------------------------------------------------------------
    [ERROR] error: error reading C:\Users\samvp\.m2\repository\org\spigotmc\spigot\1.9.4-R0.1-SNAPSHOT\spigot-1.9.4-R0.1-SNAPSHOT.jar; error in opening zip file
    [INFO] 1 error
    [INFO] -------------------------------------------------------------
    [INFO] ------------------------------------------------------------------------
    [INFO] BUILD FAILURE
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 5.624s
    [INFO] Finished at: Fri May 20 18:52:53 BST 2016
    [INFO] Final Memory: 9M/113M
    [INFO] ------------------------------------------------------------------------
    [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project HNRCore: Compilation failure
    [ERROR] error: error reading C:\Users\samvp\.m2\repository\org\spigotmc\spigot\1.9.4-R0.1-SNAPSHOT\spigot-1.9.4-R0.1-SNAPSHOT.jar; error in opening zip file
    [ERROR] -> [Help 1]
    [ERROR]
    [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
    [ERROR] Re-run Maven using the -X switch to enable full debug logging.
    [ERROR]
    [ERROR] For more information about the errors and possible solutions, please read the following articles:
    [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

    Process finished with exit code 1
     

    I have tried searching it, but none of the solutions presented were clear/worked.

    Any suggestions?
     
  2. Not sure at all if this is going to fix your issue but try to rerun BuildTools. It seems to be an issue with the spigot (1.9.4) you generated using the BuildTools.
     
    • Winner Winner x 1
  3. Mas

    Mas

    Thanks, that fixed it :D
     
Thread Status:
Not open for further replies.