1

I import a maven project in my intellij idea , and select auto download sources and documents.

After I imported, idea downloads the dependencies automatically.

But when I use mvn install in idea's terminal, it downloads those dependencies again.
I have set the idea's maven to be the same with terminal's maven in File->Settings, still haven't figured out what's going on.

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
Allen Jz
  • 101
  • 2
  • 9

1 Answers1

0

But when I use mvn install in idea's terminal, it downloads those dependencies again.

Double-check what it actually downloads: if your maven repository cache (by default ~/.m2/repository) is the same, maven will still download the maven-metadata.xml files: see "Why is Maven downloading the maven-metadata.xml every time?"

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250