Announcement Announcement Module
Collapse
No announcement yet.
Pro Spring MVC With Web Flow - Burn Failed in Chapter 1 Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Pro Spring MVC With Web Flow - Burn Failed in Chapter 1

    Hi, I am want to learn about spring web flow. I'm still newbie, so i bought "Pro Spring MVC With Web Flow".
    But just learned in chapter 1 I've got error

    First i've success run "gradlew", the output like this :

    Code:
    D:\learn\new 2013\pro-spring-mvc-code-master>gradlew
    :help
    
    Welcome to Gradle 1.4.
    
    To run a build, run gradle <task> ...
    
    To see a list of available tasks, run gradle tasks
    
    To see a list of command-line options, run gradle --help
    
    BUILD SUCCESSFUL
    
    Total time: 3.206 secs
    but on the next step when i run command : gradlew build, it show error like this :

    Code:
    D:\learn\new 2013\pro-spring-mvc-code-master>gradlew build
    :bookstore-shared:compileJava
    
    FAILURE: Build failed with an exception.
    
    * What went wrong:
    Could not resolve all dependencies for configuration ':bookstore-shared:compile'
    .
    > Could not find org.aspectj:aspectjrt:$aspectJVersion.
      Required by:
          com.apress.prospringmvc:bookstore-shared:1.0.0
    > Could not find org.aspectj:aspectjweaver:$aspectJVersion.
      Required by:
          com.apress.prospringmvc:bookstore-shared:1.0.0
    
    * Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug
    option to get more log output.
    
    BUILD FAILED
    
    Total time: 16.51 secs
    Can somebody who have read that book tell me what should i do ?
    Thx so much...

  • #2
    UPDATE...

    if i remove this code in build.gradle file :
    Code:
    compile 'org.aspectj:aspectjrt:$aspectJVersion'
    compile 'org.aspectj:aspectjweaver:$aspectJVersion'
    then i run again gradlew build, the result was successful...

    what's wrong with aspectj ?
    Last edited by yehezqiel; Feb 21st, 2013, 03:26 AM.

    Comment


    • #3
      First of all thanks for buying the book, second sorry for the build not working...

      Apparently an error has crept into the build file (this is what you get when not using a CI server ).

      replace the ' with " around the aspectj dependencies that should correct the error. Will update the version in github also...

      Comment


      • #4
        It works...
        thx Marten Deinum for your response...

        Comment

        Working...
        X