Aws Sam build failed Error: JavaMavenWorkflow:Resolver - No Maven executable found! on my hello world project

Viewed 2921

I just started building serverless application with aws toolkit in intellij, and I got stuck in this error after executing the template.

Build Failed
Error: JavaMavenWorkflow:Resolver - No Maven executable found!

I tried a lot of solution in the aws documentation bad none of them works

2 Answers

Click modify run configuration and then select the "Build function inside a container" checkbox on the SAM CLI tab.

Got the same error not from IntelliJ but from CLI and eventually, I solved this by:-

Solution - Add MAVEN_HOME/path to maven bin to system environment variables so that Mvn command is accessible from anywhere this should solve the problem

Related