I have a simple java API webapp. When i'm trying to build my webapp using CodeBuild, it's generating a "package org.springframework.web.bind.annotation does not exist" error. But in my local machine its getting build successfully and i have also tried it manually on EC2 linux instance by installing maven and then running the commands, it got successfully built.
Below is my buildspec.yml file :
My Pom.xml file :
Error screenshot :
The file is being successfully build in EC2 instance when I'm replicating all the steps manually and in local machine its also working fine on STS.