針對grails的私有庫的設置,設置USER_HOME/settings.groovy以下:maven
grails.dependency.cache.dir = "c:/m2_repositories" grails.project.mavenCache = "c:/m2_repositories" grails.project.dependency.authentication = { credentials { id = "nexus" username = "USERNAME" password = "PASSWORD" } } grails.project.repos.ssRepo.username = "deployment" grails.project.repos.ssRepo.password = "password"