[ https://issues.apache.org/jira/browse/MENFORCER-493?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17779674#comment-17779674 ]
Slawomir Jaranowski edited comment on MENFORCER-493 at 10/25/23 8:41 PM: ------------------------------------------------------------------------- What is your requirements? Why do you want display Maven version with each build? Where do you want such feature .... everywhere, on CI system or elsewhere ... Depends on what, why and where you can use: file in project: .mvn/maven.config with content {{-V}} environment variable: {{MAVEN_ARGS=-V}} [https://maven.apache.org/configure.html] was (Author: slawekjaranowski): What is your requirements? Why do you want display Maven version with each build? Where do you want such feature .... everywhere, on CI system or elsewhere ... Depends on what, eay and where you can use: file in project: .mvn/maven.config with content {{-V}} environment variable: {{MAVEN_ARGS=-V}} https://maven.apache.org/configure.html > 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)