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

Created on 23 May 2020  路  3Comments  路  Source: aws/aws-toolkit-jetbrains

Your Environment

  • OS:Windows 10
  • JetBrains product: Intellij Idea
  • JetBrains product version: 2019.3.3

Question
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

guidance

Most helpful comment

Do you have a detail link about how to set up step 2 you listed above?
I got same error here.

Update: I think I got it work.
2: Click 'Edit [Local] App' -> choose 'SAM CLI' tab -> check box 'Build function inside a container'
Make sure your Docker Desktop is running

All 3 comments

It can't find Maven on your path

You can:

  1. Install Maven and make sure it gets added to your PATH env var (http://maven.apache.org/install.html)
  2. Use SAM's build in container feature to run the build inside of Docker which will already have Maven in the image

Do you have a detail link about how to set up step 2 you listed above?
I got same error here.

Update: I think I got it work.
2: Click 'Edit [Local] App' -> choose 'SAM CLI' tab -> check box 'Build function inside a container'
Make sure your Docker Desktop is running

@CiciMa Yes, that is what I meant.

Was this page helpful?
0 / 5 - 0 ratings