[英]Is Jenkins plugin support development through gradle broken
I was building this fine previously but now its broken. 我以前建立的很好,但现在已经坏了。 I suspect the json-lib:2.4-jenkins-2 is the problem
我怀疑json-lib:2.4-jenkins-2是问题
$:~/java$ gent --http --name=test kiy0taka/jenkins-plugin
$:~/java$ cd test
$:~/java/test$ ./gradlew server
Output from final command 最终命令的输出
:localizer
:stapler FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':stapler'.
> Could not resolve all dependencies for configuration ':compile'.
> Artifact 'org.kohsuke.stapler:json-lib:2.4-jenkins-2@jar' not found.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 9.302 secs
Any help is appreciated 任何帮助表示赞赏
Ok not sure why this is but I removed the cached file 确定不知道为什么,但是我删除了缓存的文件
rm -fr /home/XXXX/.m2/repository/org/kohsuke/stapler/json-lib/2.4-jenkins-2/json-lib-2.4-jenkins-2.pom
and rebuilt with 并用
./gradlew server
and it worked fine 而且效果很好
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.