Java 缺少工件org.springframework:springbean:jar:5.0.0.M4
我有一个JavaSpringMVC顶点。当我将以下依赖项添加到Java 缺少工件org.springframework:springbean:jar:5.0.0.M4,java,spring,maven,spring-mvc,Java,Spring,Maven,Spring Mvc,我有一个JavaSpringMVC顶点。当我将以下依赖项添加到pom.xml中时: <dependency> <groupId>org.springframework</groupId> <artifactId>spring-beans</artifactId> <version>5.0.0.M4</version> </dependency> 所以,我的pom有什么问题?使
pom.xml
中时:
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-beans</artifactId>
<version>5.0.0.M4</version>
</dependency>
所以,我的pom有什么问题?使用当前版本的SpringBeans中的bellow版本的依赖关系。您可以使用以下依赖项:-
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-beans</artifactId>
<version>4.3.8.RELEASE</version>
</dependency>
org.springframework
春豆
4.3.8.1发布
添加此更新maven项目后,使用当前版本的Springbeans中的bellow版本的依赖项。您可以使用以下依赖项:-
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-beans</artifactId>
<version>4.3.8.RELEASE</version>
</dependency>
org.springframework
春豆
4.3.8.1发布
添加此更新maven项目后,它是一个里程碑(预发布)版本,在maven中不可用。如果您想使用它,可以将spring里程碑存储库添加到pom.xml中
<repositories>
<repository>
<id>spring-milestones</id>
<name>Spring Milestones</name>
<url>https://repo.spring.io/libs-milestone</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
</repositories>
春季里程碑
春季里程碑
https://repo.spring.io/libs-milestone
错误的
然而,由于它是一个预发布的版本,所以不建议在生产环境中使用它,除非您有一个特定的需求/功能,该需求/功能仅在新版本中可用,因为它可能包含bug 这是一个里程碑(预发布)版本,在Maven中不可用。如果您想使用它,可以将spring里程碑存储库添加到pom.xml中
<repositories>
<repository>
<id>spring-milestones</id>
<name>Spring Milestones</name>
<url>https://repo.spring.io/libs-milestone</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
</repositories>
春季里程碑
春季里程碑
https://repo.spring.io/libs-milestone
错误的
然而,由于它是一个预发布的版本,所以不建议在生产环境中使用它,除非您有一个特定的需求/功能,该需求/功能仅在新版本中可用,因为它可能包含bug 默认情况下,pom.xml的存储库如下所述
<id>central</id>
<name>Central Repository</name>
<url>https://repo.maven.apache.org/maven2</url>
默认情况下,pom.xml的存储库如下所述
<id>central</id>
<name>Central Repository</name>
<url>https://repo.maven.apache.org/maven2</url>