我正在尝试使用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)
任何帮助,将不胜感激!
我刚开始使用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版本.
是否有任何标准的方法来寻找回购并搜索他们可用的东西?