https://docs.aws.amazon.com/codebuild/latest/userguide/getting-started-cli-create-build-spec.html
# 사용 중인 빌드 사양 표준의 버전
version: 0.2
# CodeBuild에 명령을 실행하도록 지시할 수 있는 빌드 단계로 install, pre_build, build 로 구성
phases:
install:
runtime-versions:
java: corretto11
pre_build:
commands:
- echo Nothing to do in the pre_build phase...
build:
commands:
- echo Build started on `date`
- mvn install
post_build:
commands:
- echo Build completed on `date`
# CodeBuild가 출력 버킷에 업로드하는 빌드 출력 아티팩트 세트
artifacts:
# 빌드 출력에 포함할 파일
files:
- target/messageUtil-1.0.jar