不使用 Maven 下载 Spring Jars
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/19469542/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Downloading Spring Jars without using Maven
提问by resigned
How do you download Spring Framework jars if you can't stand Maven or any of the other build management tools. From what I can tell it seems you have to spend many frustrating hours on Google to find out how to do this. I thought Spring was supposed to be easy. All I'm trying to do is to write a simple Hello World application using Eclipse and Tomcat. Why is it so difficult with Spring 3?
如果您无法忍受 Maven 或任何其他构建管理工具,您如何下载 Spring Framework jars。据我所知,您似乎必须在谷歌上花费许多令人沮丧的时间才能找到如何做到这一点。我认为春天应该很容易。我想要做的就是使用 Eclipse 和 Tomcat 编写一个简单的 Hello World 应用程序。为什么 Spring 3 这么难?
回答by borei
go there
去那里
http://repo.spring.io/release/org/springframework/spring/
http://repo.spring.io/release/org/springframework/spring/
you can see all versions, like old school
你可以看到所有版本,比如老派
回答by Vidya
Why can't you stand Maven? I like Maven, but I really like Gradle.
为什么你不能忍受Maven?我喜欢 Maven,但我真的很喜欢Gradle。
Either way, if you only build with your IDE, you can't automate your build (so no chance at continuous integration/delivery), and it's tough to integrate new members of your team. Specifically with this question about Spring dependencies, it is a lot easier to automate management of transitive dependencies rather than download them all yourself--and figuring out which new jars to download by tracing through one NoClassDefFoundErrorafter another.
无论哪种方式,如果您只使用 IDE 进行构建,则无法自动构建(因此没有机会进行持续集成/交付),并且很难集成团队的新成员。特别是关于 Spring 依赖项的这个问题,自动管理传递依赖项比自己下载它们要容易得多——并通过一个NoClassDefFoundError接一个地跟踪来确定要下载哪些新 jar 。
I think the Spring guys can't imagine why anyone would want to endure all these downsides. But it's your project and you should do what you think is right.
我认为 Spring 的人无法想象为什么有人要忍受所有这些缺点。但这是你的项目,你应该做你认为正确的事情。
So if you must, grab the jars starting with this one from Maven Centralyourself and have some fun.
因此,如果您必须这样做,请自己从Maven Central 中获取从这个开始的 jar并享受一些乐趣。
回答by Robert Moskal
That's funny. It seems everyone wants you to use a dependency management tool. You can always browse a maven repository and download the parts you need:
那很好笑。似乎每个人都希望您使用依赖项管理工具。您可以随时浏览 Maven 存储库并下载您需要的部分:

