Reputation: 331
I am trying to run a Spring Project, with several dependencies, that I have already downloaded into my local repository, and have also done followings :
And I am getting following error :
[ERROR] Failed to execute goal on project file2Json: Could not resolve dependencies for project com.nse.file2Json:file2Json:jar:0.0.1-SNAPSHOT: Cannot access central (http://repo1.maven.org/maven2) in offline mode and the artifact com.fasterxml.jackson.dataformat:jackson-dataformat-csv:jar:2.8.4 has not been downloaded from it before. -> [Help 1]
I have the dependency installed, take a look :(
I have following questions :
Upvotes: 0
Views: 1086
Reputation: 44545
It says it cannot access Maven Central because you are in offline mode. And it tries to look there, because ´jackson-dataformat-csv` is not in your local repository, so Maven needs to get it from somewhere (and Maven Central is the default repository).
What you need to do is to execute mvn dependency:go-offline
before you switch to the offline mode. This will download everything that you need (dependencies, transitive dependencies as well as plugins).
Upvotes: 1