Monday, November 25, 2013

Hadoop build error java.lang.NoClassDefFoundError: org/sonatype/aether/graph/DependencyFilter

When running the command:

+ mvn site site:stage -DskipTests -DskipTest -DskipITs

you get an error: 

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-site-plugin:3.0:site (default-site) on project hadoop-main: Execution default-site of goal org.apache.maven.plugins:maven-site-plugin:3.0:site failed: A required class was missing while executing org.apache.maven.plugins:maven-site-plugin:3.0:site: org/sonatype/aether/graph/DependencyFilter
[ERROR] -----------------------------------------------------
[ERROR] realm =    plugin>org.apache.maven.plugins:maven-site-plugin:3.0
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] urls[0] = file:/home/dc/.m2/repository/org/apache/maven/plugins/maven-site-plugin/3.0/maven-site-plugin-3.0.jar
[ERROR] urls[1] = file:/home/dc/.m2/repository/org/apache/maven/wagon/wagon-ssh/1.0/wagon-ssh-1.0.jar
[ERROR] urls[2] = file:/home/dc/.m2/repository/com/jcraft/jsch/0.1.44-1/jsch-0.1.44-1.jar
[ERROR] urls[3] = file:/home/dc/.m2/repository/org/apache/maven/wagon/wagon-ssh-common/1.0/wagon-ssh-common-1.0.jar
[ERROR] urls[4] = file:/home/dc/.m2/repository/org/codehaus/plexus/plexus-interactivity-api/1.0-alpha-6/plexus-interactivity-api-1.0-alpha-6.jar
[ERROR] urls[5] = file:/home/dc/.m2/repository/org/apache/maven/reporting/maven-reporting-exec/1.0.1/maven-reporting-exec-1.0.1.jar
[ERROR] urls[6] = file:/home/dc/.m2/repository/org/apache/maven/reporting/maven-reporting-api/3.0/maven-reporting-api-3.0.jar
[ERROR] urls[7] = file:/home/dc/.m2/repository/org/apache/velocity/velocity/1.5/velocity-1.5.jar
[ERROR] urls[8] = file:/home/dc/.m2/repository/oro/oro/2.0.8/oro-2.0.8.jar
[ERROR] urls[9] = file:/home/dc/.m2/repository/velocity/velocity/1.5/velocity-1.5.jar
[ERROR] urls[10] = file:/home/dc/.m2/repository/org/sonatype/aether/aether-util/1.7/aether-util-1.7.jar
[ERROR] urls[11] = file:/home/dc/.m2/repository/org/sonatype/sisu/sisu-inject-bean/1.4.2/sisu-inject-bean-1.4.2.jar
[ERROR] urls[12] = file:/home/dc/.m2/repository/org/sonatype/sisu/sisu-guice/2.1.7/sisu-guice-2.1.7-noaop.jar
[ERROR] urls[13] = file:/home/dc/.m2/repository/org/codehaus/plexus/plexus-interpolation/1.14/plexus-interpolation-1.14.jar
[ERROR] urls[14] = file:/home/dc/.m2/repository/org/codehaus/plexus/plexus-component-annotations/1.5.5/plexus-component-annotations-1.5.5.jar
[ERROR] urls[15] = file:/home/dc/.m2/repository/org/sonatype/plexus/plexus-sec-dispatcher/1.3/plexus-sec-dispatcher-1.3.jar
[ERROR] urls[16] = file:/home/dc/.m2/repository/org/sonatype/plexus/plexus-cipher/1.4/plexus-cipher-1.4.jar
[ERROR] urls[17] = file:/home/dc/.m2/repository/org/apache/maven/doxia/doxia-sink-api/1.2/doxia-sink-api-1.2.jar
[ERROR] urls[18] = file:/home/dc/.m2/repository/org/apache/maven/doxia/doxia-logging-api/1.2/doxia-logging-api-1.2.jar
[ERROR] urls[19] = file:/home/dc/.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar
[ERROR] urls[20] = file:/home/dc/.m2/repository/org/apache/maven/doxia/doxia-core/1.2/doxia-core-1.2.jar
[ERROR] urls[21] = file:/home/dc/.m2/repository/xerces/xercesImpl/2.9.1/xercesImpl-2.9.1.jar
[ERROR] urls[22] = file:/home/dc/.m2/repository/xml-apis/xml-apis/1.3.04/xml-apis-1.3.04.jar
[ERROR] urls[23] = file:/home/dc/.m2/repository/org/apache/httpcomponents/httpclient/4.0.2/httpclient-4.0.2.jar
[ERROR] urls[24] = file:/home/dc/.m2/repository/org/apache/httpcomponents/httpcore/4.0.1/httpcore-4.0.1.jar
[ERROR] urls[25] = file:/home/dc/.m2/repository/commons-codec/commons-codec/1.3/commons-codec-1.3.jar
[ERROR] urls[26] = file:/home/dc/.m2/repository/org/apache/maven/doxia/doxia-module-xhtml/1.2/doxia-module-xhtml-1.2.jar
[ERROR] urls[27] = file:/home/dc/.m2/repository/org/apache/maven/doxia/doxia-module-apt/1.2/doxia-module-apt-1.2.jar
[ERROR] urls[28] = file:/home/dc/.m2/repository/org/apache/maven/doxia/doxia-module-xdoc/1.2/doxia-module-xdoc-1.2.jar
[ERROR] urls[29] = file:/home/dc/.m2/repository/org/apache/maven/doxia/doxia-module-fml/1.2/doxia-module-fml-1.2.jar
[ERROR] urls[30] = file:/home/dc/.m2/repository/javax/servlet/servlet-api/2.5/servlet-api-2.5.jar
[ERROR] urls[31] = file:/home/dc/.m2/repository/org/apache/maven/doxia/doxia-decoration-model/1.2/doxia-decoration-model-1.2.jar
[ERROR] urls[32] = file:/home/dc/.m2/repository/org/apache/maven/doxia/doxia-site-renderer/1.2/doxia-site-renderer-1.2.jar
[ERROR] urls[33] = file:/home/dc/.m2/repository/commons-collections/commons-collections/3.2.1/commons-collections-3.2.1.jar
[ERROR] urls[34] = file:/home/dc/.m2/repository/org/apache/maven/shared/maven-doxia-tools/1.4/maven-doxia-tools-1.4.jar
[ERROR] urls[35] = file:/home/dc/.m2/repository/org/codehaus/plexus/plexus-archiver/1.0/plexus-archiver-1.0.jar
[ERROR] urls[36] = file:/home/dc/.m2/repository/org/codehaus/plexus/plexus-io/1.0/plexus-io-1.0.jar
[ERROR] urls[37] = file:/home/dc/.m2/repository/org/codehaus/plexus/plexus-i18n/1.0-beta-7/plexus-i18n-1.0-beta-7.jar
[ERROR] urls[38] = file:/home/dc/.m2/repository/org/codehaus/plexus/plexus-velocity/1.1.8/plexus-velocity-1.1.8.jar
[ERROR] urls[39] = file:/home/dc/.m2/repository/org/codehaus/plexus/plexus-utils/1.5.10/plexus-utils-1.5.10.jar
[ERROR] urls[40] = file:/home/dc/.m2/repository/org/mortbay/jetty/jetty/6.1.25/jetty-6.1.25.jar
[ERROR] urls[41] = file:/home/dc/.m2/repository/org/mortbay/jetty/servlet-api/2.5-20081211/servlet-api-2.5-20081211.jar
[ERROR] urls[42] = file:/home/dc/.m2/repository/org/mortbay/jetty/jetty-util/6.1.25/jetty-util-6.1.25.jar
[ERROR] urls[43] = file:/home/dc/.m2/repository/commons-lang/commons-lang/2.5/commons-lang-2.5.jar
[ERROR] urls[44] = file:/home/dc/.m2/repository/commons-io/commons-io/1.4/commons-io-1.4.jar
[ERROR] Number of foreign imports: 1
[ERROR] import: Entry[import  from realm ClassRealm[maven.api, parent: null]]
[ERROR] 
[ERROR] -----------------------------------------------------: org.sonatype.aether.graph.DependencyFilter
[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/AetherClassNotFound
error: Bad exit status from /var/tmp/rpm-tmp.AMoEQJ (%build)


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.AMoEQJ (%build)
make: *** [/home/dc/bigtop-0.7.0/build/hadoop//.rpm] Error 1



This error and fix are documented here

Make sure to change the pom.xml maven-site-plugin to 3.3 in both places. Someone should log a jira ticket and make this a property and set it to 3.3









Verified, this fix works. 





28 comments:

  1. Hey, would you mind if I share your blog with my twitter group? There’s a lot of folks that I think would enjoy your content. Please let me know. Thank you.
    Java Training in Chennai | J2EE Training in Chennai | Advanced Java Training in Chennai | Core Java Training in Chennai | Java Training institute in Chennai

    ReplyDelete
  2. Great Share!!!Java concepts are really Amazing...Explanation's are make me to clear all my doubts...Big Thanks for your effective works...
    Java training in chennai | Java training in annanagar | Java training in omr | Java training in porur | Java training in tambaram | Java training in velachery

    ReplyDelete
  3. This comment has been removed by the author.

    ReplyDelete
  4. This is an awesome motivating article.I am practically satisfied with your great work.You put truly extremely supportive data. Keep it up. Continue blogging. Hoping to perusing your next post
    Java Training in Chennai

    Java Training in Velachery

    Java Training inTambaram

    Java Training in Porur

    Java Training in Omr

    Java Training in Annanagar

    ReplyDelete
  5. Really awesome blog!!! I finally found great post here.I really enjoyed reading this article. It's really a nice experience to read your post. Thanks for sharing your innovative ideas. Excellent work! I will get back here.
    Software Testing Training in Chennai

    Software Testing Training in Velachery

    Software Testing Training in Tambaram

    Software Testing Training in Porur

    Software Testing Training in Omr

    Software Testing Training in Annanagar

    ReplyDelete
  6. You can get Apple-certified repairs and service at the Apple Store or with one of our Apple Authorized Service Providers.
    mobile phone repair in Niles
    Worked as a Senior SEO & Digital & Social Media & Graphics Design & cpa & Drop shipping & Video Editing And Youtube & Web Design And Development & Affiliate Marketing trainer at BITM (BASIS Institute of Technology & Management) since 2014-2018. Successfully completed 50+ SEO batches, 20+
    Affiliate Marketing batches and 30+ workshop on Freelancing under SEIP (Skills for Employment Investment Program).
    Best Graphic Design training in Bangladesh
    Free bangla sex video:careful

    ReplyDelete
  7. Nice post. By reading your blog, i get inspired and this provides some useful information. Thank you for posting this exclusive post for our vision.
    DevOps Training in Chennai

    DevOps Course in Chennai

    ReplyDelete
  8. Doctors Mailing List
    The FountMedia mailers offer targeted mailings to doctors in your local zipcode. Doctors Mailing List is the largest medical mailing list in the world. It includes over 2.5 million practitioners in the United States, Canada, Puerto Rico, and US Virgin Islands, covering every medical discipline including all health care professionals working in hospitals, clinics, HMOs, Medical Associations, Health Centers, and dental offices.

    Address: Monmouth Junction NJ (New Jersey) 08852US (United States)
    Contact us:sales@fountmedia.com
    Contact No: 7327039915
    Website - https://www.fountmedia.com

    ReplyDelete

  9. I found it very explanatory and informative, thank you very much for sharing your knowledge and wisdom with us.

    Pinbahis
    Hiltonbet
    Jojobet
    İmajbet
    Aresbet
    Maltcasino
    Marsbahis
    Trendbet





    ReplyDelete


  10. Nice blog thank you .For your Sharing It's a pleasure to read your post.It's full of information I'm looking for and I'd like to express that "The content of your post is awesome"
    ASP.NET Training in Chennai
    C#.NET Training In Chennai
    hadoop training in chennai

    ReplyDelete
  11. Nice blog thank you .For your Sharing It's a pleasure to read your post.It's full of information I'm looking for and I'd like to express that "The content of your post is awesome"

    Dotnet Training in Chennai
    Core java Training in Chennai

    ReplyDelete

  12. Nice blog thank you .For your Sharing It's a pleasure to read your post.It's full of information I'm looking for and I'd like to express that "The content of your post is awesome"

    Aimore Tech is the Best Software training institute in chennai with 6+ years of experience. We are offering online and classroom Trainings.


    Dotnet Training in Chennai
    Core java Training in Chennai
    Web design Training in Chennai

    ReplyDelete

  13. Nice blog thank you .For your Sharing It's a pleasure to read your post.It's full of information I'm looking for and I'd like to express that "The content of your post is awesome"

    Aimore Tech is the Best Software training institute in chennai with 6+ years of experience. We are offering online and classroom Trainings.

    ccna training in chennai
    javascript training in chennai
    mysql training in chennai
    unix training in chennai

    ReplyDelete
  14. Whatsapp Number Call us Now! 01537587949
    outsourcing in Bangladesh
    USA pone web iphone repair USA
    USA SEX WEB careful
    bd sex video B tex
    bd sex video sex video
    bd sex video freelancing course

    ReplyDelete
  15. This comment has been removed by the author.

    ReplyDelete
  16. Thank you for sharing this insightful content. I always look forward to reading such high-quality articles filled with valuable information. The ideas presented are truly excellent and thought-provoking, which makes the post not only enjoyable but also enriching. Your dedication to delivering fantastic work is commendable, and I eagerly anticipate more of your contributions in the future visit Certifications in Software Testing: Boosting Your Career with the Right Course

    ReplyDelete
  17. Your blog provides a thoughtful and informative exploration of idealism in education, making it a valuable resource for those interested in understanding the philosophical foundations of educational theories. Well done!
    If you want to know about Mastering Python: A Comprehensive Course for Beginners You can read this link Mastering Python: A Comprehensive Course for Beginners

    ReplyDelete
  18. You're very welcome! I'm delighted to hear that you found the information valuable and engaging. If you ever have more questions, need further insights, or simply want to discuss any topic, feel free to reach out. I'm here to help! Thank you for your kind words, and I look forward to assisting you in the future. If you know about Future Scope of Data Science visit Future Scope of Data Science

    ReplyDelete
  19. Thank you for sharing this insightful content. I always look forward to reading such high-quality articles filled with valuable information. The ideas presented are truly excellent and thought-provoking, which makes the post not only enjoyable but also enriching. Your dedication to delivering fantastic work is commendable, and I eagerly anticipate more of your contributions in the future visit Unlocking Insights: Exploring Predictive Analytics and its Applications

    ReplyDelete