Reputation: 1
org.codehaus.mojo:properties-maven-plugin:jar:1.0-alpha-2
already exists in pom.xml
, but I am still getting a dependency error and the build is failing.
[ERROR] Plugin org.codehaus.mojo:properties-maven-plugin:1.0-alpha-2 or one of its dependencies could not be resolved: Cannot access central (https://repo.maven.apache.org/maven2) in offline mode and the artifact org.codehaus.mojo:properties-maven-plugin:jar:1.0-alpha-2 has not been downloaded from it before
Currently I am using -o
argument in command.
Upvotes: 0
Views: 404
Reputation: 719
You need to remove the -o option, otherwise maven won't try to download the dependency because you are telling to run on offline mode.
You shall use -o when you don't want to maven to look for dependencies.
Upvotes: 1