Skip to content

Document that spring-boot:repackage should not be run from the command-line #22317

@jmaasing

Description

@jmaasing

This is exactly the same as reported #19055

Environment:

mvn -V
Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)
¨Java version: 14.0.1, vendor: Azul Systems, Inc.,
Default locale: en_SE, platform encoding: UTF-8
OS name: "mac os x", version: "10.15.5", arch: "x86_64", family: "mac"

How to reproduce

Go to https://start.spring.io/
Select Maven, Java, 2.3.1, Jar, Java 14.
Unpack the downloaded zip file and go into the directory:
Type:
mvn clean package

wait for it to finish, then type:
mvn spring-boot:repackage

I get the following error:

[ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.3.1.RELEASE:repackage (default-cli) on project demo: Execution default-cli of goal org.springframework.boot:spring-boot-maven-plugin:2.3.1.RELEASE:repackage failed: Source file must not be null -> [Help 1]

Workaround

Run mvn clean package spring-boot:repackage

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions