如何获取 Spring 3 的 spring-framework-3.0.5-RELEASE-with-dependency.zip 文件?
我对 Spring 3 有一点疑问,它涉及到它的依赖关系,或者更好地说“它们缺乏......”。
例如,当您下载 Spring 2.5.x 时,您将获得一个spring-framework-2.5。 6-with-dependency.zip
文件包含 Spring 发行版及其依赖项。
Spring 3 则没有。当依赖项在 Maven 存储库中管理并使用 Ivy 检索时,您只能获得发行版。这是 springsource 研究员做出的决定。这让我想到了我的问题。
在工作中,Maven 存储库上写满了“禁止访问”,而且我们不使用 Ivy。我们使用 Maven,但使用本地企业存储库,除此之外的任何内容都是不允许的(安全问题 yada yada 这最终是有道理的,但使我作为开发人员的工作变得更加困难)。将某些内容放入本地存储库意味着批准、资源部署、配置、访问权限、时间、金钱等。
到处都有一些 JAR 是可以的,但我想 Spring 依赖项意味着不仅仅是几个 JAR。因此,这将在很长一段时间内得到批准和安装。同时我们无法在 Spring 3 中进行开发(虽然一切都在本地存储库中设置),所以我们需要依赖项。
我在这里找到了这个页面:
http://static.springsource.org /downloads/nightly/snapshot-download.php?project=SPR
其中包含一些依赖项,但我需要它用于 3.0.5 版本,而不是用于夜间构建。
简而言之,我需要一个 spring-framework-3.0.5-RELEASE-with-dependency.zip
文件。我怎样才能得到一个?
PS 我必须提到,我不能只是下载一些东西回家,然后把所有东西都放在一根棍子上,这是我脑海中浮现的第一个建议。其他规则也适用于此:D,所以我需要下载官方版本。
I have a bit of an issue with Spring 3 and it involves its dependencies or better said "their lack of...".
When you download Spring 2.5.x for example you get a spring-framework-2.5.6-with-dependencies.zip
file containing the Spring distribution as well as its dependencies.
For Spring 3 there isn't one. You only get the distro while dependencies are managed in Maven repository and retrieved with Ivy. That was the decision springsource fellows took. Which brings me to my problem.
At work Maven repository has "forbidden access" written all over it and we don't use Ivy. We use Maven but with a local enterprise repository and nothing beyond that is allowed (security concerns yada yada which ultimately makes sense but makes my job as a developer harder). To put something in the local repository means approvals, deployments of resources, configurations, acces rights, time, money etc.
It is OK with a few JARS here and there but I imagine Spring dependencies mean more than a few JARs. So that will be approved and installed over o long period of time. Meanwhile we can't develop in Spring 3 (while everything is set up in the local repository) so we need the dependencies.
I found this page here:
http://static.springsource.org/downloads/nightly/snapshot-download.php?project=SPR
which contains some dependencies but i need it for release 3.0.5 not for nightly builds.
In short, I need a spring-framework-3.0.5-RELEASE-with-dependencies.zip
file. Ho do I get one?
P.S. I must mention that I can't just download something home and bring everything on a stick which is the first suggestion that pops in mind. Other rules apply for this :D, so I need an official release to download.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
步骤:
转到 http://s3.amazonaws.com/dist.springframework.org/release/SPR/spring-framework-3.0.5.RELEASE.zip
当您点击 URL 时,会自动开始下载 jar 文件
解压后,有一个名为
dist
的文件夹,其中包含以下 spring 3.0.5 的 jar 文件注意:只需修改版本即可下载任何版本的 spring 框架上述 URL 中的版本为 3.0.1 或 3.2.5(根据您需要的任何其他版本)
Steps:
Go to http://s3.amazonaws.com/dist.springframework.org/release/SPR/spring-framework-3.0.5.RELEASE.zip
When you hit the URL, your download for jar files starts automatically
After unzipping, there is a folder called
dist
which contains the following jar files for spring 3.0.5NOTE : You can download any release of spring framwork just by modifying the release version to 3.0.1 or 3.2.5(any other versions according to your need)in the above mentioned URL
没有大型“Spring 3 包含一切”构建的主要原因之一是您可能不需要它。 (它绝对是巨大的!)相反,您应该确定您实际需要的部分并仅包含它们。问题是这对你来说很困难。
唉,从长远来看,我认为对您来说最好的方法是将 Spring 3 及其依赖项放入您的机构 Maven 存储库中(切换到 Ivy 并没有真正的帮助;机构问题不在于 Maven,而在于依赖于未经审查的外部库) 。是的,这很尴尬,但这就是你必须面对的。从后门偷东西是没有用的!也许有理由询问是否有一种相对快速的方法可以在以前的版本被认为可以接受的情况下获得批准(这可能是“是的,前提是没有许可意外”)?
您可能需要使用 Maven(或 Ivy,但我不知道)首先获取依赖项的完整列表,以便您可以准确描述实际涉及的更改,并注意某些依赖项可能已经得到批准。
(我只是希望我对如何处理你的流程有更好的想法,但是违背其精神和文字会让公司官僚非常不安。生活不值得这样的事情。)
One of the main reasons that there isn't a big “Spring 3 with everything” build is that you probably don't need it. (It's absolutely huge!) Instead, you're supposed to identify the parts that you actually need and only include them. The problem is that this makes it hard for you.
Alas, the best way I see long-term for you is to get Spring 3 and its dependencies into your institutional Maven repository (switching to Ivy wouldn't really help; the institutional problem is not with Maven but with depending on unvetted external libraries). Yes, it's awkward but that's what you've got to work with. Sneaking things in the back-door won't help! Perhaps it would be reasonable to inquire whether there is a relatively rapid method to get things approved where previous versions have been found acceptable (which might be “yes, subject to there being no license surprises”)?
You'll probably need to use Maven (or Ivy, but I don't know it) to get the full list of dependencies first, so that you can describe exactly what changes are actually involved, and be aware that some of the dependencies might already be approved.
(I just wish I had a better idea for how to deal with your process, but working against both its spirit and letter is a way to get a corporate bureaucrat very upset. Life's not worth such things.)
我已经分享了 Spring 官方网站的原始文件:
http://kuai.xunlei.com/d/QBEMGYUXOOKN
http://s3.amazonaws.com/dist.springframework.org/release/SPR/spring-framework-3.0.5.RELEASE-dependency.zip
I've shared the very origin file from Spring official site:
http://kuai.xunlei.com/d/QBEMGYUXOOKN
http://s3.amazonaws.com/dist.springframework.org/release/SPR/spring-framework-3.0.5.RELEASE-dependencies.zip
在家创建一个项目,添加spring 3中需要的东西,用eclipse+m2eclipse打开项目,查看依赖层次结构。然后它会告诉你你需要什么作为对 spring 的依赖。
很可能很多依赖项与 spring 2.5 中的相同,因为很多 spring 3 的东西没有改变。
你可以让你家里的maven下载所有依赖项...你将拥有自己的spring + dependencys版本
Create a project at home, add what you need in spring 3 to that, open the project with eclipse+m2eclipse and view the dependency hierarchy. That will then tell you what you need as dependencies on spring.
Chances are a lot of the dependencies are the same as they were in spring 2.5 as a lot of the spring 3 stuff didn't change.
You can ask your maven at home to download all the dependencies... and you'll have your own version of spring+dependencies