Is there any maven property to get the user name of the user that runs maven (windows and linux)?
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
${}
${user.name}