Important Notice - Forums is archived
To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
Couldn`t build basic application in Intellij Idea (maven)
After installing pure Intellij Idea I try to compile Vaadin basic application from vaadin.archetype.application.
mvn clean compile fails
Build log with -X attached
Looks like some of jars are corrupted.
The root cause seems to be this:
C:\Program Files\Java\jdk1.8.0_91\jre\bin\java -classpath C:\vaadin\github\vaadin-test-project\src\main\webapp;C:\vaadin\github\vaadin-test-project\target\classes;C:\vaadin\github\vaadin-test-project\src\main\java;C:\vaadin\github\vaadin-test-project\src\main\resources;C:\Users\xoton\.m2\repository\javax\servlet\javax.servlet-api\3.0.1\javax.servlet-api-3.0.1.jar;C:\Users\xoton\.m2\repository\com\vaadin\vaadin-server\7.6.8\vaadin-server-7.6.8.jar;C:\Users\xoton\.m2\repository\com\vaadin\vaadin-sass-compiler\0.9.13\vaadin-sass-compiler-0.9.13.jar;C:\Users\xoton\.m2\repository\com\vaadin\external\flute\flute\1.3.0.gg2\flute-1.3.0.gg2.jar;C:\Users\xoton\.m2\repository\com\yahoo\platform\yui\yuicompressor\2.4.8\yuicompressor-2.4.8.jar;C:\Users\xoton\.m2\repository\rhino\js\1.7R2\js-1.7R2.jar;C:\Users\xoton\.m2\repository\com\vaadin\vaadin-shared\7.6.8\vaadin-shared-7.6.8.jar;C:\Users\xoton\.m2\repository\com\vaadin\external\streamhtmlparser\streamhtmlparser-jsilver\0.0.10.vaadin1\streamhtmlparser-jsilver-0.0.10.vaadin1.jar;C:\Users\xoton\.m2\repository\com\vaadin\external\google\guava\16.0.1.vaadin1\guava-16.0.1.vaadin1.jar;C:\Users\xoton\.m2\repository\org\jsoup\jsoup\1.8.3\jsoup-1.8.3.jar;C:\Users\xoton\.m2\repository\com\vaadin\vaadin-push\7.6.8\vaadin-push-7.6.8.jar;C:\Users\xoton\.m2\repository\com\vaadin\external\atmosphere\atmosphere-runtime\2.2.7.vaadin1\atmosphere-runtime-2.2.7.vaadin1.jar;C:\Users\xoton\.m2\repository\com\vaadin\external\slf4j\vaadin-slf4j-jdk14\1.6.1\vaadin-slf4j-jdk14-1.6.1.jar;C:\Users\xoton\.m2\repository\com\vaadin\vaadin-client\7.6.8\vaadin-client-7.6.8.jar;C:\Users\xoton\.m2\repository\org\w3c\css\sac\1.3\sac-1.3.jar;C:\Users\xoton\.m2\repository\javax\validation\validation-api\1.0.0.GA\validation-api-1.0.0.GA.jar;C:\Users\xoton\.m2\repository\javax\validation\validation-api\1.0.0.GA\validation-api-1.0.0.GA-sources.jar;C:\Users\xoton\.m2\repository\com\vaadin\vaadin-themes\7.6.8\vaadin-themes-7.6.8.jar com.vaadin.server.themeutils.SASSAddonImportFileCreator C:\vaadin\github\vaadin-test-project\src\main\webapp\VAADIN\themes\mytheme
[ERROR] Error parsing jar file
[ERROR] java.util.zip.ZipException: invalid LOC header (bad signature)
It may be that one of your jars is corrupted. See if deleting your .m2 folder and running the maven build again makes a difference.
Marcus Hellberg: The root cause seems to be this:
C:\Program Files\Java\jdk1.8.0_91\jre\bin\java -classpath C:\vaadin\github\vaadin-test-project\src\main\webapp;C:\vaadin\github\vaadin-test-project\target\classes;C:\vaadin\github\vaadin-test-project\src\main\java;C:\vaadin\github\vaadin-test-project\src\main\resources;C:\Users\xoton\.m2\repository\javax\servlet\javax.servlet-api\3.0.1\javax.servlet-api-3.0.1.jar;C:\Users\xoton\.m2\repository\com\vaadin\vaadin-server\7.6.8\vaadin-server-7.6.8.jar;C:\Users\xoton\.m2\repository\com\vaadin\vaadin-sass-compiler\0.9.13\vaadin-sass-compiler-0.9.13.jar;C:\Users\xoton\.m2\repository\com\vaadin\external\flute\flute\1.3.0.gg2\flute-1.3.0.gg2.jar;C:\Users\xoton\.m2\repository\com\yahoo\platform\yui\yuicompressor\2.4.8\yuicompressor-2.4.8.jar;C:\Users\xoton\.m2\repository\rhino\js\1.7R2\js-1.7R2.jar;C:\Users\xoton\.m2\repository\com\vaadin\vaadin-shared\7.6.8\vaadin-shared-7.6.8.jar;C:\Users\xoton\.m2\repository\com\vaadin\external\streamhtmlparser\streamhtmlparser-jsilver\0.0.10.vaadin1\streamhtmlparser-jsilver-0.0.10.vaadin1.jar;C:\Users\xoton\.m2\repository\com\vaadin\external\google\guava\16.0.1.vaadin1\guava-16.0.1.vaadin1.jar;C:\Users\xoton\.m2\repository\org\jsoup\jsoup\1.8.3\jsoup-1.8.3.jar;C:\Users\xoton\.m2\repository\com\vaadin\vaadin-push\7.6.8\vaadin-push-7.6.8.jar;C:\Users\xoton\.m2\repository\com\vaadin\external\atmosphere\atmosphere-runtime\2.2.7.vaadin1\atmosphere-runtime-2.2.7.vaadin1.jar;C:\Users\xoton\.m2\repository\com\vaadin\external\slf4j\vaadin-slf4j-jdk14\1.6.1\vaadin-slf4j-jdk14-1.6.1.jar;C:\Users\xoton\.m2\repository\com\vaadin\vaadin-client\7.6.8\vaadin-client-7.6.8.jar;C:\Users\xoton\.m2\repository\org\w3c\css\sac\1.3\sac-1.3.jar;C:\Users\xoton\.m2\repository\javax\validation\validation-api\1.0.0.GA\validation-api-1.0.0.GA.jar;C:\Users\xoton\.m2\repository\javax\validation\validation-api\1.0.0.GA\validation-api-1.0.0.GA-sources.jar;C:\Users\xoton\.m2\repository\com\vaadin\vaadin-themes\7.6.8\vaadin-themes-7.6.8.jar com.vaadin.server.themeutils.SASSAddonImportFileCreator C:\vaadin\github\vaadin-test-project\src\main\webapp\VAADIN\themes\mytheme [ERROR] Error parsing jar file [ERROR] java.util.zip.ZipException: invalid LOC header (bad signature)
It may be that one of your jars is corrupted. See if deleting your .m2 folder and running the maven build again makes a difference.
Yep. Now all is OK. Thanks a lot!
Great. You're the second person within a few days that has posted about that. Not sure if there was some corrupted jar that got accidentally uploaded and subsequently replaced with a working one and you just happened to download when the broken one was there.
Anyway, glad I could help :)