aspectjweaver/javaagent in a sbt-assembly fatjar
<p>I have a library that requires me to specify a javaagent using the aspectjweaver jar.
eg.</p>

<pre><code>java -jar  -javaagent:/some/location/aspectjweaver-1.8.2.jar myFatJar.jar
</code></pre>

<p>This works fine. However, the environment that my fatjar will be running on does not have aspectjweaver-1.8.2.jar and I can't put it there (getting a more configurable environment may be a route I go down later).</p>

<p>Is there a way, preferably using sbt-assembly, to package up aspectjweaver into my fatjar, and run it that way? If it matters, my application is a Spray one using Scala, built using sbt.</p>

<p>Constraints</p>

<ul>
<li>Can't have a separate jar </li>
<li>Can specify an arbitrary java command</li>
<li>Have complete control of the build process</li>
</ul>