Hello everybody,

I've been trying to look for this all over the forums but so far, I haven't
been able to find any answer.

I have a m2 project in Eclipse, which uses some external libraries via
Maven's Dependency Mechanism.  As long as I run my project inside Eclipse,
everything's perfect.  The problem is when I  build my JAR via mvn package.  

When I try to run the JAR, I get a NoClassDefFoundError:
org/apache/commons/logging/LogFactory.

Is there anyway to tell maven to set the classpath, so the JAR can find the
missing dependencies in the local repository ?

I also plan to distribute this app to some pcs, and some of them doesn't
have maven installed.  I read somewhere that including those JAR inside my
JAR is a bad practice.  Any ideas ?

I'm uploading my  http://www.nabble.com/file/p15095045/pom.xml pom.xml , so
everyone can check it.
-- 
View this message in context: 
http://www.nabble.com/mvn-package%3A-Generated-JAR-and-external-dependencies-tp15095045s177p15095045.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to