I absolutely need to RTFM. No argument whatsoever. That's why I asked for links several times - because I can't seem find the correct place in TFM.
Thanks 1,000,000 -----Original Message----- From: Mike Perham [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 27, 2005 9:50 AM To: Maven Users List Subject: RE: How to add external libraries (first post) Chris, it sounds like you need to RTFM. :-) You need to add a project dependency on spring in your project.xml: <dependency> <id>spring</id> <version>1.2.2</version> </dependency> Maven will auto-download the proper jar from the ibiblio repository and place it in your local repository. It will appear in the classpath for anything maven does with this project. -----Original Message----- From: Parker, Chris [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 27, 2005 10:52 AM To: Maven Mailing List Subject: How to add external libraries (first post) First off, no doubt this has been asked a thousand times - but I can't seem to find the mailing list archives. I would appreciate a link to the archives so I can try to ask unique questions, instead of treading the same ground again and again. My problem: I can't figure out how to add external jars to Maven's class path. I'm specifically trying to add the Spring framework, although I don't think the actual framework is relevant (perhaps it is though?). The thing is, I'm *not* trying to add the Spring framework jar into a finalized jar, instead I'm trying to make sure Maven can find Spring's classes while testing/compiling. Currently I get a ton of "[junit] Exception in thread "main" java.lang.NoClassDefFoundError: org/springframework/core/io/Resource" errors. I'm looking for something equivalent to ant's: <fileset dir="${spring.dir}"> <include name="*.jar"/> </fileset> Where "spring.dir" is in my build.properties like this: spring.dir=/home/cparker/repository/spring Do I need to add Spring to Maven's repository (/home/cparker/.maven/repository)? If so how do I do that - or more specifically, where are the instructions for doing that? Maven v. 1.0.2 BTW TIA --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
