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

Controller annotated with @Timed and active TimedAspect clashes with WebMvcMetricsFilter hot 2
Actuator: NPE in LongTaskTimingHandlerInterceptor hot 2
NoClassDefFoundError: net/bytebuddy/NamingStrategy$SuffixingRandom$BaseNameResolver 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
Classloading problems with Spring Boot, JDK11 and Security Manager hot 1
java.lang.NullPointerException: null occurs in HttpExchangeTracer hot 1
Multiple data source projects cannot be started hot 1
Dependency resolution fails with Gradle 5.3.x to 5.6.x hot 1
get error messag Could not fetch the SequenceInformation from the database, hibernate_sequence doesn't exist hot 1
HttpTraceFilter bean missing hot 1
A java.lang.NoClassDefFoundError: ch/qos/logback/classic/spi/ThrowableProxy was thrown when killing my app hot 1
Issue with spring boot v2.1.2 with DocumentBuilderFactory.setFeature(String) hot 1
ErrorPageFilter ignores REST response in case of Exception hot 1
ConfigurationProperties with constructor binding cannot be mocked hot 1
Github User Rank List