我正在尝试建立开发环境,因此我开始遵循intershop教程:准备工件仓库服务器(https://support.intershop.com/kb/index.php/Display/287Q77)。
我跑步时
[vagrant@localhost corporate-distribution]$ ./gradlew publish -PreleaseURL=http://localhost:8081/nexus/content
/repositories/distributions -PscmVersionExt=REALEASE
即使我收到构建成功的消息,也不会在链接上发布任何内容
:publish UP-TO-DATE
BUILD SUCCESSFUL
当我和
一起跑步时[vagrant@localhost corporate-distribution]$ ./gradlew publish -PrunOnCI=true -PreleaseURL=http://localhost:808
1/nexus/content/repositories/distributions -PscmVersionExt=REALEASE
All tasks will be executed on a CI build environment.
:downloadGradle
:customGradleDistribution
FAILURE: Build failed with an exception.
* What went wrong:
Could not expand ZIP '/home/vagrant/intershop-cisetup-sources/devops/gradle/corporate-distribution/gradle-downloads/gradle-2.11-bin.zip'.
> archive is not a ZIP archive
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
我验证了zip文件:
-rw-rw-r--. 1 vagrant vagrant 0 Nov 8 16:52 gradle-2.11-bin.zip
所以我手动下载了一个,并将其添加到gradle-downloads文件夹中。同样的事情..我总是得到:publish UP-TO-DATE。
任何想法都会受到赞赏。预先谢谢你。
答案 0 :(得分:2)
原因是(新的)从http://services.gradle.org/distributions
重定向到https://services.gradle.org/distributions
。
请将您的Gradle分发URL更改为https。
受影响的文件:corporate-ditribution/gradle/wrapper/gradle-wrapper.properties
,corporate-distribution/build.gradle