Maven Build Failure for chat-jc sample of spring security 4.0 -


there maven build failure when tried compile chat-jc sample of spring security 4.0

first, downloaded sample code command.

git clone https://github.com/spring-projects/spring-security.git 

after, changed directory /samples/chat-jc , 'mvn compile'. , got result

[info] scanning projects... [warning]  [warning] problems encountered while building effective model org.springframework.security:spring-security-samples-chat-jc:war:4.0.0.ci-snapshot [warning] 'build.plugins.plugin.version' org.apache.maven.plugins:maven-compiler-plugin missing. @ line 246, column 15 [warning]  [warning] highly recommended fix these problems because threaten stability of build. [warning]  [warning] 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] pom org.thymeleaf:thymeleaf-spring4:jar:1.2.7.release missing, no dependency information available downloading: https://repo.maven.apache.org/maven2/redis/embedded/embedded-redis/0.2/embedded-redis-0.2.pom [warning] pom redis.embedded:embedded-redis:jar:0.2 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 execute goal on project spring-security-samples-chat-jc: not resolve dependencies project org.springframework.security:spring-security-samples-chat-jc:war:4.0.0.ci-snapshot: following artifacts not resolved: org.thymeleaf:thymeleaf-spring4:jar:1.2.7.release, redis.embedded:embedded-redis:jar:0.2: failure find org.thymeleaf:thymeleaf-spring4:jar:1.2.7.release in https://repo.spring.io/snapshot cached in local repository, resolution not reattempted until update interval of spring-snasphot has elapsed or updates forced -> [help 1] [error]  [error] see full stack trace of errors, re-run maven -e switch. [error] re-run maven using -x switch enable full debug logging. [error]  [error] more information errors , possible solutions, please read following articles: [error] [help 1] http://cwiki.apache.org/confluence/display/maven/dependencyresolutionexception 

and not find both information of

org.thymeleaf:thymeleaf-spring4:jar:1.2.7.release redis.embedded:embedded-redis:jar:0.2 

on http://search.maven.org/

how can succeed compile project?

thanks reading......

i think pom has been left outdated; try:

<dependency>     <groupid>com.orange.redis-embedded</groupid>     <artifactid>embedded-redis</artifactid>     <version>0.6</version> </dependency> 

for redis (they changed groupid, 0.6 latest version; might want try 0.4, or 0.3.8 if not compile).

also use version 2.1.4.release both thymeleaf , thymeleaf-spring4


Comments

Popular posts from this blog

google chrome - Developer tools - How to inspect the elements which are added momentarily (by JQuery)? -

angularjs - Showing an empty as first option in select tag -

php - Cloud9 cloud IDE and CakePHP -