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
OS: OS X, El Capitan
Scala version: 2.11.8
Java Version: 1.8.0_77
SBT Version: 0.13.13
If the aspectjweaver-1.8.6-sources.jar is present under .ivy2/cache/org.aspectj/aspectjweaver/srcs, the sbt-aspectj-runner will erroneously use that jar for the javaagent instead of correctly using .ivy2/cache/org.aspectj/aspectjweaver/jars/aspectjweaver-1.8.6.jar.
The following error is raised when executing aspectj-runner:run:
[info] Error occurred during initialization of VM
[error] Failed to find Premain-Class manifest attribute in /Users/sweaver/.ivy2/cache/org.aspectj/aspectjweaver/srcs/aspectjweaver-1.8.6-sources.jar
[info] agent library failed to init: instrument
java.lang.RuntimeException: Nonzero exit code returned from runner: 1
at scala.sys.package$.error(package.scala:27)
Steps to reproduce:
Explicitly add the aspectj weaver as a dependency and have it set to download sources: "org.aspectj" % "aspectjweaver" % aspectJVersion withSources() withJavadoc()
Make sure that fork in run := true
Reload/start SBT.
Execute aspectj-runner:run
Should fail
Work-around
Remove 'withSources()' from the dependency: "org.aspectj" % "aspectjweaver" % aspectJVersion withJavadoc()
The text was updated successfully, but these errors were encountered:
scottweaver
changed the title
Incorrect aspectweaver jar used for 'javaagent:' if aspectjweaver-1.8.6-sources.jar is present.
Incorrect aspectjweaver jar used for 'javaagent:' if aspectjweaver-1.8.6-sources.jar is present.
Nov 16, 2016
scottweaver
pushed a commit
to scottweaver/sbt-aspectj-runner
that referenced
this issue
Nov 16, 2016
… the source jar instead of the binary jar for aspectj weaver.
- Bump SBT version to 0.13.13
- Issue kamon-io#8: Change settings in ping pong example to demonstrate and reproduce the source jar issue.
OS: OS X, El Capitan
Scala version: 2.11.8
Java Version: 1.8.0_77
SBT Version: 0.13.13
If the aspectjweaver-1.8.6-sources.jar is present under .ivy2/cache/org.aspectj/aspectjweaver/srcs, the sbt-aspectj-runner will erroneously use that jar for the javaagent instead of correctly using .ivy2/cache/org.aspectj/aspectjweaver/jars/aspectjweaver-1.8.6.jar.
The following error is raised when executing
aspectj-runner:run
:Steps to reproduce:
"org.aspectj" % "aspectjweaver" % aspectJVersion withSources() withJavadoc()
fork in run := true
aspectj-runner:run
Work-around
"org.aspectj" % "aspectjweaver" % aspectJVersion withJavadoc()
ivy2/cache/org.aspectj/aspectjweaver/srcs/aspectjweaver-1.8.6-sources.jar
aspectj-runner:run
The text was updated successfully, but these errors were encountered: