Spring

 Getting the error when deploying spring boot application ...warning [/tmp/app/WEB-INF/lib/spring-expression-5.0.7.RELEASE.jar]: 280032 extra bytes at beginning or within zipfile. Does any one else got this error and what is solution

Dipak 27's profile image
Dipak 27 posted Jul 07, 2018 10:31 PM

 

Daniel Mikusa's profile image
Daniel Mikusa

I've seen this in the past. It usually happens when Gradle or Maven cache an invalid JAR dependency. Usually what happens is that Gradle/Maven download the dependency on your local machine, but something fails with the download. It often happens silently so you don't notice. Then they, in an attempt to be helpful and save bandwidth, cache that file forever. Even though the file is invalid.

 

What you need to do to fix, is go into your local maven cache and manually delete the file. `~/.m2/repository/` is typically where Maven caches things, I believe `~/.gradle/caches` is where Gradle puts them. In either case, just look for the JAR file causing the problem and delete it.

 

Ex: `find ~/.m2/repository -name expression-5.0.7.RELEASE.jar`

 

After you delete the file do a clean & rebuild your project. Then push again, and you should get past the error.

 

Hope that helps!