How to print the actual MAVEN_OPTIONS that are being used?

后端 未结 5 1133
一个人的身影
一个人的身影 2021-02-20 03:35

Is there a way to get maven to output the value of environment and maven variables during a build? This would be very useful for debugging things when they\'re going wrong.

5条回答
  •  没有蜡笔的小新
    2021-02-20 04:19

    Run your maven with -X or --debug options

    Command line example:

    mvn clean compile --debug
    

    You'll see environment information on your console.

提交回复
热议问题