Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

compile with my lib folder jar files

 
shekhar john
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1608
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
shekhar john wrote:Hello everyone,

I am migrating my project from ant to maven.



Why?
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18276
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic