"The value of the local variable servername is not used"
Why not? Isn't used in this part.

Sry i'm new to maven. I changed some other parts... I'll close this one.
Messed it up. Sry