gpt4 book ai didi

java - 尝试迁移到 wicket 6 时出错

转载 作者:太空宇宙 更新时间:2023-11-04 07:06:39 25 4
gpt4 key购买 nike

我尝试从 wicket 1.4 迁移到 wicket 6,但出现此错误:

Failed to execute goal on project WicketExamples: Could not resolve dependencies for project com.core:WicketExamples:war:1.1-SNAPSHOT: Failure to find org.apache.wicket:wicket:jar:6.12.0 in http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced

这是我对 pom.xml 的依赖项:

<dependencies>
<dependency>
<groupId>org.apache.wicket</groupId>
<artifactId>wicket</artifactId>
<version>6.12.0</version>
</dependency>

<dependency>
<groupId>org.apache.wicket</groupId>
<artifactId>wicket-spring</artifactId>
<version>6.12.0</version>
</dependency>

<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
<version>4.0.0.RELEASE</version>
</dependency>

<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
<version>4.0.0.RELEASE</version>
</dependency>

<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-web</artifactId>
<version>4.0.0.RELEASE</version>
</dependency>

<!-- slf4j-log4j -->
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
<version>1.6.4</version>
</dependency>

</dependencies>

有什么建议吗?

最佳答案

您的第一个依赖项应该是 wicket-core 而不是 wicket:

<dependency>
<groupId>org.apache.wicket</groupId>
<artifactId>wicket-core</artifactId>
<version>6.13.0</version>
</dependency>

wicket最新版本是6.13.0

关于java - 尝试迁移到 wicket 6 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21276316/

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