You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 30, 2021. It is now read-only.
Repository navigation
This repository was archived by the owner on Jul 30, 2021. It is now read-only.
Java compiler receives broken classpath when invoked within Spring Boot jar application #28
Notice that it keeps the file: scheme name in the middle of it and also prepends a full path even though the URL already is a full path.
Next up, pathJoiner will concatenate all these entries together, using : as path separator character. This means, classpath string that gets given to the compiler can't be decoded correctly.
com.mysema.codegen.SimpleCompiler#getClassPath only check com.mysema.codegen.SimpleCompiler#isSureFireBooter for the first level of classloader passed in. Not for all the parent classloader.
It is a problem, when running a embedded tomcat (Spring Boot auto config) during integration test with Maven Failsafe plugin. The first classloader passed in is a "TomcatEmbeddedWebappClassloader" (isSurefireBooter returns false), its parent is sun.misc.Launcher.AppClassLoader (isSurefireBooter returns true, but it is never checked).
on surefire or failsafe plugin, set "useSystemClassLoader" as false. which force Maven surefire uses plain vanilla classpath, instead of manefist classpath in booter file.
@ShijunK any news on this guy?I just found out the hard way that while deploying this as a executable jar it does not find the correct classpath.
Not sure if this is repository is still active or I should move on finding something different. Does not seem to be much action lately.
I can help if I can, but I need some guidance.
In theory the repositories of Querydsl are still active. (I'm still actively developing)
In practice there are some hurdles that still need to be crossed.
Some other things, like Java 9 revamping the way class loading works are another issue.
So, first I'd like the holidays to pass and then I'll pick up the progress.
(But, yes, this issue sounds good to fix :/ )
Activity
ShijunK commentedon Jun 21, 2016
might be related.
com.mysema.codegen.SimpleCompiler#getClassPath only check com.mysema.codegen.SimpleCompiler#isSureFireBooter for the first level of classloader passed in. Not for all the parent classloader.
It is a problem, when running a embedded tomcat (Spring Boot auto config) during integration test with Maven Failsafe plugin. The first classloader passed in is a "TomcatEmbeddedWebappClassloader" (isSurefireBooter returns false), its parent is sun.misc.Launcher.AppClassLoader (isSurefireBooter returns true, but it is never checked).
the workaround is: http://maven.apache.org/surefire/maven-surefire-plugin/examples/class-loading.html
on surefire or failsafe plugin, set "useSystemClassLoader" as false. which force Maven surefire uses plain vanilla classpath, instead of manefist classpath in booter file.
xvipservice commentedon Dec 9, 2016
any one fix this?
sfat commentedon Dec 27, 2017
@ShijunK any news on this guy?I just found out the hard way that while deploying this as a executable jar it does not find the correct classpath.
Not sure if this is repository is still active or I should move on finding something different. Does not seem to be much action lately.
I can help if I can, but I need some guidance.
Shredder121 commentedon Dec 27, 2017
In theory the repositories of Querydsl are still active. (I'm still actively developing)
In practice there are some hurdles that still need to be crossed.
Some other things, like Java 9 revamping the way class loading works are another issue.
So, first I'd like the holidays to pass and then I'll pick up the progress.
(But, yes, this issue sounds good to fix :/ )