0

实施从 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

有什么线索吗?

4

0 回答 0