This is my first project using Spring (and I\'m not too experienced with Maven either) and I get the error in the title when running mvn package
.
This i
The exact error message in my case was this one:
Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:1.5.14.RELEASE:repackage invalid entry size (expected 1 but got 0 bytes)
I was about to create an empty clean Spring Boot project and wanted to build it, to see if everything was good. I found out that error was caused by the presence of en empty application.properties file. It was created but there was no any text in it. After I added a property (example, server.port: 19999), the project was built successfully.