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/05/16 07:26:00 UTC

[jira] [Updated] (ARCHETYPE-646) "WARNING: Parameter 'localRepository' is deprecated" with Maven 3.9.1

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

Tamas Cservenak updated ARCHETYPE-646:
--------------------------------------
    Fix Version/s: 3.2.2

> "WARNING: Parameter 'localRepository' is deprecated" with Maven 3.9.1
> ---------------------------------------------------------------------
>
>                 Key: ARCHETYPE-646
>                 URL: https://issues.apache.org/jira/browse/ARCHETYPE-646
>             Project: Maven Archetype
>          Issue Type: Bug
>          Components: Plugin
>    Affects Versions: 3.2.1
>            Reporter: Wolfgang Knauf
>            Priority: Major
>             Fix For: 3.2.2
>
>         Attachments: archetype_build.png
>
>
> When building [this|https://github.com/wildfly/wildfly-archetypes/tree/master/wildfly-jakartaee-ear-archetype] archetype with Maven 3.9.1, this warning is shown:
>  
> {{[INFO] — archetype:3.1.2:integration-test (default-integration-test) @ wildfly-jakartaee-ear-archetype ---}}
> {{[WARNING] Parameter 'localRepository' is deprecated core expression; Avoid use of ArtifactRepository type. If you need access to local repository, switch to '${repositorySystemSession}' expression and get LRM from it instead.}}
> !archetype_build.png!
> Happens also with "maven-archetype-plugin" version 3.2.1.
> I didn't find a place where I use "localRepository" in the archetype project, so it could be something inside the plugin?
>  
> This is the change that caused the warning: https://issues.apache.org/jira/browse/MNG-7706
> And here is a similar ticket for another plugin: [https://github.com/mojohaus/flatten-maven-plugin/issues/345|https://github.com/mojohaus/flatten-maven-plugin/issues/345]



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