1

我正在尝试安装 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 章中,有人知道如何配置吗?

4

1 回答 1

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 都是使用 <repoBaseURL> + repositories/snapshots 构建的,但是 distributionURL 缺少存储库部分。

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

于 2017-09-18T14:11:01.280 回答