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

Viewed 318

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?

1 Answers

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.

Related