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

Philipp Ottlinger commented on MENFORCER-493:
---------------------------------------------

I look at it from a customer perspective and do not know any inside details 
..... my current build scripts have a goal to show build/JDK information.

This is deprecated (and will be remove in a future release).

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.

Having to set environment variables needs user interaction ..... this is what I 
wanted to avoid. I'll try the .mvn way as I haven't used it at all before.

> 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