When called from the command line, the following will work:
mvn -Duser.name=<username> clean install
In NetBeans 7.4, you can configure the username globally as follows: Tools -> Options -> Java -> Maven, select the "Execution" category on the left and set
Global Implementation Options:
-Duser.name=<username>
Alternatively, this can be done by setting the appropriate property in the action settings for a specific project (Project Properties → Actions → for example, Build project).
anre
source share