jhsuwm / onejar-maven-plugin

Automatically exported from code.google.com/p/onejar-maven-plugin
0 stars 0 forks source link

generic classpath arguments cannot be passed to execution #35

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. try to instantiate a class using reflection, that exists in a jar that was 
added to classpath from command line using -cp

2. exception. class is not found in classpath

What is the expected output? What do you see instead?
class in jar that was added to classpath is found

What version of onejar-maven-plugin are you using?
0.97

What is the output of "mvn -version" on your machine?
1.7 64bit

Please provide any additional information below.
running the jar with java -jar ignores classpath arguments
and running the jar with java -classpath + main class throws err cant find main
these issues have to do with the plugin classloader
so generic classpath arguments cannot be passed to execution

Original issue reported on code.google.com by cla...@gmail.com on 14 Aug 2012 at 3:32