now,maven need config server,how to solve it
Are you aware that this is a Gradle community forum?
Maven questions are slightly off-topic here.
If you meant how to do this in Gradle, please refer to the documentation at HTTP(S) authentication schemes configuration and Handling credentials.