geschema
geschema

Reputation: 2494

Maven warning: Artifact references the same file as the assembly destination file

I'm getting the following maven warning while building my project:

[INFO] --- maven-assembly-plugin:3.3.0:single (default) @ app-cl ---
[WARNING] Artifact: com.myorg:app-cl:jar:2021.08.2 build XXX references the same file as the assembly destination file. Moving it to a temporary location for inclusion.

What does it mean and what can I do about it?

Upvotes: 2

Views: 1308

Answers (1)

Piotr Michalczyk
Piotr Michalczyk

Reputation: 298

It looks like this warning is from this class: AddArtifactTask. Apparently that was added as a workaround to fix this problem. Info from the ticket:

This is due to the fact that the dependency set task tries to include the main project artifact as one of the dependencies. This causes a problem when there is no assembly ID and no classifier, because the archiver tries to include the destination file for the assembly in itself.

Upvotes: 1

Related Questions