Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java init template: synthesis errors are hidden #5128

Closed
eladb opened this issue Nov 20, 2019 · 0 comments · Fixed by #5129
Closed

java init template: synthesis errors are hidden #5128

eladb opened this issue Nov 20, 2019 · 0 comments · Fixed by #5129
Labels
bug This issue is a bug. needs-triage This issue or PR still needs to be triaged.

Comments

@eladb
Copy link
Contributor

eladb commented Nov 20, 2019

If there are errors during synthesis, the output of cdk synth will be:

[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.6.0:java (default-cli) on project dynamo-view-java: An exception occured while executing the Java class. table is required -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
Subprocess exited with error 1

We need cdk.json for Java projects to include -e:

{
  "app": "mvn -e -q exec:java"
}

Environment

  • CLI Version : 1.17.1
  • Framework Version: 1.17.1.DEVPREVIEW
  • OS : Mac
  • Language : Java

This is 🐛 Bug Report

@eladb eladb added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Nov 20, 2019
RomainMuller added a commit that referenced this issue Nov 20, 2019
Adds the `-e` flag to the maven command included in `cdk.json` as part
of the Java init templates so that exceptions thrown out of the
application are not hidden from the user.

Fixes #5128
@mergify mergify bot closed this as completed in #5129 Nov 20, 2019
mergify bot pushed a commit that referenced this issue Nov 20, 2019
Adds the `-e` flag to the maven command included in `cdk.json` as part
of the Java init templates so that exceptions thrown out of the
application are not hidden from the user.

Fixes #5128
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue is a bug. needs-triage This issue or PR still needs to be triaged.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant