Maven plugin not using proxy?

I also tried out you suggestion.

I removed the Set MAVEN_OPT to variable from the task, so the environment variables for MAVEN_OPTS with the same configuration as JAVA_OPTS is used. And I removed the SONAR_SCANNER_OPTS. Then the task is running fine.