Home > Enterprise >  Replace external jar dependency with local intellij project
Replace external jar dependency with local intellij project

Time:02-07

So I have an intellij IDEA project (project A) which includes a bunch of external jar libraries. I am currently working on one of those external jar libraries (project B) and I want to replace it with the local project (project B) on my computer.

So, in short: I have Project A which depends on jar B I want to replace jar B with my local project (project B)

That way, when I run project A, it uses Project B local rather than Jar B external. Anyone know any good easy ways of doing this?

CodePudding user response:

  1. Open module A in IntelliJ IDEA;
  2. Go to File-> Project Structure -> Modules -> module A -> Dependencies (Tab) -> find and delete B.jar (there is "-" button for that);
  3. Next click " " button and add folder which contains compiled classes of your local module B.

CodePudding user response:

You need to use Maven to manage project dependencies.

  •  Tags:  
  • Related