0

I did not find any options. It reads existing dependency from my .m2 directory and unless I manually delete that directory, IntelliJ does not downloads it. Or I think its job of maven!!

So, how can I give this information to IntelliJ for

  1. individual dependencies as well as
  2. read and update any updated dependency from remote?
xploreraj
  • 3,792
  • 12
  • 33
  • 51
  • 1
    IDE will download the dependency only if it has changed. Otherwise it uses the dependency from the local repository. Also to force update snapshot dependencies from remote, enable Settings (Preferences on macOS) | Build, Execution, Deployment | Build Tools | Maven | **Always update snapshots**. Check also https://stackoverflow.com/a/8624906/2000323 – Andrey Apr 19 '19 at 07:36

2 Answers2

1

If you run Maven with the option -U it redownloads the dependencies.

J Fabian Meier
  • 33,516
  • 10
  • 64
  • 142
0

just edit Pom.xml eg:type a space ,idea will pop up you should reimport maven。

李振纲
  • 372
  • 3
  • 11