我以前建造的这个很好,但现在已经坏了。我怀疑json-lib:2.4-jenkins-2是问题
$:~/java$ gent --http --name=test kiy0taka/jenkins-plugin
$:~/java$ cd test
$:~/java/test$ ./gradlew server
最终命令的输出
: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
感谢任何帮助
答案 0 :(得分:1)
好的不知道为什么会这样,但我删除了缓存的文件
rm -fr /home/XXXX/.m2/repository/org/kohsuke/stapler/json-lib/2.4-jenkins-2/json-lib-2.4-jenkins-2.pom
并使用
重建./gradlew server
它工作正常