Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Need to add dependencies programmatically to a maven project

Posted on 2010-11-08
6
1,028 Views
Last Modified: 2013-11-23
Hi Experts
I need to add dependencies jars to a maven project programmatically at runtime. The reason I want to do that because I cannot add them all at the beginning since they can be thousands of jars and the user only picks  one or two. I googled the internet but it was not very clear since some people say Don’t do that . I really need an expert-advice

Thanks


0
Comment
Question by:bachra04
  • 3
6 Comments
 
LVL 17

Expert Comment

by:Thomas4019
ID: 34090946
Hmm, could you possibly merge the jars into a single jar or just a few?
0
 
LVL 2

Author Comment

by:bachra04
ID: 34093641
no I can't because the purpose of the solution is to have different jars that can be shared between different teams.
0
 
LVL 2

Accepted Solution

by:
bachra04 earned 0 total points
ID: 34102069
I figured out that just adding a dependency block to the POM.XML does the job. My question is now, is there any API to do that or do I have to program that myself ?

Thanks
0
 
LVL 2

Author Closing Comment

by:bachra04
ID: 34237248
I did'nt receive any good answer
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Weekend adv creator 3 51
jar file executable 12 58
netstat -ano | find "8000" and taskkill /f /pid 2984 3 80
going to wrong jsp page 2 33
If you haven’t already, I encourage you to read the first article (http://www.experts-exchange.com/articles/18680/An-Introduction-to-R-Programming-and-R-Studio.html) in my series to gain a basic foundation of R and R Studio.  You will also find the …
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

791 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question