2
我试图使用发布2.0.4插件通过grails 2.1.1部署我的战争到artifactory服务器。Grails和发布插件
我BuildConfig.groovy有:
grails.project.repos.snap.url = "http://server:8080/artifactory/apps-snapshot-local"
grails.project.repos.snap.username = "user"
grails.project.repos.snap.password = "password"
grails.project.repos.rel.url = "http://server:8080/artifactory/apps-release-local"
grails.project.repos.rel.username = "user"
grails.project.repos.rel.password = "password"
grails.project.repos.default = "rel"
当我只是做了“的Grails Maven的部署”,它的工作原理,并如预期部署到我的服务器版本。当我尝试通过命令行覆盖默认目标时,我遇到了失败。
grails maven-deploy --repository=snap
我得到这个:
| Done creating WAR snap
| POM generated: C:\dev-git\DBUpdateWeb\target/pom.xml.
| Error Error deploying artifact: C:\dev-git\DBUpdateWeb\target\DBUpdateWeb.war (The system cannot find the file specified)
| Error Have you specified a configured repository to deploy to (--repository argument) or specified distributionManagement in your POM?
当我做指定--repository标签不产生一场战争,即使它说,它做到了。任何帮助表示赞赏。提前致谢。