Mavenproject with NetBeans

Sometimes I have a Maven project and want to add dependencies to files that I don't have a POM for. What do I do then? SOmetimes it's just a quick fix I want to achieve. Is there another way to do it than just register the POM to my local repository accordingly? Or is there  a fast way to do it? Any good tools? How do you do this? Please elaborate...
mdolandAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
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.

Bob LearnedCommented:
Since no one has answered this question, I would like to interject, and say that I didn't know that you could have a Maven project without a pom.xml file, since it is the "build file" or "make file"?  I am curious how it can work without one.

I also have to say that I don't have much experience with Maven, so I am interested in learning different approaches.
mdolandAuthor Commented:
Thanks for the reply. I have one project X that has a POM-file. Then I have some .jar files that I want to add as a dependecy to the X-project. To my understanding the normal way of doing this would be to insert the "Maven-path" to each .jar file with version number and so on.

So, what if a person sent me 2 .jar files Y.jar and Z.jar? What is prefered way of doing it? Put Y.jar and Z.jar in my local Maven repository?
Bob LearnedCommented:
Since I have only ever used Eclipse, I don't have specific knowledge of the NetBeans IDE.  

For a standard project in Eclipse, I would just "Add External Reference":

Project > Build Path > Libraries > Add External Jar

For Maven, I have followed this pattern:

How to add external libraries in Maven
http://charlie.cu.cc/2012/06/how-add-external-libraries-maven/

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
Java

From novice to tech pro — start learning today.