I am using onejar to build a spring based executable jar from a set of maven configured projects all developed in an eclipse 3.5.2 environment. First off, onejar configured in the project.xml and executed from a eclipse initiated mvn package failed to build a complete jar. The jar was void of any locally available dependent project. The fix for that was to open up a console to the directory of the main project and run mvn package from there. So all dependencies seem to be included.
Now when I attempt to run the jar, I get the following error:
Caused by: org.springframework.aop.framework.AopConfigException: Cannot proxy target class because CGLIB2 is not available. Add CGLIB to the class path or specify proxy interfaces.
I made sure the library cglib-2.1_3.jar is included in the jar lib directory.
Any help is appreciated!
Hope this is enough information