相关疑难解决方法(0)

哪个maven依赖项包含在Spring 3.0中?

我正在尝试使用Spring 3.0(和maven)完成我的第一个项目.我在相当多的项目中一直使用Spring 2.5(和引物版本).不过我有点困惑,我必须在我的pom.xml中定义哪些模块作为依赖项.我只想使用核心容器函数(bean,core,context,el).

我习惯这样做:

<dependency>
    <groupId>org.springframework</groupId>
    <artifactId>spring</artifactId>
    <version>2.5.6</version>
</dependency>
Run Code Online (Sandbox Code Playgroud)

但现在我有点困惑,因为3.0版本没有完整的弹簧模块.我尝试了以下但它没有用(有些类缺失).

    <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-core</artifactId>
        <version>3.0.0.RELEASE</version>
    </dependency>
    <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-expression</artifactId>
        <version>3.0.0.RELEASE</version>
    </dependency>
    <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-beans</artifactId>
        <version>3.0.0.RELEASE</version>
    </dependency>
    <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-context</artifactId>
        <version>3.0.0.RELEASE</version>
    </dependency>
Run Code Online (Sandbox Code Playgroud)

任何帮助,将不胜感激!

java spring dependencies maven-2

114
推荐指数
2
解决办法
14万
查看次数

我如何找到Apache Buildr/Maven 2 repo名称

我刚开始使用Apache Buildr而且我经常遇到不知道repo urls和版本可供我使用的问题.

例如,我想在构建文件中使用Scala 2.8,我之前使用的id是:

2.8.0-SNAPSHOT
Run Code Online (Sandbox Code Playgroud)

但现在没有找到.我还想使用最新版本的Apache POI.如果我看看maven2回购:

http://mirrors.ibiblio.org/maven2/
Run Code Online (Sandbox Code Playgroud)

我可以看到它只有3.2版本.

是否有任何标准的方法来寻找回购并搜索他们可用的东西?

maven-2 scala buildr apache-poi scala-2.8

4
推荐指数
1
解决办法
2621
查看次数

标签 统计

maven-2 ×2

apache-poi ×1

buildr ×1

dependencies ×1

java ×1

scala ×1

scala-2.8 ×1

spring ×1