[MNG-8539] MavenProject.getArtifacts() always returns file path in with default path pattern
- Dominant language
- Java
- Stars
- 5.3k
- Forks
- 3.1k
- Avg merge
- 20h 42m
- Merged PRs (30d)
- 297
Description
**[Konrad Windszus](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=kwin)** opened **[MNG-8539](https://issues.apache.org/jira/browse/MNG-8539?redirect=false)** and commented
In Maven 3.x the file path returned for `MavenProject.getArtifacts()...getFile()` always considered the actually attached file names (i.e. considering the `project.build.finalName`, https://maven.apache.org/pom.html#The_BaseBuild_Element_Set) while with Maven4 this always returns a file path in the project local repository which does not consider the `finalName`.
This may lead to subtle differences where the artifacts filename is used for other purposes as well.
---
**Affects:** 4.0.0-beta-3
**Issue Links:**
- [JCRVLT-777](https://issues.apache.org/jira/browse/JCRVLT-777) ITs fail in Maven 4
(_**"blocks"**_)
Contributor guide
Assessment
This issue has not been assessed yet.