首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >SpringSecurity4.0聊天-jc示例的Maven构建失败

SpringSecurity4.0聊天-jc示例的Maven构建失败
EN

Stack Overflow用户
提问于 2015-03-29 00:04:56
回答 1查看 290关注 0票数 1

当我试图编译SpringSecurity4.0的chat-jc示例时,maven构建失败了

首先,我使用以下命令下载了示例代码。

代码语言:javascript
复制
git clone https://github.com/spring-projects/spring-security.git

之后,我将目录更改为/samples/chat-jc和'mvn编译‘。我得到了这个结果

代码语言:javascript
复制
[INFO] Scanning for projects...
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for org.springframework.security:spring-security-samples-chat-jc:war:4.0.0.CI-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 246, column 15
[WARNING] 
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING] 
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING] 
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building spring-security-samples-chat-jc 4.0.0.CI-SNAPSHOT
[INFO] ------------------------------------------------------------------------
Downloading: https://repo.maven.apache.org/maven2/org/thymeleaf/thymeleaf-spring4/1.2.7.RELEASE/thymeleaf-spring4-1.2.7.RELEASE.pom
[WARNING] The POM for org.thymeleaf:thymeleaf-spring4:jar:1.2.7.RELEASE is missing, no dependency information available
Downloading: https://repo.maven.apache.org/maven2/redis/embedded/embedded-redis/0.2/embedded-redis-0.2.pom
[WARNING] The POM for redis.embedded:embedded-redis:jar:0.2 is missing, no dependency information available
Downloading: https://repo.maven.apache.org/maven2/org/thymeleaf/thymeleaf-spring4/1.2.7.RELEASE/thymeleaf-spring4-1.2.7.RELEASE.jar
Downloading: https://repo.maven.apache.org/maven2/redis/embedded/embedded-redis/0.2/embedded-redis-0.2.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.366 s
[INFO] Finished at: 2015-03-29T07:40:37+08:00
[INFO] Final Memory: 10M/245M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project spring-security-samples-chat-jc: Could not resolve dependencies for project org.springframework.security:spring-security-samples-chat-jc:war:4.0.0.CI-SNAPSHOT: The following artifacts could not be resolved: org.thymeleaf:thymeleaf-spring4:jar:1.2.7.RELEASE, redis.embedded:embedded-redis:jar:0.2: Failure to find org.thymeleaf:thymeleaf-spring4:jar:1.2.7.RELEASE in https://repo.spring.io/snapshot was cached in the local repository, resolution will not be reattempted until the update interval of spring-snasphot has elapsed or updates are forced -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException

我也找不到

代码语言:javascript
复制
org.thymeleaf:thymeleaf-spring4:jar:1.2.7.RELEASE
redis.embedded:embedded-redis:jar:0.2

http://search.maven.org/

如何成功地编译这个项目?

谢谢你的阅读.

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2015-03-29 00:28:24

我认为pom已经过时了,试试看:

代码语言:javascript
复制
<dependency>
    <groupId>com.orange.redis-embedded</groupId>
    <artifactId>embedded-redis</artifactId>
    <version>0.6</version>
</dependency>

对于redis (他们更改了groupId,0.6是最新版本;如果不编译,您可能希望尝试0.4,或者0.3.8 )。

同时使用版本2.1.4.RELEASE用于thymeleafthymeleaf-spring4

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/29324109

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档