-
Notifications
You must be signed in to change notification settings - Fork 445
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
No conf folder on the classpath when using ClasspathJarPlugin or LauncherJarPlugin #624
Comments
Yes, the conf folder is not on the classpath by default. This has security and deterministic reasons. You can add the scriptClasspath += "conf/*" (not tested, check cp syntax). See the docs for this as well. The other option is to include your import NativePackagerHelper._
mappings in Universal ++= contentOf(baseDirectory.value / "META-INF") |
I'm not really sure if it is intentional that the conf folder isn't on the classpath. At least for a Play application using the LauncherJarPlugin the MANIFEST.MF of the launcher jar tries to reference the
As far as i can tell from my test and this blog post regarding manifest classpath syntax the only reason that conf isn't on the classpath is a missing trailing slash that causes the Applying the workaround described above with a working classpath syntax
|
Hm. You are right. I wasn't aware that the
I don't quite get this. Without the cc @jroper |
Yes, that's correct but the multiple references don't really hurt since the first one is silently ignored and only the second one works: 1st reference from LauncherJarPlugin: |
Let me explain the So, the simplest work around to this here is to disable it by adding this to your build: PlayKeys.externalizeResources := false The solution is to fix Play so that it adds |
Thanks James for taking care :) |
@jroper I am also facing same issue like above :
Please help me in resolving this |
Can you provide a minimal example to reproduce this? |
Whenever I try to use either of those plugins, I get the following exception:
Seems to me that it can't find the
conf
folder. If I give the application.conf as an argument, it will fail again:Which seems to indicate it can't find the
persistence.xml
in theconf/META-INF
folder.I was hoping that with Play 2.4.x I could finally get Windows support again, but it seems both 'solutions' leave me with broken builds...
The text was updated successfully, but these errors were encountered: