grails 私有库相关设置

针对grails的私有库的设置,设置USER_HOME/settings.groovy如下:

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"

 

posted @ 2015-12-25 11:25  福娃  阅读(227)  评论(0编辑  收藏  举报