2

我以前做得很好,但现在它坏了。我怀疑 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

任何帮助表示赞赏

4

1 回答 1

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

它工作得很好

于 2013-08-09T06:10:13.770 回答