I have a project with two seperate modules that uses sqlline and another library(say OtherLib) that depends on jline. However on different versions.
I found a an answer here using maven-dependency-plugin
In pom.xml
org.apache.maven.plugins
maven-dependency-plugin
2.1
copy-model
package
copy
jline
jline
2.10
jar
../../resources/lib
And in assembly.xml
../../resources/lib
${HOME}/lib/module1
755
644
jline-*
jline-0.9.94
is included in a dependencySet
as any other dependency.
I hope this helps. :)