apache / apache/maven

[MNG-8539] MavenProject.getArtifacts() always returns file path in with default path pattern

Open
#10,690 0 comments 0 reactions 0 assignees View on GitHub
bug priority:major
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.