'test error: status code: 401, reason phrase: Unauthorized (401)
I build project using command: "mvn install". Everything goes good including the test part.
But when I run a single test, just click the green play button on the left. enter image description here
Then it failed, the desensitization log is shown like below.
Maven Dependency Resolver: Error resolving dependencies for dependency1:
Failed to collect dependencies at dependency1:
Failed to read artifact descriptor for dependency1:
Could not transfer artifact dependency1 from/to maven-dev (https://artifactrepository.net/artifactory/maven-dev/): status code: 401, reason phrase: Unauthorized (401):
status code: 401, reason phrase: Unauthorized (401)
I can log in "https://artifactrepository.net/artifactory/maven-dev/" with username and password in setting.xml.
Could you kindly help me with this? I wanna make tests run good.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
