我正试图为Bukkit编写一个插件,但我似乎无法让它工作。我从github "GitHub码“复制了一些代码,并将其作为maven项目导入eclipse。当我尝试以“Maven Build”的形式运行时,它会显示大量的文本,但最终会给出这些错误。
Failed to execute goal on project BlockHunt: Could not resolve dependencies for project nl.Steffion:BlockHunt:jar:0.2.1-
b${env.BUILD_NUMBER}: Failed to collect dependencies at org.bukkit:bukkit:jar:1.7.9-R0.2-SNAPSHOT:
Failed to read artifact descriptor for org.bukkit:bukkit:jar:1.7.9-R0.2-SNAPSHOT: Could not transfer artifact org.bukkit:bukkit:pom:1.7.9-
R0.2-SNAPSHOT from/to bukkit-maven (http://repo.bukkit.org/content/repositories/releases/): Access denied
to http://repo.bukkit.org/content/repositories/releases/org/bukkit/bukkit/1.7.9-R0.2-SNAPSHOT/bukkit-1.7.9-R0.2-SNAPSHOT.pom.我在另一篇文章中看到,我可以在maven的运行配置中添加“依赖项:复制依赖项”,并且它应该尝试下载我需要的东西,但是它说访问被拒绝了。我从未使用过maven或github,所以这对我来说都是新的,但看起来应该非常简单。我真正想做的就是下载代码并用它创建一个jar文件,这样我就可以使用它了。如果有人能为我指出正确的方向,用代码制作一个jar,那就太好了。
https://stackoverflow.com/questions/28378260
复制相似问题