【问题标题】:Grails and release pluginGrails 和发布插件
【发布时间】:2013-01-16 13:19:37
【问题描述】:

我正在尝试使用 release 2.0.4 插件通过 grails 2.1.1 将我的战争部署到工件服务器。

我的 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-deploy”时,它会按预期工作并部署到我的 rel 服务器。当我尝试通过命令行覆盖默认目标时,我遇到了失败。

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 标记时,它不会产生战争,即使它说它确实如此。任何帮助表示赞赏。提前致谢。

【问题讨论】:

    标签: grails release


    【解决方案1】:

    试试 grails maven-deploy "--repository=snap"。

    另外,在 application.properties 中指定 app.version 以使 WAR 符合标准(1.0-SNAPSHOT 用于发布到快照存储库,1.0 用于发布),并注释掉 grails.project.war.file 中的行BuildConfig.groovy。

    【讨论】:

      猜你喜欢
      • 2012-04-19
      • 2014-10-31
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-06-02
      • 1970-01-01
      相关资源
      最近更新 更多