Wicket的春天依赖1.5.3

时间:2012-04-28 11:22:15

标签: java spring hibernate dependencies wicket

我正在使用Wicket-Hibernate-Spring开发一个应用程序,我正在使用Wicket 1.5.5。

<repositories>
    <repository>
        <id>googlecode</id>
        <url>http://jqwicket.googlecode.com/svn/m2-repo/releases/</url>
    </repository>
</repositories>
<dependencies>
    <dependency>
        <groupId>org.apache.wicket</groupId>
        <artifactId>wicket-core</artifactId>
        <version>1.5.3</version>
    </dependency>
    <dependency>
        <groupId>org.apache.wicket</groupId>
        <artifactId>wicket-spring</artifactId>
        <version>1.5.3</version>            
    </dependency>
    <dependency>
        <groupId>org.apache.wicket</groupId>
        <artifactId>wicket-extensions</artifactId>
        <version>1.5.3</version>
    </dependency>
    <dependency>
        <groupId>org.apache.wicket</groupId>
        <artifactId>wicket-datetime</artifactId>
        <version>1.5.3</version>
    </dependency>
    <dependency>
        <groupId>com.google.code.jqwicket</groupId>
        <artifactId>jqwicket</artifactId>
        <version>0.8</version>
    </dependency>
</dependencies>

现在Spring和Hibernate的依赖是什么?我想使用每个组件的最新版本(不是beta版)。

3 个答案:

答案 0 :(得分:4)

使用存储库搜索引擎,例如官方搜索引擎:http://search.maven.org/

通过搜索“hibernate-core”,您将找到4.1.2版本:

<dependency>
    <groupId>org.hibernate</groupId>
    <artifactId>hibernate-core</artifactId>
    <version>4.1.2</version>
</dependency>

对于Spring / Hibernate集成,搜索“spring-orm”:

<dependency>
    <groupId>org.springframework</groupId>
    <artifactId>spring-orm</artifactId>
    <version>3.1.1.RELEASE</version>
</dependency>

答案 1 :(得分:2)

为了在wicket页面中使用spring bean,你可以添加wicket-spring集成依赖:

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

jar wicket-spring-annot已合并到wicket-spring 1.4中,因此没有必要。

更多信息here

答案 2 :(得分:1)

获取Wicket和Spring依赖项,要集成两者,您需要“wicket-spring.jar”。

<project ..>

<dependencies>

    <!-- Wicket framework-->
    <dependency>
        <groupId>org.apache.wicket</groupId>
        <artifactId>wicket</artifactId>
        <version>1.4.17</version>
    </dependency>

    <!-- Integrate Wicket with Spring -->
    <dependency>
        <groupId>org.apache.wicket</groupId>
        <artifactId>wicket-spring</artifactId>
        <version>1.4.17</version>
    </dependency>

    <!-- Spring framework -->
    <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-core</artifactId>
        <version>3.0.5.RELEASE</version>
    </dependency>

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

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

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

</dependencies>

</project>