wood burning stoves*
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 Spring in Action this week in the Spring 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: 38
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: 1527
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: 16145
    
  21

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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: compile with my lib folder jar files