0
  1. [运行命令] export MAVEN_OPTS="-Xmx1536m -XX:MaxPermSize=512m" && mvn clean install
    [Error message] Running org.apache.atlas.web.adapters.TestEntityREST
    Tests run: 11, Failures: 1, Errors: 0, Skipped: 8, Time elapsed:
    13.995 sec <<< FAILURE! - in org.apache.atlas.web.adapters.TestEntityREST enter code here 
    cleanup(org.apache.atlas.web.adapters.TestEntityREST)  Time elapsed:
    0.217 sec  <<< FAILURE!
        java.lang.NullPointerException: null    at org.apache.atlas.RequestContext.clear(RequestContext.java:97)    at
    org.apache.atlas.web.adapters.TestEntityREST.cleanup(TestEntityREST.java:80)
    ...
    
    [INFO]
    ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO]  [INFO] Apache Atlas Server Build
    Tools .................... SUCCESS [  1.489 s] [INFO] apache-atlas
    ....................................... SUCCESS [  8.805 s] [INFO]
    Apache Atlas Integration ........................... SUCCESS [
    42.642 s] [INFO] Apache Atlas Common ................................ SUCCESS [ 14.276 s] [INFO] Apache
    Atlas Typesystem ............................ SUCCESS [01:15 min]
    [INFO] Apache Atlas Client ................................ SUCCESS
    [ 17.168 s] [INFO] Apache Atlas Server API
    ............................ SUCCESS [  8.440 s] [INFO] Apache Atlas
    Notification .......................... SUCCESS [ 38.640 s] [INFO]
    Apache Atlas Graph Database Projects ............... SUCCESS [ 
    0.553 s] [INFO] Apache Atlas Graph Database API .................... SUCCESS [  5.432 s] [INFO] Graph Database Common Code
    ......................... SUCCESS [  5.636 s] [INFO] Shaded version
    of Apache hbase client .............. SUCCESS [ 10.728 s] [INFO]
    Apache Atlas Titan 0.5.4 Graph DB Impl ............. SUCCESS [01:58
    min] [INFO] Apache Atlas Graph Database Implementation Dependencies
    SUCCESS [  0.846 s] [INFO] Shaded version of Apache hbase server
    .............. SUCCESS [ 23.850 s] [INFO] Apache Atlas Repository
    ............................ SUCCESS [13:25 min] [INFO] Apache Atlas
    Authorization ......................... SUCCESS [ 13.707 s] [INFO]
    Apache Atlas Business Catalog ...................... SUCCESS [
    31.334 s] [INFO] Apache Atlas UI .................................... SUCCESS [01:11 min] [INFO]
    Apache Atlas Web Application ....................... FAILURE [04:29
    min] [INFO] Apache Atlas Documentation .........................
    SKIPPED [INFO] Apache Atlas FileSystem Model ......................
    SKIPPED [INFO] Apache Atlas Plugin Classloader ....................
    SKIPPED [INFO] Apache Atlas Hive Bridge Shim ......................
    SKIPPED [INFO] Apache Atlas Hive Bridge ...........................
    SKIPPED [INFO] Apache Atlas Falcon Bridge Shim ....................
    SKIPPED [INFO] Apache Atlas Falcon Bridge .........................
    SKIPPED [INFO] Apache Atlas Sqoop Bridge Shim .....................
    SKIPPED [INFO] Apache Atlas Sqoop Bridge ..........................
    SKIPPED [INFO] Apache Atlas Storm Bridge Shim .....................
    SKIPPED [INFO] Apache Atlas Storm Bridge ..........................
    SKIPPED [INFO] Apache Atlas Distribution ..........................
    SKIPPED [INFO]
    ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO]
    ------------------------------------------------------------------------ [INFO] Total time: 26:06 min [INFO] Finished at:
    2017-02-09T01:20:53+09:00 [INFO] Final Memory: 165M/1437M [INFO]
    ------------------------------------------------------------------------ [ERROR] Failed to execute goal
    org.apache.maven.plugins:maven-surefire-plugin:2.18.1:test
    (default-test) on project atlas-webapp: There are test failures.
    [ERROR]  [ERROR] Please refer to
    /Users/dongkillee/dev/bin/atlas/webapp/target/surefire-reports for
    the individual test results. [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] 纠正问题后,您可以使用命令 [ERROR] mvn -rf :atlas-webapp 恢复构建

4

2 回答 2

0

我已经解释了完整的解决方案,heremaven plugins简单地说,由于它在文件中使用了一些测试用例pom.xml,我们需要在-DskipTests从头构建 Apache Atlas 时添加参数。

执行以下项目以运行项目而不会出现任何错误:

  1. git clone https://github.com/apache/atlas
  2. mvn clean install -DskipTests
  3. mvn clean package -Pdist -DskipTests
于 2021-03-08T08:44:17.037 回答
0

这是测试用例错误。使用以下命令。它将成功创建您的构建。

export MAVEN_OPTS="-Xmx1536m -XX:MaxPermSize=512m" && mvn clean install -DskipTests
于 2017-06-22T06:30:06.403 回答