如何修复“找不到ID为’jetty’的插件”错误?

huangapple go评论54阅读模式
英文:

How to fix "plugin with id 'jetty' not found" error?

问题

当我将Gradle项目导入STS时,出现了错误:

FAILURE: Build failed with an exception.

* Where:
Build file 'C:\Users\test\build.gradle' line: 4

* What went wrong:
A problem occurred evaluating root project 'test'.
> 找不到ID为'jetty'的插件。

* Try:
> 使用--stacktrace选项运行以获取堆栈跟踪。
> 使用--info或--debug选项运行以获取更多日志输出。
> 使用--scan选项运行以获得完整的洞察。

* 获取更多帮助请访问 https://help.gradle.org

配置失败,耗时121毫秒

我尝试将第4行的 apply plugin: 'jetty' 修改为以下任一选项都不起作用:

apply plugin: 'org.gretty'

apply plugin: 'com.dsvdsv.gradle.plugin'

apply plugin: 'org.akhikhl.gretty'

我应该如何修复这个问题?

英文:

java 1.7
gradle version 7.4.2

When I import gradle project to sts, it gives me an error:

FAILURE: Build failed with an exception.

* Where:
Build file 'C:\Users\test\build.gradle' line: 4

* What went wrong:
A problem occurred evaluating root project 'test'.
> Plugin with id 'jetty' not found.

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Get more help at https://help.gradle.org

CONFIGURE FAILED in 121ms

enter image description here

I tried to change line number 4 apply plugin: 'jetty' to
apply plugin: 'org.gretty'
or
apply plugin: 'com.dsvdsv.gradle.plugin'
or
apply plugin: 'org.akhikhl.gretty'

but it didn't work.

How should I fix this?

答案1

得分: 0

尝试

插件 {
id("org.gretty") 版本 "4.0.3"
}


<details>
<summary>英文:</summary>

Try

plugins {
id("org.gretty") version "4.0.3"
}


</details>



huangapple
  • 本文由 发表于 2023年7月18日 12:15:57
  • 转载请务必保留本文链接:https://go.coder-hub.com/76709498.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定