【问题标题】:Instalation of Intershop 7.9 failing on missing version for demo cartridgesIntershop 7.9 安装失败,因为缺少演示墨盒的版本
【发布时间】:2017-09-13 13:31:10
【问题描述】:

我正在尝试安装 Intershop 7.9 版的演示商店,但无法正常工作。当我运行“gradlew deployServer”时,第一个演示商店墨盒的所有依赖项都出现错误: Could not resolve all dependencies for configuration ':app_sf_responsive:compile'. Could not resolve com.intershop.business:ac_ecircle:. Required by: nl.test.testproject:app_sf_responsive:1.0.0-LOCAL No version for module 'com.intershop.business:ac_ecircle' in project properties and no version declared in dependency. Consider adding a version or filter property to 'C:\projects\test7.9\projects\testproject\gradle.properties'

我已按照完整的 Intershop 手册设置 CI 基础设施,但有一点我不知道该怎么做,那就是使用新的版本控制插件。 在第 6.2.5 章中,有人知道如何配置吗?

【问题讨论】:

  • 您在使用“Cookbook - 设置 CI 基础架构”吗?
  • 我还尝试安装全新的 ish 7.9。我遵循了 Setup CI Infrastructure Cookbook,但无法比第 7 步更进一步。无法将公司分发上传到 nexus。
  • 是的,我正在使用设置 CI 基础架构。我完成了整个设置,但仍然遇到问题。然后我尝试重新添加公司分发 zip 文件,但失败了。

标签: intershop


【解决方案1】:

在与 Intershop 支持人员来回修改和发送邮件后,我找到了解决方案。

我的更改在 Intershop 的 Setup CI Infrastructure 的第 7.2.4 节中:

https://support.intershop.com/kb/index.php/Display/279D85#Cookbook-SetupCIInfrastructure-CorporateArtifactsRecipe:SetupCIBuildforCorporateArtifacts

我确保公司发行版是独一无二的,因为我有超过 1 个 Intershop 安装。否则上传到 Nexus(在我的情况下)仍然会失败。

在企业分发文件夹的 build.gradle 中,在 scm.version 部分添加了 disableSCM = true。现在看起来像这样:

scm {
    version {
        type = 'threeDigits'
        increment = 'MAJOR'
        patternDigits = 1
        disableSCM = true
        initialVersion = '2.0.0'
    }
}

如果未添加此内容,我会收到来自 Nexus 的错误请求 httpstatus 400,因为它试图将其作为快照上传,而分发存储库是发布存储库。

另一个问题是project/gradle/wrapper/gradle-wrapper.properties中的distributionURL 所有 Nexus 存储库 URL 都是使用 + repositories/snapshots 构建的,但 distributionURL 缺少存储库部分。

应用这些更改后,它对我有用。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2014-11-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-08-22
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多