简体   繁体   English

Gradle战争因编译任务而失败

[英]Gradle war fails with compile task

In order to set war file into Tomcat server, I try : 为了将war文件设置为Tomcat服务器,我尝试:

Gradle war (5.3.1)fails with 摇篮战争(5.3.1)失败

provided group: 'javax.servlet', name: 'javax.servlet-api', version: '3.1.0' 提供的组:“ javax.servlet”,名称:“ javax.servlet-api”,版本:“ 3.1.0”

Could not find provided 找不到提供

Do you know why ? 你知道为什么吗 ?

Do not hesitate to merge request or commit at https://github.com/moueza/spring-mvc-hello-world-example-mkyong-gradle/issues/2 不要犹豫在https://github.com/moueza/spring-mvc-hello-world-example-mkyong-gradle/issues/2合并请求或提交

Because there is no such provided configuration. 因为没有provided这样的配置。 There is providedCompile and providedRuntime . providedCompileprovidedRuntime Read the documentation . 阅读文档

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM