Solved

Need to add dependencies programmatically to a maven project

Posted on 2010-11-08
6
1,010 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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

The purpose of this article is to demonstrate how we can use conditional statements using Python.
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

759 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now