wood burning stoves 2.0*
The moose likes Ant, Maven and Other Build Tools and the fly likes compile with my lib folder jar files Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "compile with my lib folder jar files" Watch "compile with my lib folder jar files" New topic
Author

compile with my lib folder jar files

shekhar john
Ranch Hand

Joined: Feb 02, 2011
Posts: 35
Hello everyone,

I am a newbie to maven and i am compiling my lots of code through it.
I am migrating my project from ant to maven.We have lots of jar files in lib folder of our project and custom created folder structure.Now i am trying to configuring it with my local libraries with so many ideas like repository tags etc but its not compiling my .java files,it doesn't find its lib jars .
how should i configure my lib folder jars to compile my .java files.

Any help is appreciated.


Thanks in Advance.

Akhilesh Trivedi
Ranch Hand

Joined: Jun 22, 2005
Posts: 1511
shekhar john wrote:Hello everyone,

I am migrating my project from ant to maven.



Why?


Keep Smiling Always — My life is smoother when running silent. -paul
[FAQs] [Certification Guides] [The Linux Documentation Project]
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15629
    
  15

Maven is based on dependencies. You need to define these libraries as dependencies. If the jars are standard jars such as the hibernate jars, you can define standard repository dependencies. For site-local jars, you should set up a Maven repository and install them there.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: compile with my lib folder jar files
 
Similar Threads
How To Compile If I Have To Set Two Classpath?
Why do we need to set the buildpath of the jar files
java.lang.NoClassDefFoundError: org/hibernate/cfg/Configuration
Needs to Import Other JAR Files to My Spring Web Services Project
How to avoid using systemPath and make maven read jars from /lib