Hello, Thanks for the reply... the situation is that I am trying to load a project with 100 or so jar files that I need to include in the library... I don't want to have to manually add each one to a repository, and include a separate <dependency> for each jar... I just need a quick and dirty way to compile this project
THX adampp wrote: > > I'm new too, so just been through this, but no you don't. You create a > pom.xml file, or have maven do it for you by using "mvn archetype:create > <args>..". Then you add <dependency> xml frags that tell what libs your > project depends on. Then when you do a "mvn compile" or related goal, > maven > will download all the deps for you. So an example dependency is > > <dependency> > <groupId>junit</groupId> > <artifactId>junit</artifactId> > <version>3.8.1</version> > </dependency> > > The big idea of maven is it gets rid of that ./lib directory. > > You can track down your dependencies at a www.ibiblio.org/maven2 and use > google to help you out by googling for site:www.ibiblio.org maven2 junit. > It will lead you to a directory with a junit-3.8.1.pom file that will tell > you the info needed to craft your dependency rule. > > Hope this helps. > Adam > > -----Original Message----- > From: goatwuss [mailto:[EMAIL PROTECTED] > Sent: Tuesday, October 24, 2006 11:54 AM > To: [email protected] > Subject: Maven Noobie - How can I just add a directory of jars to my > classpath? > > > Hello - I am getting started with Maven. I am looking at online guides > and > literature, and I'm trying to not be retarded > > All I want to do is somehow point to a directory of jar files (./lib) and > add these to the classpath so I can compile my code in maven. > > I can see that there's this idea of the "repository" in maven... Do I > have > to manually add each required jar file to the local repository? Do I need > to put more lines in my pom.xml for each required jar, or can I just say > "include this whole directory of jars" > > Thanks, and sorry if this is a dumb question > -- > View this message in context: > http://www.nabble.com/Maven-Noobie---How-can-I-just-add-a-directory-of-jars- > to-my-classpath--tf2503345.html#a6979200 > Sent from the Maven - Users mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > 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] > > > -- View this message in context: http://www.nabble.com/Maven-Noobie---How-can-I-just-add-a-directory-of-jars-to-my-classpath--tf2503345.html#a6979513 Sent from the Maven - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
