java 如何获取 Spring 3 的 spring-framework-3.0.5-RELEASE-with-dependencies.zip 文件?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/6564177/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-30 16:23:22  来源:igfitidea点击:

How to get a spring-framework-3.0.5-RELEASE-with-dependencies.zip file for Spring 3?

javaspringmaven-2dependenciesspring-3

提问by ElenaT

I have a bit of an issue with Spring 3 and it involves its dependencies or better said "their lack of...".

我对 Spring 3 有一些问题,它涉及它的依赖关系,或者更好地说“他们缺乏......”。

When you downloadSpring 2.5.x for example you get a spring-framework-2.5.6-with-dependencies.zipfile containing the Spring distribution as well as its dependencies.

例如,当您下载Spring 2.5.x 时,您将获得一个spring-framework-2.5.6-with-dependencies.zip包含 Spring 发行版及其依赖项的文件。

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.

对于 Spring 3,没有一个。您只能在依赖项在 Maven 存储库中管理并使用 Ivy 检索时获得发行版。这是 springsource 研究员做出的决定。这让我想到了我的问题。

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.

在工作中,Maven 存储库写满了“禁止访问”,我们不使用 Ivy。我们使用 Maven,但使用本地企业存储库,除此之外什么都不允许(安全问题 yada yada 最终是有道理的,但使我作为开发人员的工作更加困难)。将某些内容放入本地存储库意味着批准、资源部署、配置、访问权限、时间、金钱等。

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.

在这里和那里有几个 JARS 没问题,但我想 Spring 依赖意味着不止几个 JAR。因此,这将在很长一段时间内获得批准和安装。同时,我们无法在 Spring 3 中进行开发(而所有内容都在本地存储库中设置),因此我们需要依赖项。

I found this page here:

我在这里找到了这个页面:

http://static.springsource.org/downloads/nightly/snapshot-download.php?project=SPR

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.

它包含一些依赖项,但我需要它来发布 3.0.5 而不是每晚构建。

In short, I need a spring-framework-3.0.5-RELEASE-with-dependencies.zipfile. Ho do I get one?

简而言之,我需要一个spring-framework-3.0.5-RELEASE-with-dependencies.zip文件。我能得到一个吗?

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.

PS 我必须提一下,我不能只是下载一些东西回家,然后把所有东西都放在一根棍子上,这是我想到的第一个建议。其他规则适用于此:D,所以我需要一个官方版本才能下载。

采纳答案by Donal Fellows

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.

没有大型“Spring 3 with Everything”构建的主要原因之一是您可能不需要它。(它绝对是巨大的!)相反,您应该确定您实际需要的部分,并且只包括它们。问题是这让你很难。

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”)?

唉,我认为长期对您来说最好的方法是将 Spring 3 及其依赖项放入您的机构 Maven 存储库(切换到 Ivy 并没有真正的帮助;体制问题不在于 Maven,而是依赖于未经的外部库) . 是的,这很尴尬,但这就是你必须处理的。在后门偷东西也无济于事!也许有理由询问是否有一种相对快速的方法可以在以前的版本被认为可以接受的情况下获得批准(这可能是“是的,前提是没有许可证意外”)?

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.

您可能需要先使用 Maven(或 Ivy,但我不知道它)来获取完整的依赖项列表,以便您可以准确描述实际涉及的更改,并注意某些依赖项可能已经被批准。

(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.)

(我只是希望我对如何处理你的流程有一个更好的想法,但是违背它的精神和文字是一种让企业官僚非常沮丧的方式。生活不值得这样的事情。)

回答by Vineetha Swathi

Steps:

脚步:

  1. Go to http://s3.amazonaws.com/dist.springframework.org/release/SPR/spring-framework-3.0.5.RELEASE.zip

  2. When you hit the URL, your download for jar files starts automatically

  3. After unzipping, there is a folder called distwhich contains the following jar files for spring 3.0.5

    • org.springframework.aop-3.0.5.RELEASE.jar
    • org.springframework.asm-3.0.5.RELEASE.jar
    • org.springframework.aspects-3.0.5.RELEASE.jar
    • org.springframework.beans-3.0.5.RELEASE.jar
    • org.springframework.context.support-3.0.5.RELEASE.jar
    • org.springframework.context-3.0.5.RELEASE.jar
    • org.springframework.core-3.0.5.RELEASE.jar
    • org.springframework.expression-3.0.5.RELEASE.jar
    • org.springframework.instrument.tomcat-3.0.5.RELEASE.jar
    • org.springframework.instrument-3.0.5.RELEASE.jar
    • org.springframework.jdbc-3.0.5.RELEASE.jar
    • org.springframework.jms-3.0.5.RELEASE.jar
    • org.springframework.orm-3.0.5.RELEASE.jar
    • org.springframework.oxm-3.0.5.RELEASE.jar
    • org.springframework.test-3.0.5.RELEASE.jar
    • org.springframework.transaction-3.0.5.RELEASE.jar
    • org.springframework.web.portlet-3.0.5.RELEASE.jar
    • org.springframework.web.servlet-3.0.5.RELEASE.jar
    • org.springframework.web.struts-3.0.5.RELEASE.jar
    • org.springframework.web-3.0.5.RELEASE.jar
  1. 转至http://s3.amazonaws.com/dist.springframework.org/release/SPR/spring-framework-3.0.5.RELEASE.zip

  2. 当您点击 URL 时,您的 jar 文件下载会自动开始

  3. 解压后有一个文件夹,里面有distspring 3.0.5的以下jar文件

    • org.springframework.aop-3.0.5.RELEASE.jar
    • org.springframework.asm-3.0.5.RELEASE.jar
    • org.springframework.aspects-3.0.5.RELEASE.jar
    • org.springframework.beans-3.0.5.RELEASE.jar
    • org.springframework.context.support-3.0.5.RELEASE.jar
    • org.springframework.context-3.0.5.RELEASE.jar
    • org.springframework.core-3.0.5.RELEASE.jar
    • org.springframework.expression-3.0.5.RELEASE.jar
    • org.springframework.instrument.tomcat-3.0.5.RELEASE.jar
    • org.springframework.instrument-3.0.5.RELEASE.jar
    • org.springframework.jdbc-3.0.5.RELEASE.jar
    • org.springframework.jms-3.0.5.RELEASE.jar
    • org.springframework.orm-3.0.5.RELEASE.jar
    • org.springframework.oxm-3.0.5.RELEASE.jar
    • org.springframework.test-3.0.5.RELEASE.jar
    • org.springframework.transaction-3.0.5.RELEASE.jar
    • org.springframework.web.portlet-3.0.5.RELEASE.jar
    • org.springframework.web.servlet-3.0.5.RELEASE.jar
    • org.springframework.web.struts-3.0.5.RELEASE.jar
    • org.springframework.web-3.0.5.RELEASE.jar

NOTE: You can download any release of spring framwork just by modifying the release version to 3.0.1or 3.2.5(any other versions according to your need)in the above mentioned URL

注意:您可以通过在上述 URL中将发布版本修改为3.0.13.2.5(根据您的需要的任何其他版本)来下载任何版本的 spring 框架

回答by Sum Chan

I've shared the very origin file from Spring official site: http://kuai.xunlei.com/d/QBEMGYUXOOKNhttp://s3.amazonaws.com/dist.springframework.org/release/SPR/spring-framework-3.0.5.RELEASE-dependencies.zip

我分享了 Spring 官方网站的原始文件:http: //kuai.xunlei.com/d/QBEMGYUXOOKNhttp://s3.amazonaws.com/dist.springframework.org/release/SPR/spring-framework- 3.0.5.RELEASE-dependencies.zip

回答by Michael Wiles

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.

在家创建一个项目,在里面添加spring 3需要的东西,用eclipse+m2eclipse打开项目,查看依赖层次。然后它会告诉你你需要什么作为对 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.

很可能很多依赖项与 spring 2.5 中的相同,因为 spring 3 的很多东西没有改变。

You can ask your maven at home to download all the dependencies... and you'll have your own version of spring+dependencies

你可以在家里让你的maven下载所有的依赖......你就会有你自己的spring+dependencies版本