尝试迁移到wicket 6时出错

时间:2014-01-22 07:04:28

标签: java maven wicket-6

我试图从wicket 1.4迁移到wicket 6,但我遇到了这个错误:

  

无法在项目上执行目标WicketExamples:无法解析项目com.core的依赖项:WicketExamples:war:1.1-SNAPSHOT:无法在{{3}中找到org.apache.wicket:wicket:jar:6.12.0缓存在本地存储库中,在中心的更新间隔过去或强制更新之前,不会重新尝试解析

这是我对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>

有什么建议吗?

1 个答案:

答案 0 :(得分:1)

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

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

wicket的最新版本是6.13.0