File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Soft Skills: The software developer's life manual this week in the Jobs Discussion forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Sonar Qube - java.lang.NoClassDefFoundError: javassist/bytecode/ClassFile

 
Mauricio Leoncio dos Santos
Greenhorn
Posts: 4
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everyone!

This is my first time in here... and I dont found if there's a post answering my question and if here is the right place, so ... here is my doubt:

My team is starting to use Sonar Qube as our "code coverage helper" and when we try "mvn sonar:sonar" or "mvn clean install sonar:sonar" in any project, we got the error below:
Could someone help us?

Thank you

Mauricio







 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 33667
316
Eclipse IDE Java VI Editor
  • 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It looks like javaassist is missing from your pom as a dependency. Can you double check your pom (or effective pom)?
 
Mauricio Leoncio dos Santos
Greenhorn
Posts: 4
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you Jeanne.
Checked! Should we add a dependency whose version is compatible with Sonar?

Sonar version: sonar-3.6.2

Javaassist dependency:





Besides there are others errors that I've forgotten:










Jeanne Boyarsky wrote:It looks like javaassist is missing from your pom as a dependency. Can you double check your pom (or effective pom)?
 
Mauricio Leoncio dos Santos
Greenhorn
Posts: 4
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Up
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic