-
Notifications
You must be signed in to change notification settings - Fork 443
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
java.lang.NoClassDefFoundError: org/vafer/jdeb/Console #1053
Comments
Thanks @pbvie for the detailed bug report. Are you using the libraryDependencies += "org.vafer" % "jdeb" % "1.3" artifacts (Artifact("jdeb", "jar", "jar")) If that doesn't help, can you post a small |
@muuki88 Thanks! Will try your suggestion today or tomorrow. I'm using only |
@muuki88 Sorry for the delay...was at a conference. I tried adding with the result of now getting I've attached a simple sbt project that reproduces the error on my machine: classnotfound.zip One thing that might be noteworthy: I'm using coursier (it's in my global plugins.sbt) |
no worries @pbvie :) Yeah. I think coursier is the one that causes this. There is an issue coursier/coursier/issues/450 that tackles this issue. For sbt Would you like to provide a small pull request with a scripted test that uses coursier? We may be able to initialize the |
@muuki88 Thanks for confirming it's really a bug and not just a problem on my machine ;) Yes, if it's not very urgent I could do that. You mean like https://github.com/sbt/sbt-native-packager/tree/master/src/sbt-test/debian/java-app-archetype, right? |
Exactly 😀 fixing errors with a regression test in place is more fun 😎 |
Great, will send you a PR in the next couple of days then :) Thanks! |
Is there anything that I need to keep in mind when running the debian tests? I tried running
Thanks! |
Yes. You need |
Full requirements: |
Thanks! Was only checking https://github.com/pbvie/sbt-native-packager/blob/master/CONTRIBUTING.md 😉 |
Good point. That would be a better place to put these information 😁 |
Quick update: Unfortunately, I have a problem installing Hope I can take a closer look next week. |
I see this problem When I switch to macOSSierra My project is a Play project. use the fix from :coursier/coursier#450 ,and it works |
@muuki88 I think the problem has been fixed with the latest version of sbt-native-packager. |
Thanks for sharing. However that really puzzles me as we haven't changed anything regarding the Was there any coursier update in the meantime? |
I'm running in to this again with 1.3.9. Looks like if you include coursier in your sbt-in-sbt plugins.sbt, then it resurfaces.
|
- Restore MAINTAINER label for our Docker image - Remove left over NativePackager code - Remove references to jdeb and associated workaround - Remove sbt-in-sbt loading of Coursier (this causes an issue, see sbt/sbt-native-packager#1053 (comment)) - Sync sbt-in-sbt version
- Restore MAINTAINER label for our Docker image - Remove left over NativePackager code - Remove references to jdeb and associated workaround - Remove sbt-in-sbt loading of Coursier (this causes an issue, see sbt/sbt-native-packager#1053 (comment)) - Sync sbt-in-sbt version
Yup. Its the coursier/coursier#450 I keep classpathTypes += "maven-plugin" in my |
It only happens for sbt-in-sbt, however :) |
Yeiks. This is coming back over and over again. The main issue is that the jdeb dependency is not in the provided scope anymore. I'm still thinking of moving the |
- Restore MAINTAINER label for our Docker image - Remove left over NativePackager code - Remove references to jdeb and associated workaround - Remove sbt-in-sbt loading of Coursier (this causes an issue, see sbt/sbt-native-packager#1053 (comment)) - Sync sbt-in-sbt version
- Restore MAINTAINER label for our Docker image - Remove left over NativePackager code - Remove references to jdeb and associated workaround - Remove sbt-in-sbt loading of Coursier (this causes an issue, see sbt/sbt-native-packager#1053 (comment)) - Sync sbt-in-sbt version - Use indexWhere to find the split location
see sbt/sbt-native-packager#1053 Co-authored-by: Tom Richards <[email protected]>
see sbt/sbt-native-packager#1053 Co-authored-by: Tom Richards <[email protected]>
see sbt/sbt-native-packager#1053 Co-authored-by: Tom Richards <[email protected]>
see sbt/sbt-native-packager#1053 Co-authored-by: Tom Richards <[email protected]>
see sbt/sbt-native-packager#1053 Co-authored-by: Tom Richards <[email protected]>
see sbt/sbt-native-packager#1053 Co-authored-by: Tom Richards <[email protected]>
see sbt/sbt-native-packager#1053 Co-authored-by: Tom Richards <[email protected]>
see sbt/sbt-native-packager#1053 Co-authored-by: Tom Richards <[email protected]>
see sbt/sbt-native-packager#1053 Co-authored-by: Tom Richards <[email protected]>
see sbt/sbt-native-packager#1053 Co-authored-by: Tom Richards <[email protected]>
Any ideas/workarounds/fixes very much appreciated.
Expected behaviour
Plugin loads without errors.
Actual behaviour
Loading plugin fails with
java.lang.NoClassDefFoundError: org/vafer/jdeb/Console
Information
Versions are sbt-native-packager 1.3.0 and sbt 1.0.2
Archetype:
JavaAppPackaging
The full stacktrace is:
I tried using version 1.2.2 but it fails with
Caused by: java.lang.ClassNotFoundException: org.vafer.jdeb.producers.AbstractDataProducer
The text was updated successfully, but these errors were encountered: