when build web-harvest in mvn ,it show errors

nutcracker
2012-11-26
2012-11-26
  • nutcracker

    nutcracker - 2012-11-26

    download all codes via svn. but when build web-harvest in mvn ,it show errors

    --------------------------------------------------------
    [INFO] 3 errors
    [INFO] -------------------------------------------------------------
    [INFO] ------------------------------------------------------------------------
    [INFO] Reactor Summary:
    [INFO]
    [INFO] Web-Harvest ....................................... SUCCESS [20.875s]
    [INFO] Web-Harvest Core .................................. FAILURE [21.172s]
    [INFO] Web-Harvest IDE ................................... SKIPPED
    [INFO] ------------------------------------------------------------------------
    [INFO] BUILD FAILURE
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 42.718s
    [INFO] Finished at: Mon Nov 26 09:21:41 CST 2012
    [INFO] Final Memory: 22M/59M
    [INFO] ------------------------------------------------------------------------
    [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:testCompile (default-testCompile) on
     project webharvest-core: Compilation failure: Compilation failure:
    [ERROR] \Program Files\Subversion\bin\web-harvest-code\webharvest-core\src\test\java\org\webharvest\runtime\database\Def
    aultDriverManagerTest.java:[88,11] 错误: MockClasspathDriver不是抽象的, 并且未覆盖Driver中的抽象方法getParentLogger()
    [ERROR] \Program Files\Subversion\bin\web-harvest-code\webharvest-core\src\test\java\org\webharvest\runtime\database\Sta
    ndaloneConnectionPoolIntegrationTest.java:[146,11] 错误: MockDriver不是抽象的, 并且未覆盖Driver中的抽象方法getParentLogg
    er()
    [ERROR] \Program Files\Subversion\bin\web-harvest-code\webharvest-core\src\test\java\org\webharvest\runtime\database\Sta
    ndaloneConnectionPoolIntegrationTest.java:[169,11] 错误: MockDriver2不是抽象的, 并且未覆盖Driver中的抽象方法getParentLog
    ger()
    [ERROR] -> [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/MojoFailureException
    [ERROR]
    [ERROR] After correcting the problems, you can resume the build with the command
    [ERROR]   mvn <goals> -rf :webharvest-core
    
     
    Last edit: Piotr Dyraga 2012-11-26
  • Piotr Dyraga

    Piotr Dyraga - 2012-11-26

    Probably you are compiling web harvest on JDK7 - I've just fixed compilation issue caused by method added to Driver interface in this JDK version.

    Please update your sources and compile again - everything should work fine, both on JDK7 and lower.

     
  • nutcracker

    nutcracker - 2012-11-26

    Thanks you, Piotr Dyraga

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks