-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NoClassDefFound: oro #126
Comments
What happens if you just run |
The
Since Cobertura doesn't run on only the |
So I think we can rule out problems with the test's classpath... I'm not exactly sure what is happening here. I took a closer look at where oro comes in, and it is used by Cobertura itself, which means it should be brought in automatically when the plugin is added to the buildscript's dependencies. The 2 things that come to mind:
|
The
When I run
Oro does show up under this heading:
(it's a ways down in the list):
|
There is nothing in your cobertura block that should effect classpaths, and cobertura itself is being brought in. When cobertura is brought in it should include cobertura's transitive dependencies, including oro, but that doesn't seem to be happening here. Adding oro as a direct dependency shouldn't change its appearance in the cobertura section. Do any transitive dependencies show up? Is this a single module build, or multi-module? And what version of Gradle are you using? |
I have updated the Wiki with Gradle usage and Jenkins section and a new Troubleshooting section to provide info on how to resolve these kinds of problems in general. |
Hi,
I'm using version 2.4.0 of the Gradle Cobertura plugin. While attempting to integrate it into my current project, I get this error when running the
cobertura
task:It's complaining about not finding a class in the
oro
project. I thought this was strange, so I tried adding it to the classpath, just to see if the error would go away:I still get the
NoClassDefFoundError
output.Any idea why? I would think that all the necessary dependencies would be downloaded from the repository.
I know there are unit tests that are failing, but still, this shouldn't cause Cobertura to fail, especially with a
NoClassDefFoundError
should it?Thank you!!
The text was updated successfully, but these errors were encountered: