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

Michael Osipov edited comment on MENFORCER-493 at 10/29/23 11:01 AM:
---------------------------------------------------------------------

bq. To my mind the easiest way to fix this is migrate to a new goal and add 
this to the defaultGoal to allow the same experience for all users.

This does not make any sense. Replacing one goal with another is like not 
deprecating it at all. The purpose of the deprecation was to reduce duplicate 
code which it is with {{mvn -V}}.

bq. As I have to adjust a lot of projects to get rid of this build warning I'm 
looking for a future-proof way that has the same functionality/contents in my 
builds.

No, you don't. Look at https://maven.apache.org/configure.html. You have the RC 
files, {{MAVEN_ARGS}} and {{.mvn/maven.config}}. The first two are system-wide 
or user-wide, the latter project-wide. Please look into it.


was (Author: michael-o):
> To my mind the easiest way to fix this is migrate to a new goal and add this 
> to the defaultGoal to allow the same experience for all users.

This does not make any sense. Replacing one goal with another is like not 
deprecating it at all. The purpose of the deprecation was to reduce duplicate 
code which it is with {{mvn -V}}.

> As I have to adjust a lot of projects to get rid of this build warning I'm 
> looking for a future-proof way that has the same functionality/contents in my 
> builds.

No, you don't. Look at https://maven.apache.org/configure.html. You have the RC 
files, {{MAVEN_ARGS}} and {{.mvn/maven.config}}. The first two are system-wide 
or user-wide, the latter project-wide. Please look into it.

> Provide a more meaningful hint after deprecation of goal display-info
> ---------------------------------------------------------------------
>
>                 Key: MENFORCER-493
>                 URL: https://issues.apache.org/jira/browse/MENFORCER-493
>             Project: Maven Enforcer Plugin
>          Issue Type: Wish
>    Affects Versions: 3.4.1
>            Reporter: Philipp Ottlinger
>            Priority: Major
>
> After upgrading to 3.4.1 I see many warnings in my builds
> {{[WARNING]  Goal 'display-info' is deprecated: please use mvn --version}}
> as I use
> {{enforcer:display-info}}
> as part of my defaultGoal definition.
>  
> I do know mvn --version but I'm not sure how to integrate it into my build as 
> I did with display-info as part of my defaultGoal. Adding a new build step to 
> all my projects seems a rather cumbersome way of deprecating this 
> functionality.
>  
> Is there a better way to get these build informations into my build logs? If 
> so, I'd love to see this instead of a build warning.
>  
> Thanks
>  



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

Reply via email to