关于spring源码下载编译问题

口袋里的小龙 西安家里蹲大学 农民工  2020-11-15 12:57:17
最近系统重新做了 然后 spring源码重新需要编译才能导入exlipse/idea 在编译的过程中遇到了 如下问题 希望那位大侠 能给看看

根据提示的意思每权限

Evaluating root project 'buildSrc' using build file 'D:\Workspaces\OWER\spring-f
ramework-4.2.x\buildSrc\build.gradle'.
Selected primary task 'build' from project :
:compileJava (Thread[main,5,main]) started.
:buildSrc:compileJava
file or directory 'D:\Workspaces\OWER\spring-framework-4.2.x\buildSrc\src\main\j
ava', not found
Skipping task ':compileJava' as it has no source files.
:buildSrc:compileJava UP-TO-DATE
:compileJava (Thread[main,5,main]) completed. Took 0.03 secs.
:compileGroovy (Thread[main,5,main]) started.
:buildSrc:compileGroovy
Skipping task ':compileGroovy' as it is up-to-date (took 0.1 secs).
:buildSrc:compileGroovy UP-TO-DATE
:compileGroovy (Thread[main,5,main]) completed. Took 0.12 secs.
:processResources (Thread[main,5,main]) started.
:buildSrc:processResources
Skipping task ':processResources' as it is up-to-date (took 0.0 secs).
:buildSrc:processResources UP-TO-DATE
:processResources (Thread[main,5,main]) completed. Took 0.02 secs.
:classes (Thread[main,5,main]) started.
:buildSrc:classes
Skipping task ':classes' as it has no actions.
:buildSrc:classes UP-TO-DATE
:classes (Thread[main,5,main]) completed. Took 0.03 secs.
:jar (Thread[main,5,main]) started.
:buildSrc:jar
Skipping task ':jar' as it is up-to-date (took 0.02 secs).
:buildSrc:jar UP-TO-DATE
:jar (Thread[main,5,main]) completed. Took 0.06 secs.
:assemble (Thread[main,5,main]) started.
:buildSrc:assemble
Skipping task ':assemble' as it has no actions.
:buildSrc:assemble UP-TO-DATE
:assemble (Thread[main,5,main]) completed. Took 0.03 secs.
:compileTestJava (Thread[main,5,main]) started.
:buildSrc:compileTestJava
file or directory 'D:\Workspaces\OWER\spring-framework-4.2.x\buildSrc\src\test\j
ava', not found
Skipping task ':compileTestJava' as it has no source files.
:buildSrc:compileTestJava UP-TO-DATE
:compileTestJava (Thread[main,5,main]) completed. Took 0.03 secs.
:compileTestGroovy (Thread[main,5,main]) started.
:buildSrc:compileTestGroovy
file or directory 'D:\Workspaces\OWER\spring-framework-4.2.x\buildSrc\src\test\g
roovy', not found
Skipping task ':compileTestGroovy' as it has no source files.
:buildSrc:compileTestGroovy UP-TO-DATE
:compileTestGroovy (Thread[main,5,main]) completed. Took 0.02 secs.
:processTestResources (Thread[main,5,main]) started.
:buildSrc:processTestResources
file or directory 'D:\Workspaces\OWER\spring-framework-4.2.x\buildSrc\src\test\r
esources', not found
Skipping task ':processTestResources' as it has no source files.
:buildSrc:processTestResources UP-TO-DATE
:processTestResources (Thread[main,5,main]) completed. Took 0.04 secs.
:testClasses (Thread[main,5,main]) started.
:buildSrc:testClasses
Skipping task ':testClasses' as it has no actions.
:buildSrc:testClasses UP-TO-DATE
:testClasses (Thread[main,5,main]) completed. Took 0.02 secs.
:test (Thread[main,5,main]) started.
:buildSrc:test
file or directory 'D:\Workspaces\OWER\spring-framework-4.2.x\buildSrc\build\clas
ses\test', not found
Skipping task ':test' as it has no source files.
:buildSrc:test UP-TO-DATE
:test (Thread[main,5,main]) completed. Took 0.03 secs.
:check (Thread[main,5,main]) started.
:buildSrc:check
Skipping task ':check' as it has no actions.
:buildSrc:check UP-TO-DATE
:check (Thread[main,5,main]) completed. Took 0.01 secs.
:build (Thread[main,5,main]) started.
:buildSrc:build
Skipping task ':build' as it has no actions.
:buildSrc:build UP-TO-DATE
:build (Thread[main,5,main]) completed. Took 0.02 secs.
================================================ Finished building buildSrc
Stopped 0 compiler daemon(s).
Settings evaluated using settings file 'D:\Workspaces\OWER\spring-framework-4.2.
x\settings.gradle'.
Projects loaded. Root project using build file 'D:\Workspaces\OWER\spring-framew
ork-4.2.x\build.gradle'.
Included projects: [root project 'spring', project ':spring-aop', project ':spri
ng-aspects', project ':spring-beans', project ':spring-beans-groovy', project ':
spring-build-src', project ':spring-context', project ':spring-context-support',
project ':spring-core', project ':spring-expression', project ':spring-framewor
k-bom', project ':spring-instrument', project ':spring-instrument-tomcat', proje
ct ':spring-jdbc', project ':spring-jms', project ':spring-messaging', project '
:spring-orm', project ':spring-orm-hibernate4', project ':spring-orm-hibernate5'
, project ':spring-oxm', project ':spring-test', project ':spring-tx', project '
:spring-web', project ':spring-webmvc', project ':spring-webmvc-portlet', projec
t ':spring-webmvc-tiles2', project ':spring-websocket']
Evaluating root project 'spring' using build file 'D:\Workspaces\OWER\spring-fra
mework-4.2.x\build.gradle'.
Failed to get resource: GET. [HTTP HTTP/1.1 401 Unauthorized: https://repo.sprin
g.io/plugins-release/org/asciidoctor/asciidoctor-gradle-plugin/1.5.2/asciidoctor
-gradle-plugin-1.5.2.pom]
Failed to get resource: GET. [HTTP HTTP/1.1 401 Unauthorized: https://repo.sprin
g.io/plugins-release/ws/antonov/gradle/plugins/gradle-plugin-protobuf/0.9.1/grad
le-plugin-protobuf-0.9.1.pom]
Failed to get resource: HEAD. [HTTP HTTP/1.1 401 Unauthorized: https://repo.spri
ng.io/plugins-release/org/apache/xmlgraphics/batik-dom/1.7/batik-dom-1.7.pom]
Failed to get resource: HEAD. [HTTP HTTP/1.1 401 Unauthorized: https://repo.spri
ng.io/plugins-release/saxon/saxon/6.5.3/saxon-6.5.3.pom]
Failed to get resource: HEAD. [HTTP HTTP/1.1 401 Unauthorized: https://repo.spri
ng.io/plugins-release/org/apache/xmlgraphics/batik-bridge/1.7/batik-bridge-1.7.p
om]
Failed to get resource: HEAD. [HTTP HTTP/1.1 401 Unauthorized: https://repo.spri
ng.io/plugins-release/org/apache/xmlgraphics/batik-css/1.7/batik-css-1.7.pom]
Failed to get resource: HEAD. [HTTP HTTP/1.1 401 Unauthorized: https://repo.spri
ng.io/plugins-release/org/apache/xmlgraphics/fop/0.95-1/fop-0.95-1.pom]
Failed to get resource: HEAD. [HTTP HTTP/1.1 401 Unauthorized: https://repo.spri
ng.io/plugins-release/org/apache/avalon/framework/avalon-framework-api/4.3.1/ava
lon-framework-api-4.3.1.pom]
Failed to get resource: HEAD. [HTTP HTTP/1.1 401 Unauthorized: https://repo.spri
ng.io/plugins-release/org/apache/xmlgraphics/batik-util/1.7/batik-util-1.7.pom]
Failed to get resource: HEAD. [HTTP HTTP/1.1 401 Unauthorized: https://repo.spri
ng.io/plugins-release/org/apache/xmlgraphics/batik-svg-dom/1.7/batik-svg-dom-1.7
.pom]
Failed to get resource: HEAD. [HTTP HTTP/1.1 401 Unauthorized: https://repo.spri
ng.io/plugins-release/net/sf/docbook/docbook-xsl/1.78.1/docbook-xsl-1.78.1.pom]
Failed to get resource: HEAD. [HTTP HTTP/1.1 401 Unauthorized: https://repo.spri
ng.io/plugins-release/net/sf/docbook/docbook-xml/5.0/docbook-xml-5.0.pom]
Failed to get resource: HEAD. [HTTP HTTP/1.1 401 Unauthorized: https://repo.spri
ng.io/plugins-release/net/sf/xslthl/xslthl/2.0.1/xslthl-2.0.1.pom]
Failed to get resource: HEAD. [HTTP HTTP/1.1 401 Unauthorized: https://repo.spri
ng.io/plugins-release/org/apache/xmlgraphics/xmlgraphics-commons/1.3/xmlgraphics
-commons-1.3.pom]
Failed to get resource: HEAD. [HTTP HTTP/1.1 401 Unauthorized: https://repo.spri
ng.io/plugins-release/net/sf/docbook/docbook-xsl-saxon/1.0.0/docbook-xsl-saxon-1
.0.0.pom]

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'spring'.
> Could not resolve all dependencies for configuration ':classpath'.
> Could not resolve org.asciidoctor:asciidoctor-gradle-plugin:1.5.2.
Required by:
:spring:4.2.10.BUILD-SNAPSHOT
> Could not resolve org.asciidoctor:asciidoctor-gradle-plugin:1.5.2.
> Could not get resource 'https://repo.spring.io/plugins-release/org/as
ciidoctor/asciidoctor-gradle-plugin/1.5.2/asciidoctor-gradle-plugin-1.5.2.pom'.
> Could not GET 'https://repo.spring.io/plugins-release/org/asciidoc
tor/asciidoctor-gradle-plugin/1.5.2/asciidoctor-gradle-plugin-1.5.2.pom'. Receiv
ed status code 401 from server: Unauthorized
> Could not resolve ws.antonov.gradle.plugins:gradle-plugin-protobuf:0.9.1.
Required by:
:spring:4.2.10.BUILD-SNAPSHOT
> Could not resolve ws.antonov.gradle.plugins:gradle-plugin-protobuf:0.9.1
.
> Could not get resource 'https://repo.spring.io/plugins-release/ws/ant
onov/gradle/plugins/gradle-plugin-protobuf/0.9.1/gradle-plugin-protobuf-0.9.1.po
m'.
> Could not GET 'https://repo.spring.io/plugins-release/ws/antonov/g
radle/plugins/gradle-plugin-protobuf/0.9.1/gradle-plugin-protobuf-0.9.1.pom'. Re
ceived status code 401 from server: Unauthorized
> Could not resolve org.apache.xmlgraphics:batik-dom:1.7.
Required by:
:spring:4.2.10.BUILD-SNAPSHOT > io.spring.gradle:docbook-reference-plug
in:0.3.1
> Could not resolve org.apache.xmlgraphics:batik-dom:1.7.
> Could not get resource 'https://repo.spring.io/plugins-release/org/ap
ache/xmlgraphics/batik-dom/1.7/batik-dom-1.7.pom'.
> Could not HEAD 'https://repo.spring.io/plugins-release/org/apache/
xmlgraphics/batik-dom/1.7/batik-dom-1.7.pom'. Received status code 401 from serv
er: Unauthorized
> Could not resolve saxon:saxon:6.5.3.
Required by:
:spring:4.2.10.BUILD-SNAPSHOT > io.spring.gradle:docbook-reference-plug
in:0.3.1
> Could not resolve saxon:saxon:6.5.3.
> Could not get resource 'https://repo.spring.io/plugins-release/saxon/
saxon/6.5.3/saxon-6.5.3.pom'.
> Could not HEAD 'https://repo.spring.io/plugins-release/saxon/saxon
/6.5.3/saxon-6.5.3.pom'. Received status code 401 from server: Unauthorized
> Could not resolve org.apache.xmlgraphics:batik-bridge:1.7.
Required by:
:spring:4.2.10.BUILD-SNAPSHOT > io.spring.gradle:docbook-reference-plug
in:0.3.1
> Could not resolve org.apache.xmlgraphics:batik-bridge:1.7.
> Could not get resource 'https://repo.spring.io/plugins-release/org/ap
ache/xmlgraphics/batik-bridge/1.7/batik-bridge-1.7.pom'.
> Could not HEAD
...全文
3446 点赞 收藏 5
写回复
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
yycqly 03-27
spring官方仓库要登录了

用国内镜像地址,配下gradle
maven { url 'https://maven.aliyun.com/repository/gradle-plugin' }
maven { url "https://repo.springsource.org/plugins-release" }

maven { url 'https://maven.aliyun.com/nexus/content/groups/public/' }
maven { url 'https://maven.aliyun.com/nexus/content/repositories/jcenter'}
maven { url "https://maven.aliyun.com/repository/public" }
maven { url 'https://maven.aliyun.com/repository/spring' }
回复
ttps://repo.spring.io这个网站现在要账户密码登录。 repositories { maven { credentials { username 'user' password 'password' } url "http://repo.mycompany.com/maven2" } }
回复
qq_27875773 2020-12-26
遇到了同样的问题,有没有解决的同学,676869664@qq.com 多谢
回复
KeepSayingNo 2020-11-16
这个就是你的依赖包都下载不下来导致的
回复
请各位 不要 从网上 复制 粘贴 之前的那种例子 已经不适用了 不信自己可以试试 !感谢
回复
发动态
发帖子
Web 开发
创建于2007-09-28

7.9w+

社区成员

Java Web 开发
申请成为版主
社区公告
暂无公告