Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Update external libraries with intellij and java

I'm using some Apache jars, I'll make changes to the JAR's every so often.

These JARs are listed as external libs in intellij (i.e the classpath is looking to the install dir of the JAR's). Well when I make the changes intellij doesn't seem to know about the new implementation. I have to remove the jar as an external library and re-ad it.

Does anyone know what I have to do so intellij picks the changes up automatically? I've done clean and rebuild project but it had little effect.

like image 845
Steve Avatar asked Jul 14 '11 13:07

Steve


People also ask

How do I change external library in IntelliJ?

From the main menu, select File | Project Structure Ctrl+Alt+Shift+S and locate the library that you want to change. Right-click the necessary library and select Copy to Project Libraries or Add to Modules.


1 Answers

You can go to Preferences -> Build, Execution, Deployment -> Build Tools -> Maven -> Importing and check the box that says Import Maven projects automatically.

In Mac, you can do Command + Shift + A, then enter the action reimport, then click on Reimport all Maven projects.

like image 150
chepukha Avatar answered Oct 14 '22 08:10

chepukha