Results 1 to 4 of 4

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

  1. #1
    Join Date
    Jun 2011
    Posts
    6

    Default 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. #2
    Join Date
    Jun 2011
    Posts
    6

    Default

    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 at 02:26 AM.

  3. #3
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    13,629

    Default

    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...
    Marten Deinum
    Java Consultant / Pragmatist / Open Source Enthousiast / Author


    Pro Spring MVC: With Web Flow
    Conspect

    Have you read the reference guide.
    Use the [ code ] tags, young padawan

  4. #4
    Join Date
    Jun 2011
    Posts
    6

    Default

    It works...
    thx Marten Deinum for your response...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •