testCompile (default-testCompile) on project hadoop-auth解决办法

来源:互联网 发布:数据采集兼职 编辑:程序博客网 时间:2024/06/09 21:10
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.5.1:testCompile (default-testCompile) on project hadoop-auth: Compilation failure: Compilation failure:
    [ERROR] /home/chuan/trunk/hadoop-common-project/hadoop-auth/src/test/java/org/apache/hadoop/security/authentication/client/AuthenticatorTestCase.java:[84,13] cannot access org.mortbay.component.AbstractLifeCycle
    [ERROR] class file for org.mortbay.component.AbstractLifeCycle not found
  
   bug patch地址:https://issues.apache.org/jira/browse/hadoop-10110
   方法:修改hadoop源码目录下的hadoop-common-project/hadoop-auth/pom.xml
   添加或修改如下部分内容:
       
      <dependency>
          <groupId>org.mortbay.jetty</groupId>
+        <artifactId>jetty-util</artifactId>
+        <scope>test</scope>
+    </dependency>
+    <dependency>
+       <groupId>org.mortbay.jetty</groupId>
         <artifactId>jetty</artifactId>
         <scope>test</scope>
     </dependency>
0 0