Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1079
  • Last Modified:

Need to add dependencies programmatically to a maven project

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
bachra04
Asked:
bachra04
  • 3
1 Solution
 
Thomas4019Commented:
Hmm, could you possibly merge the jars into a single jar or just a few?
0
 
bachra04Author Commented:
no I can't because the purpose of the solution is to have different jars that can be shared between different teams.
0
 
bachra04Author Commented:
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
 
bachra04Author Commented:
I did'nt receive any good answer
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now