Maven property current user name?

后端 未结 1 1931
故里飘歌
故里飘歌 2021-02-07 04:50

Is there any maven property to get the user name of the user that runs maven (windows and linux)?

1条回答
  •  终归单人心
    2021-02-07 05:00

    You can just use System Properties, here's the Overview of standard Properties.

    In your case, user.name is what you want, use the ${} syntax:

    
    ${user.name}
    
    

    0 讨论(0)
提交回复
热议问题