I found it!
In the settings.xml file I surrounded the password between "" like "passwordwith&therestofthepassword"
<profile>
<id>keystorePassword</id>
<properties>
<keystorePassword>passwordwith&therestofpassword</keystorePassword>
</properties>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
</profile>