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

Plugin overrides passed javaOptions when running jvm forked #29

Open
jaksky opened this issue Aug 3, 2018 · 1 comment
Open

Plugin overrides passed javaOptions when running jvm forked #29

jaksky opened this issue Aug 3, 2018 · 1 comment

Comments

@jaksky
Copy link

jaksky commented Aug 3, 2018

Hello, when using the plugin, and try to set up java options in run it is not propagated.

    run / javaOptions += "-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=9999",
    fork in run := true 
@carstenlenz
Copy link

Yes - I have the same problem.
It works when you specify your javaOptions globally:

javaOptions += "-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=9999",
fork in run := true 

After looking into the code the possible culprit could be:
https://github.com/kamon-io/sbt-aspectj-runner/blob/master/sbt-aspectj-runner/src/main/scala/kamon/aspectj/sbt/SbtAspectJRunner.scala#L73

runJVMOptions = (javaOptions.value ++ aspectjRunnerJvmForkOptions.value).toVector,

The javaOptions key is not scoped so the default (unscoped) value is resolved.

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

2 participants