Compat MavenArtifact.setFile() is a no-op
Found in: maven-4.0.x branch
File: compat/maven-compat/src/main/java/org/apache/maven/artifact/MavenArtifact.java (lines ~100-102)
Severity: Critical
Description
The setFile(File file) method immediately returns without setting the file on the delegate Maven 4 artifact:
public void setFile(File file) {
// returns without delegating — no-op
}
This means resolved artifact file paths are never propagated back to the underlying Maven 4 artifact, causing downstream consumers to see no resolved file for any artifact resolved through the compat layer.
Compat MavenArtifact.setFile() is a no-op
Found in: maven-4.0.x branch
File:
compat/maven-compat/src/main/java/org/apache/maven/artifact/MavenArtifact.java(lines ~100-102)Severity: Critical
Description
The
setFile(File file)method immediately returns without setting the file on the delegate Maven 4 artifact:This means resolved artifact file paths are never propagated back to the underlying Maven 4 artifact, causing downstream consumers to see no resolved file for any artifact resolved through the compat layer.