生而为人

程序员的自我修养

0%

maven问题解决

包冲突

02_XMDLOG_绑定包冲突排查方法

maven依赖的jar包版本不一样_Maven依赖jar包冲突常见的解决方法

1
2
3
4
5
6
7
8
9
10
[ERROR] Failed to execute goal on project SAM: Could not resolve dependencies for project com.microsoft:SAM:jar:1.0-SNAPSHOT: The following artifacts could not be resolved: org.scala-lang:scala-reflect:jar:2.12.12, org.scalatest:scalatest_2.12:jar:3.0.8, org.scalactic:scalactic_2.12:jar:3.0.8: Could not transfer artifact org.scala-lang:scala-reflect:jar:2.12.12 from/to BingDM (https://msasg.pkgs.visualstudio.com/_packaging/BingDM/maven/v1): authentication failed for https://msasg.pkgs.visualstudio.com/_packaging/BingDM/maven/v1/org/scala-lang/scala-reflect/2.12.12/scala-reflect-2.12.12.jar, status: 401 Unauthorized -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <args> -rf :SAM

setting.xml设置有问题