elharo opened a new issue, #12588:
URL: https://github.com/apache/maven/issues/12588
# 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:
```java
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.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]