AWS - maven 构建失败 - 对等点未通过身份验证

问题描述

实现从 AWS ParameterStore 检索参数后构建失败。

这是添加到 pom.xml 的依赖项:

<dependency>
    <groupId>software.amazon.awscdk</groupId>
    <artifactId>ssm</artifactId>
    <version>${ssm.version}</version>
</dependency>

ssm.version -> 1.109.0

完整的堆栈跟踪,没有额外的错误

Downloading from atlassian-public: https://packages.atlassian.com/maven/repository/public/software/constructs/constructs/3.3.92/constructs-3.3.92.jar
Progress (1): 4.1/508 kB
...
Progress (1): 505/508 kB
Progress (1): 508 kB    
                    
Downloaded from atlassian-public: https://packages.atlassian.com/maven/repository/public/software/amazon/awscdk/iam/1.109.0/iam-1.109.0.jar (508 kB at 450 kB/s)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  8.304 s
[INFO] Finished at: 2021-06-28T10:03:28Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project project: Could not resolve dependencies for project com.ex:project:jar:0.0.1-SNAPSHOT: Could not transfer artifact software.constructs:constructs:jar:3.3.92 from/to atlassian-public (https://packages.atlassian.com/maven/repository/public): Transfer Failed for https://packages.atlassian.com/maven/repository/public/software/constructs/constructs/3.3.92/constructs-3.3.92.jar: peer not authenticated -> [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

[Container] 2021/06/28 10:03:28 Command did not exit successfully mvn test -Dspring.profiles.active=test exit status 1
[Container] 2021/06/28 10:03:28 Phase complete: BUILD State: Failed
[Container] 2021/06/28 10:03:28 Phase context status code: COMMAND_EXECUTION_ERROR Message: Error while executing command: mvn test -Dspring.profiles.active=test. Reason: exit status 1

有什么线索吗?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)