'Is this build.sbt ok for packaging?

I am trying to package an unmanaged jar along with some Scala code. I program using IntelliJ, and I am not sure if the package is being built correctly.

My build.sbt is as follows:

name := "InvokeCompiler"

version := "1.0"

scalaVersion := "2.11.8"

exportJars := true

val parserLocation = "lib/parser-0.0.1.jar"

mappings in (Compile, packageBin) ~= {

    _.filter(!_._1.getName.startsWith("Main"))
}

//unmanagedJars in Compile += file(parserLocation)

mappings in (Compile, packageBin) <+= baseDirectory map { base =>

    (base / parserLocation) -> "parser-0.0.1.jar"
}

I want to make a new jar file that contains the unmanaged jar and the code I wrote. This jar will be converted to a .dll for use it in C#. But, when doing this, IKVMC throws all sorts of warnings. When I add the .dll it produces the .dll only contains the class I wrote myself.

EDIT: After reading Mr. Ford's comment, here are the warnings and errors I get from running ikvmc on the generated jar:

PROMPT:> ikvmc -target:library compiled.jar
IKVM.NET Compiler version 7.2.4630.5
Copyright (C) 2002-2012 Jeroen Frijters
http://www.ikvm.net/

note IKVMC0002: Output file is "compiled.dll"
warning IKVMC0100: Class "org.nlogo.core.FrontEndInterface" not found
warning IKVMC0100: Class "scala.Tuple2" not found
warning IKVMC0100: Class "scala.reflect.ScalaSignature" not found
warning IKVMC0100: Class "scala.Option" not found
warning IKVMC0100: Class "org.nlogo.core.Program" not found
warning IKVMC0100: Class "scala.collection.immutable.ListMap" not found
warning IKVMC0100: Class "org.nlogo.core.ExtensionManager" not found
warning IKVMC0100: Class "org.nlogo.core.CompilationEnvironment" not found
warning IKVMC0100: Class "org.nlogo.core.Femto$" not found
warning IKVMC0111: Emitted java.lang.NoClassDefFoundError in "Interface.ASTSingleton$.getFrontEndCompiledAsJSON(Ljava.lang.String;)Lscala.Tuple2;"
    ("org.nlogo.core.FrontEndInterface")
warning IKVMC0111: Emitted java.lang.NoClassDefFoundError in "Interface.ASTSingleton$.getFrontEndSingletion()Lorg.nlogo.core.FrontEndInterface;"
    ("org.nlogo.core.Femto$")


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source