Execution default of goal org.springframework.boot:spring-boot-maven-plugin:1.0.2.RELEASE:repackage failed: Source must refer to an existing file

前端 未结 6 526
予麋鹿
予麋鹿 2020-12-23 16:32

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

6条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-23 17:17

    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.

提交回复
热议问题