79206697

Date: 2024-11-20 10:07:56
Score: 0.5
Natty:
Report link

I wasn't able to resolve the issue, but I found a workaround:

  1. do mvn clean install to download all dependencies required to build the project

  2. do mvnd -nsu -o clean install to run mvnd in offline mode

  3. 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

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Aleksey