[ 
https://issues.apache.org/jira/browse/ARCHETYPE-646?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17743509#comment-17743509
 ] 

Wolfgang Knauf commented on ARCHETYPE-646:
------------------------------------------

Just for the records: Maven 3.9.3 does not show the plugin validation warnings, 
here the warning is not displayed by default. To observe it, run maven with 
this argument: {{-Dmaven.plugin.validation=VERBOSE}} (see 
https://issues.apache.org/jira/browse/MNG-7767 and 
[apache/maven#1092|https://github.com/apache/maven/pull/1092])

> "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)

Reply via email to