Ask questionsSource file must be provided failure when running spring-boot:repackage from the command-line


Getting the following error when running mvn spring-boot:repackage as standalone command

Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.2.1.RELEASE:repackage (default-cli) on project ce360-manager-service: Execution default-cli of goal org.springframework.boot:spring-boot-maven-plugin:2.2.1.RELEASE:repackage failed: Source file must be provided

Steps to reproduce Have a Spring boot application that successfully builds when using the command mvn clean package spring-boot:repackage Try running the commands in separate invocation mvn clean mvn package mvn spring-boot:repackage

Spring boot version 2.2.1.RELEASE

λ mvn -version Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-10T10:41:47-06:00) Maven home: C:\tools\apache-maven-3.3.9 Java version: 1.8.0_162, vendor: Oracle Corporation Java home: C:\tools\jdk1.8.0_162\jre Default locale: en_US, platform encoding: Cp1252 OS name: "windows 10", version: "10.0", arch: "amd64", family: "dos"

I have console logs to show more detail but I am unable to attach files to the issue (fetch-json.js:16 POST 503 (Service Unavailable)) so I will provide them in-line if needed


Answer questions ninjubohra

Attached please find two files running each goal as a separate command - failure.log running all goals as part of a single command - success.log


Related questions

Dependency resolution fails with Gradle 5.3.x to 5.6.x hot 4
get error messag Could not fetch the SequenceInformation from the database, hibernate_sequence doesn't exist hot 2
[spring-boot 2.3.0] ResponseStatusException reason is ignored - spring-boot hot 2
Controller annotated with @Timed and active TimedAspect clashes with WebMvcMetricsFilter hot 2
Actuator: NPE in LongTaskTimingHandlerInterceptor hot 2
ConfigurationProperties with constructor binding cannot be mocked hot 2
NoClassDefFoundError: net/bytebuddy/NamingStrategy$SuffixingRandom$BaseNameResolver hot 2
No bean named 'entityManagerFactory' available hot 2
Bug in org.springframework.boot on 2.2.3.RELEASE version hot 2
"factory already defined" error with spring-boot-maven-plugin in maven multi-module application hot 2
Deadlock between BackgroundPreinitializer and main thread in Spring Cloud Config Server hot 2
spring boot Servlet.service() for servlet [dispatcherServlet] in context with path threw exception hot 2
Migrating OAuth2 from Spring Boot 1.5 to 2.0 Broken hot 2
Add AutoConfiguration support for spring-security-saml2-service-provider hot 2
Validation api missing in 2.3.0.RELEASE hot 2
Github User Rank List