maven project structure java


In eclipse when i expand on a project i see MAven Dependencies and target
I am trying below example
i like to know when to what is use of MAven Dependencies and target

please advise
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

mccarlIT Business Systems Analyst / Software DeveloperCommented:
Maven dependencies is there to list ALL the dependencies included into your project based on the pom.xml. It just makes it easy to see what libraries are included, and you can drill down into each one and see the packages and classes that each contains.

"target" is just the folder on your hard drive that .class/.jar files that Maven/Eclipse compiles and builds from your source files. It is in a separate directory because in all/most cases your should be able to just delete ALL the contents under this "target" directory and then the build process can re-create them. Another reason is that normally you would only check the "src" directory into a source code repository (eg. git, svn, etc) and leave out "target".

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.