Skip to content
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

NoClassDefFoundError for compile dependencies brought in externally as files #8

Open
ascertrobw opened this issue Mar 14, 2019 · 0 comments

Comments

@ascertrobw
Copy link

ascertrobw commented Mar 14, 2019

Several of our compile dependencies are brought in as file JARs from an external project -

dependencies {
...
compile files("${vtmp_home}/lib/vt/propsmgr.jar")
...
}

Definitely a little unorthodox I know!

These seem to not get picked up on the osgi-ds classpath scanning, as I see a NoClassDefFoundError when osgi-ds scans a source that references them as a service e.g.

Task :proj:db:jooqDAL:generateDeclarativeServicesDescriptors
NoClassDefFoundError: com/ascert/vt/modules/propsmgr/ExtendedPropertyService

My guess is that because these are compiled classes inside a pre-built JAR, they probably don't automatically get expanded into the classpath - although oddly, we hit no issues in the regular compileJava task with this approach.

Obviously not expecting a quick response given I haven't had time to create a cut-down example of this (mid code crunch time!). Just flagging for information as and when issues are being looked at.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant