我在CodeCommmit中有一个非常简单的Hello项目,其结构如下
This is a sample template for sam-app - Below is a brief explanation of what we have generated for you:
├── README.md <-- This instructions file
├── HelloWorldFunction <-- Source for HelloWorldFunction Lambda Function
│ ├── pom.xml <-- Java dependencies
│ └── src
│ ├── main
│ │ └── java
│ │ └── helloworld
│ │ ├── App.java <-- Lambda function code
│ │ └── GatewayResponse.java <-- POJO for API Gateway Responses object
│ └── test <-- Unit tests
│ └── java
│ └── helloworld
│ └── AppTest.java
└── template.yaml 我正在使用CodeBuild,我的buildspec.yml看起来就像
version: 0.1
phases:
install:
commands:
- echo Nothing to do in the install phase...
pre_build:
commands:
- echo Nothing to do in the pre_build phase...
build:
commands:
- echo Build started on this `date`
- pwd
- ls
- cd ./HelloWorldFunction
- pwd
- mvn install
post_build:
commands:
- echo Build completed on `date`
artifacts:
files:
- target/JavaWeb.war 但是,来自CodeBuild运行的日志看起来像是aws无法“更改目录”来更正子文件夹。不知道我是不是错过了什么??

发布于 2019-07-26 02:14:47
请将buildspec更改为版本0.2 (从0.1),这将修复此问题。
https://stackoverflow.com/questions/57210857
复制相似问题