davidB/maven-scala-plugin — Issue #80: -classpath always includes target/classes, regardless of specified output dir
Author: scotte
Created: 2012-03-06 21:12:10+00:00
State: open

Ran into a particular use case where we need to compile java and then scala in the same module with a different output than target/classes (as we use the aspectj plugin to weave from this intermediate output into target/classes for packaging. The scala compile relies on output from the java compile, but "-classpath" in the .args file passed to scalac always uses target/classes, even if a different output directory is specified.

Instead, this should respect the output directory setting, so that whatever gets passed to the "-d" option of scalac is also in "-classpath".