From 1f1fe33c2913bb78b94a503e2f1796e95e11fce0 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 10 Nov 2025 17:57:46 +0000 Subject: [PATCH 1/2] Fix Java version compatibility and Lombok configuration - Update Java version from 1.8 to 11 for better compatibility - Add explicit Lombok version and annotation processor configuration - Update Maven compiler plugin configuration for Java 11 - This resolves build failures with newer Java versions (Java 17+, 21+, 23+) --- pom.xml | 36 ++++++++++++++++++++++++++++++++++-- 1 file changed, 34 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index fc450171..f3872a34 100644 --- a/pom.xml +++ b/pom.xml @@ -26,8 +26,11 @@ - 1.8 + 11 + 11 + 11 3.17.1 + 1.18.24 2.6.0 2021.0.2 @@ -60,9 +63,38 @@ ${assertj.version} test + + org.projectlombok + lombok + ${lombok.version} + provided + + + + + + org.apache.maven.plugins + maven-compiler-plugin + 3.8.1 + + 11 + 11 + + + org.projectlombok + lombok + ${lombok.version} + + + + + + + + springboot @@ -161,4 +193,4 @@ - + \ No newline at end of file From 958e804d434274702c8f09f81f207b9f95825fff Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 10 Nov 2025 17:58:35 +0000 Subject: [PATCH 2/2] Update README with Java version requirements and troubleshooting - Add Java version requirements section - Document Java 11+ requirement for building - Add troubleshooting section for common build issues - Reference the Java version compatibility fix --- README.md | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/README.md b/README.md index 2959fabd..4fa63fdb 100644 --- a/README.md +++ b/README.md @@ -11,6 +11,15 @@ This code for sample application is intended for demonstration purposes only. It # Prerequisite +## Java Version Requirements + +**Important**: This application requires **Java 11 or higher** for building. If you encounter build errors with newer Java versions (Java 17+, 21+, 23+), ensure you're using a compatible version. + +**Recommended Java versions:** +- Java 11 (LTS) - Fully supported +- Java 17 (LTS) - Supported +- Java 21 (LTS) - Supported + ## Option 1: Using AWS CodeBuild (Recommended - No Local Setup Required) * AWS CLI 2.x is installed. For more information about installing the AWS CLI, see [Install or update the latest version of the AWS CLI](https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html). * AWS CDK >= v2.1024.0 is installed - https://docs.aws.amazon.com/cdk/v2/guide/getting_started.html#getting_started_install @@ -18,6 +27,7 @@ This code for sample application is intended for demonstration purposes only. It ## Option 2: Local Build Environment * A Linux machine with x86-64 (AMD64) architecture is required for building Docker images for the sample application. +* **Java 11 or higher** is required for building the application. * Docker is installed and running on the machine. * AWS CLI 2.x is installed. For more information about installing the AWS CLI, see [Install or update the latest version of the AWS CLI](https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html). * Golang is installed. @@ -31,6 +41,30 @@ This code for sample application is intended for demonstration purposes only. It * Golang is installed. * [Optional] If you plan to install the infrastructure resources using Terraform, terraform cli is required. https://developer.hashicorp.com/terraform/tutorials/aws-get-started/install-cli * [Optional] If you want to try out AWS Bedrock/GenAI support with Application Signals, enable Amazon Titian, Anthropic Claude, Meta Llama foundation models by following the instructions in https://docs.aws.amazon.com/bedrock/latest/userguide/model-access.html + +# Troubleshooting + +## Build Issues + +### Maven Build Errors with Lombok +If you encounter compilation errors like "cannot find symbol" for getter/setter methods, this is typically a Java version compatibility issue with Lombok annotation processing. + +**Solution**: Ensure you're using Java 11 or higher. The project has been updated to use Java 11 with proper Lombok configuration. + +**Check your Java version:** +```shell +java --version +``` + +**If using Java 23+ and still encountering issues:** +- Use Java 11 for building (as suggested by community feedback) +- Or ensure your IDE has the latest Lombok plugin installed + +### Docker Build Issues on Apple Silicon (M1/M2) +If you encounter Docker build failures on Apple Silicon Macs, this is due to architecture compatibility issues with the Docker Maven plugin. + +**Solution**: The project includes updated Docker plugin configuration that's compatible with Apple Silicon. + # EKS demo ## Deploy via Shell Scripts