Building a Maven application using AWS CodeBuild console
In the previous section, we saw the brief steps of flow of work in CodeBuild. Now, let's try to build some real application with CodeBuild.
Getting ready
Note
Before proceeding, make sure you clone the application from GitHub (https://github.com/awsstar/CB-Maven-App-UI.git) and create a new CodeCommit repository in your account and migrate the GitHub code to your CodeCommit repository.
The following are the details that we will be going to use in CodeBuild:
- Source repository: AWS CodeCommit
- Repository name:
CB-MAVEN-Book
- Repository name:
- Build environment: AWS CodeBuild
- Environment image: Image managed by AWS CodeBuild
- OS: Ubuntu (only OS provided by CodeBuild)
- Runtime: Java
- Version: aws/codebuild/java:openjdk-8
- Build specification: Insert build commands
- Build command:
mvn install
- Artifacts: AWS S3
- Artifacts type:
Amazon S3
- Artifacts name:
Books
- BucketName:
awsstar-s3
- Output files:
books.war
- Artifacts type:
How it works...
- Open the AWS console and go to the AWS CodeBuild service...