gpt4 book ai didi

Spring boot POM file add dependency [closed](Spring Boot POM文件添加依赖项[已关闭])

转载 作者:bug小助手 更新时间:2023-10-28 21:56:33 25 4
gpt4 key购买 nike




I am trying to add dependency in my pom.xml file

我正在尝试在pom.xml文件中添加依赖项


<dependency>
<groupId>org.apache.tomcat.embed</groupId>
<artifactId>tomcat.embed.jasper</artifactId>
<scope>provided</scope>
<version>10.1.3</version>
</dependency>

But getting an error Missing artifact org.apache.tomcat.embed:tomcat.embed.jasper:jar:10.1.3

但是出现缺少构件org.apache.tomcat.embed:tomcat.embed.jasper:jar:10.1.3的错误


Tried to make changes but still getting same error

尝试进行更改,但仍收到相同的错误


更多回答

Questions seeking debugging help ("why isn't this code working?") must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it in the question itself. Questions without a clear problem statement are not useful to other readers. See: How to create a Minimal, Reproducible Example.

寻求调试帮助的问题(“为什么这段代码不工作?”)必须包括所需的行为、特定的问题或错误以及在问题本身中重现该问题所需的最短代码。没有明确的问题陈述的问题对其他读者没有用处。请参阅:如何创建最小的、可重现的示例。

Try a valid version of your artifact, like one from the list here mvnrepository.com/artifact/org.apache.tomcat.embed/…

尝试一个有效的工件版本,比如mvnrepository.com/artifact/org.apache.tomcat.embed/.

优秀答案推荐

I checked maven central for your dependency . version 10.1.3 is not found .
https://mvnrepository.com/artifact/org.apache.tomcat.embed/tomcat-embed-jasper

我查了马文中心有没有你的依赖。找不到10.1.3版。Https://mvnrepository.com/artifact/org.apache.tomcat.embed/tomcat-embed-jasper


更多回答

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com