You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to execute MAVEN_OPTS="-DskipTests=true" sam build --debug --cached and getting the error with no maven error message - it is empty but appears in the depths of the aws-lambda-builders library
Steps to reproduce:
Execute the $ MAVEN_OPTS="-DskipTests=true" sam build --debug --cached
Observed result:
2023-05-12 03:23:05,439 | Maven logs:
Maven Failed: {message}
2023-05-12 03:23:05,440 | JavaMavenWorkflow:MavenBuild failed
Traceback (most recent call last):
File "/usr/local/Cellar/aws-sam-cli/1.82.0/libexec/lib/python3.8/site-packages/aws_lambda_builders/workflows/java_maven/actions.py", line 39, in execute
self.subprocess_maven.build(self.scratch_dir)
File "/usr/local/Cellar/aws-sam-cli/1.82.0/libexec/lib/python3.8/site-packages/aws_lambda_builders/workflows/java_maven/maven.py", line 34, in build
raise MavenExecutionError(message=stdout.decode("utf8").strip())
aws_lambda_builders.workflows.java_maven.maven.MavenExecutionError: Maven Failed:
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/Cellar/aws-sam-cli/1.82.0/libexec/lib/python3.8/site-packages/aws_lambda_builders/workflow.py", line 369, in run
action.execute()
File "/usr/local/Cellar/aws-sam-cli/1.82.0/libexec/lib/python3.8/site-packages/aws_lambda_builders/workflows/java_maven/actions.py", line 42, in execute
raise ActionFailedError(str(ex))
aws_lambda_builders.actions.ActionFailedError: Maven Failed:
Build Failed
2023-05-12 03:23:05,509 | Telemetry endpoint configured to be https://aws-serverless-tools-telemetry.us-west-2.amazonaws.com/metrics
2023-05-12 03:23:05,513 | Telemetry endpoint configured to be https://aws-serverless-tools-telemetry.us-west-2.amazonaws.com/metrics
2023-05-12 03:23:05,513 | Unable to find Click Context for getting session_id.
Error: JavaMavenWorkflow:MavenBuild - Maven Failed:
Expected result:
Get the non-empty error message from Maven which should be retrieved from the stderr variable on the aws_lambda_builders/workflows/java_maven/maven.py:49 line
Additional environment details (Ex: Windows, Mac, Amazon Linux etc)
OS:
$ uname -a
Darwin my-laptop 22.4.0 Darwin Kernel Version 22.4.0: Mon Mar 6 21:00:17 PST 2023; root:xnu-8796.101.5~3/RELEASE_X86_64 x86_64
usmanovbf
changed the title
Bug: No stderr info from maven in the sam output logs
Bug: No message from the Maven's stderr in the sam output logs
May 12, 2023
Description:
I am trying to execute
MAVEN_OPTS="-DskipTests=true" sam build --debug --cached
and getting the error with no maven error message - it is empty but appears in the depths of the aws-lambda-builders librarySteps to reproduce:
Execute the
$ MAVEN_OPTS="-DskipTests=true" sam build --debug --cached
Observed result:
Expected result:
Get the non-empty error message from Maven which should be retrieved from the stderr variable on the aws_lambda_builders/workflows/java_maven/maven.py:49 line
Additional environment details (Ex: Windows, Mac, Amazon Linux etc)
sam --version
: SAM CLI, version 1.82.0The text was updated successfully, but these errors were encountered: