Skip to content

Repository files navigation

Java Demo Project for AWS CodeBuild

A sample Java Maven application demonstrating Continuous Integration (CI) using AWS CodeBuild. This project uses a buildspec.yml file to automate the build process.

🚀 Features

  • Java Maven project
  • AWS CodeBuild integration
  • Automated build using buildspec.yml
  • GitHub source repository
  • Beginner-friendly project

🛠 Technologies Used

  • Java
  • Maven
  • AWS CodeBuild
  • AWS EC2
  • Git
  • GitHub

📁 Project Structure

java-demo-codebuild-project/
├── buildspec.yml
├── pom.xml
├── index.html
└── README.md

▶️ Build Command

mvn clean install

☁️ Run on AWS EC2

  1. Launch an Ubuntu EC2 instance.
  2. Install Apache Web Server:
sudo apt update
sudo apt install apache2 -y```3. Copy the `index.html` file to the Apache web directory:```bash
sudo cp index.html /var/www/html/index.html
  1. Start and enable Apache:
sudo systemctl enable apache2
sudo systemctl start apache2
  1. Open port 80 (HTTP) in the EC2 Security Group.

  2. Open your browser and visit:

http://<EC2-PUBLIC-IP>

If the setup is successful, the index.html page will be displayed in your browser.

📄 buildspec.yml

The buildspec.yml file defines the build phases for AWS CodeBuild, including:

  • Install dependencies
  • Build the project
  • Generate build artifacts

🎯 Purpose

This project demonstrates how to integrate a Java Maven application with AWS CodeBuild and deploy a simple web page on an AWS EC2 instance.

👩‍💻 Author

Shuchi Dwivedi

About

Java Maven application integrated with AWS CodeBuild for Continuous Integration (CI). Demonstrates automated builds using buildspec.yml and GitHub source integration.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages