英文:
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
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>
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论