You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Tamas Cservenak (Jira)" <ji...@apache.org> on 2023/02/21 15:07:00 UTC

[jira] [Created] (MNG-7706) Deprecate 'localRepository' mojo parameter expression

Tamas Cservenak created MNG-7706:
------------------------------------

             Summary: Deprecate 'localRepository' mojo parameter expression
                 Key: MNG-7706
                 URL: https://issues.apache.org/jira/browse/MNG-7706
             Project: Maven
          Issue Type: Improvement
          Components: Core
            Reporter: Tamas Cservenak
             Fix For: 3.9.1


This expression injects type {{ArtifactRepository}} that is part of the suite coming from Maven2 (predates Mercury, that was followed by Aether to be precise).

The problem with this interface is that it is not compatible (nor is possible to adapt it) to Maven Resolver LocalRepositoryManager due lack of context. Also, the use of this interface in Mojos causes issues like MNG-7663, as they fully (and blidnly) reimplement Maven local repository with wired in layout.

Moreover, Mojos using this expression as shown to drag other deprecated things as well, most typically use of maven-artifact-transfer, or maven-dependency-tree and so on, all things that predates Maven 3.1 (are done to "protect" from Aether package change happened between Maven 3.0 and Maven 3.1).

Today baseline for plugins is 3.2.5, so none of these "protections" are needed. In fact, the use of this expression is very good sign of legacy and lag present in given plugin.



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