Results 1 to 4 of 4

Thread: can't complile spring-batch codes from github

  1. #1
    Join Date
    Mar 2012
    Posts
    1

    Default can't complile spring-batch codes from github

    Hi All,

    I fetched codes from github https://github.com/SpringSource/spring-batch and ran "mvn install -P bootstrap". But I always got below exception:

    [INFO] Scanning for projects...
    [INFO] Reactor build order:
    [INFO] Spring Batch Parent
    [INFO] Infrastructure
    [INFO] Core
    [INFO] Test
    [INFO] Spring Batch
    [INFO] ------------------------------------------------------------------------
    [INFO] Building Spring Batch Parent
    [INFO] task-segment: [install]
    [INFO] ------------------------------------------------------------------------
    [INFO] [com.springsource.bundlor.:bundlor {execution: bundlor-transform}]
    [INFO] Ignored project with type = 'pom'
    [INFO] [site:attach-descriptor {execution: default-attach-descriptor}]
    [INFO] [install:install {execution: default-install}]
    [INFO] Installing E:\wsDefault\spring-batch\spring-batch-parent\pom.xml to C:\Users\dong\.m2\repository\org\springframework\b atch\spring-batch-parent\2.2.0.BUILD-SNAPSHOT\spring-batch-parent-2.2.0.BUILD-SNAPSHOT.pom
    [INFO] ------------------------------------------------------------------------
    [INFO] Building Infrastructure
    [INFO] task-segment: [install]
    [INFO] ------------------------------------------------------------------------
    [INFO] [resources:resources {execution: default-resources}]
    [WARNING] Using platform encoding (GBK actually) to copy filtered resources, i.e. build is platform dependent!
    [INFO] skip non existing resourceDirectory E:\wsDefault\spring-batch\spring-batch-infrastructure\src\main\resources
    [INFO] [compiler:compile {execution: default-compile}]
    [INFO] Compiling 13 source files to E:\wsDefault\spring-batch\spring-batch-infrastructure\target\classes
    [INFO] ------------------------------------------------------------------------
    [ERROR] BUILD FAILURE
    [INFO] ------------------------------------------------------------------------
    [INFO] Compilation failure
    E:\wsDefault\spring-batch\spring-batch-infrastructure\src\main\java\org\springframework\b atch\item\database\ExtendedConnectionDataSourcePro xy.java:[83,7] error: ExtendedConnectionDataSourceProxy is not abstract and does not override abstract method getParentLogger() in CommonDataSource


    [INFO] ------------------------------------------------------------------------
    [INFO] For more information, run Maven with the -e switch
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 6 seconds
    [INFO] Finished at: Sun Mar 11 11:58:16 CST 2012
    [INFO] Final Memory: 22M/53M
    [INFO] ------------------------------------------------------------------------



    My environment is:

    win7 home
    JDK 1.7
    mvn 2.2.1(mvn 3.0.4 also tried)

    I am new to spring-batch. Do you have any idea? thanks.

  2. #2
    Join Date
    May 2010
    Posts
    4

    Default

    Does anyone have a solution to this problem?

  3. #3
    Join Date
    Sep 2008
    Location
    Chicagoland, IL
    Posts
    351

    Default

    Have you tried just running the build (without the bootstrap profile)?
    Michael Minella
    Spring Batch Lead
    Author - Pro Spring Batch
    http://www.michaelminella.com
    Twitter: @MichaelMinella

  4. #4

    Default

    compiles fine for me w/ and w/out the bootstrap profile

    linux/jdk 1.7.0_10/maven 3.0.3/2.2.0.BUILD-SNAPSHOT

    maybe you need to pull latest code?
    --
    Chris

Tags for this Thread

Posting Permissions

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