这是我在构建项目时遇到的错误,任何依赖项都可以提供帮助。 找了几天也没找到解决方案
------------------------------------------------------------------------
[INFO] Reactor Summary for Apache Hadoop Main 3.1.1.7.2.17.0-SNAPSHOT:
[INFO]
[INFO] Apache Hadoop Main ................................. SUCCESS [ 0.617 s]
[INFO] Apache Hadoop Build Tools .......................... SUCCESS [ 1.075 s]
[INFO] Apache Hadoop Project POM .......................... SUCCESS [ 1.152 s]
[INFO] Apache Hadoop Annotations .......................... SUCCESS [ 1.886 s]
[INFO] Apache Hadoop Assemblies ........................... SUCCESS [ 0.725 s]
[INFO] Apache Hadoop Project Dist POM ..................... SUCCESS [ 1.166 s]
[INFO] Apache Hadoop Maven Plugins ........................ SUCCESS [ 2.887 s]
[INFO] Apache Hadoop MiniKDC .............................. FAILURE [ 1.534 s]
[INFO] Apache Hadoop Auth ................................. SKIPPED
Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:3.0.0-M1:test (default-test) on project hadoop-minikdc: There are test failures.
[ERROR]
错误:
T E S T S
[INFO] -------------------------------------------------------
[INFO] Running org.apache.hadoop.minikdc.TestChangeOrgNameAndDomain
[ERROR] Tests run: 3, Failures: 0, Errors: 3, Skipped: 0, Time elapsed: 0.039 s <<< FAILURE! - in org.apache.hadoop.minikdc.TestChangeOrgNameAndDomain
[ERROR] testKeytabGen(org.apache.hadoop.minikdc.TestChangeOrgNameAndDomain) Time elapsed: 0.012 s <<< ERROR!
java.lang.NoClassDefFoundError: org/apache/log4j/Level
at org.slf4j.LoggerFactory.bind(LoggerFactory.java:150)
at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:124)
at
[ERROR] testMiniKdcStart(org.apache.hadoop.minikdc.TestChangeOrgNameAndDomain) Time elapsed: 0 s <<< ERROR!
java.lang.NoClassDefFoundError: Could not initialize class org.apache.hadoop.minikdc.MiniKdc
at org.apache.hadoop.minikdc.KerberosSecurityTestcase.createMiniKdcConf(KerberosSecurityTestcase.java:65)
[INFO] Running org.apache.hadoop.minikdc.TestMiniKdc
[ERROR] Tests run: 3, Failures: 0, Errors: 3, Skipped: 0, Time elapsed: 0.039 s <<< FAILURE! - in org.apache.hadoop.minikdc.TestMiniKdc
[ERROR] testKeytabGen(org.apache.hadoop.minikdc.TestMiniKdc) Time elapsed: 0.01 s <<< ERROR!
java.lang.NoClassDefFoundError: org/apache/log4j/Level
at org.slf4j.LoggerFactory.bind(LoggerFactory.java:150
[ERROR] testKerberosLogin(org.apache.hadoop.minikdc.TestMiniKdc) Time elapsed: 0.001 s <<< ERROR!
java.lang.NoClassDefFoundError: Could not initialize class org.apache.hadoop.minikdc.MiniKdc
at org.apache.hadoop.minikdc.KerberosSecurityTestcase.createMiniKdcConf(KerberosSecurityTestcase.java:65)
at
[INFO]
[INFO] Results:
[INFO]
[ERROR] Errors:
[ERROR] TestChangeOrgNameAndDomain>KerberosSecurityTestcase.startMiniKdc:46->createMiniKdcConf:26->KerberosSecurityTestcase.createMiniKdcConf:65 » NoClassDefFound
[ERROR] TestChangeOrgNameAndDomain>KerberosSecurityTestcase.startMiniKdc:46->createMiniKdcConf:26->KerberosSecurityTestcase.createMiniKdcConf:65 » NoClassDefFound
[ERROR] TestChangeOrgNameAndDomain>KerberosSecurityTestcase.startMiniKdc:46->createMiniKdcConf:26->KerberosSecurityTestcase.createMiniKdcConf:65 » NoClassDefFound
[ERROR] TestMiniKdc>KerberosSecurityTestcase.startMiniKdc:46->KerberosSecurityTestcase.createMiniKdcConf:65 » NoClassDefFound
[ERROR] TestMiniKdc>KerberosSecurityTestcase.startMiniKdc:46->KerberosSecurityTestcase.createMiniKdcConf:65 » NoClassDefFound
[ERROR] TestMiniKdc>KerberosSecurityTestcase.startMiniKdc:46->KerberosSecurityTestcase.createMiniKdcConf:65 » NoClassDefFound
[INFO]
[ERROR] Tests run: 6, Failures: 0, Errors: 6, Skipped: 0
我在为我的构建运行测试用例时遇到这个错误
什么是依赖关系:-