I wasn't able to resolve the issue, but I found a workaround:
do mvn clean install
to download all dependencies required to build the project
do mvnd -nsu -o clean install
to run mvnd in offline mode
if you get errors indicating that some dependencies are missing, for example:
[ERROR] dependency: org.mockito:mockito-core:jar:1.9.5 (provided)
[ERROR] Cannot access public (https://nexus-ci.com/repository/public/) in offline mode and the artifact org.mockito:mockito-core:jar:1.9.5 has not been downloaded from it before.
just download required dependency:
mvn dependency:get -DgroupId=org.mockito -DartifactId=mockito-core -Dversion=1.9.5
and do mvnd -nsu -o clean install
again