[ 
https://issues.apache.org/jira/browse/MNG-7663?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Guillaume Nodet updated MNG-7663:
---------------------------------
    Description: 
This breaks the flatten-maven-plugin for example.

The reason is that maven injects a 
{{org.apache.maven.artifact.repository.ArtifactRepository}} instance for the 
{{{}$\{localRepository{}}}} which is the same than the one available from 
{{MavenExecutionRequest.getLocalRepository()}} .  

Unfortunately those objects do not wrap the maven resolver local repository 
implementation and the layout is hardcoded.  The actual implementation is 
created by 
[https://github.com/apache/maven/blob/maven-3.9.x/maven-core/src/main/java/org/apache/maven/bridge/MavenRepositorySystem.java#L638]

> The local ArtifactRepository is broken when using enhanced local repo
> ---------------------------------------------------------------------
>
>                 Key: MNG-7663
>                 URL: https://issues.apache.org/jira/browse/MNG-7663
>             Project: Maven
>          Issue Type: Bug
>    Affects Versions: 3.9.0
>            Reporter: Guillaume Nodet
>            Priority: Major
>
> This breaks the flatten-maven-plugin for example.
> The reason is that maven injects a 
> {{org.apache.maven.artifact.repository.ArtifactRepository}} instance for the 
> {{{}$\{localRepository{}}}} which is the same than the one available from 
> {{MavenExecutionRequest.getLocalRepository()}} .  
> Unfortunately those objects do not wrap the maven resolver local repository 
> implementation and the layout is hardcoded.  The actual implementation is 
> created by 
> [https://github.com/apache/maven/blob/maven-3.9.x/maven-core/src/main/java/org/apache/maven/bridge/MavenRepositorySystem.java#L638]



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to