Title: Incorrect CodeUri for sam build · Issue #272 · aws-cloudformation/cloudformation-cli-java-plugin · GitHub
Open Graph Title: Incorrect CodeUri for sam build · Issue #272 · aws-cloudformation/cloudformation-cli-java-plugin
X Title: Incorrect CodeUri for sam build · Issue #272 · aws-cloudformation/cloudformation-cli-java-plugin
Description: cloudformation-cli-java-plugin/python/rpdk/java/codegen.py Line 49 in 10e32d7 CODE_URI = "./target/{}-1.0-SNAPSHOT.jar" This CodeUri may be correct for other SAM commands, but if you run sam build it's incorrect. See aws/aws-sam-cli#1278...
Open Graph Description: cloudformation-cli-java-plugin/python/rpdk/java/codegen.py Line 49 in 10e32d7 CODE_URI = "./target/{}-1.0-SNAPSHOT.jar" This CodeUri may be correct for other SAM commands, but if you run sam build ...
X Description: cloudformation-cli-java-plugin/python/rpdk/java/codegen.py Line 49 in 10e32d7 CODE_URI = "./target/{}-1.0-SNAPSHOT.jar" This CodeUri may be correct for other SAM commands, but if you run ...
Opengraph URL: https://github.com/aws-cloudformation/cloudformation-cli-java-plugin/issues/272
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Incorrect CodeUri for sam build","articleBody":"https://github.com/aws-cloudformation/cloudformation-cli-java-plugin/blob/10e32d7b60f2395650900022e7d5e161481f5136/python/rpdk/java/codegen.py#L49\r\n\r\nThis `CodeUri` may be correct for other SAM commands, but if you run `sam build` it's incorrect. See https://github.com/awslabs/aws-sam-cli/issues/1278#issuecomment-512341533:\r\n\r\n> It looks like your CodeUri is a jar? It should be the directory of your source not the compiled artifact.\r\n\r\nThe error it gives: \r\n\r\n```\r\nBuild Failed - Error: JavaMavenWorkflow:CopySource - [Errno 20] Not a directory: '/usr/aws-logs-loggroup/target/aws-logs-loggroup-handler-1.0-SNAPSHOT.jar\r\n```\r\n\r\nI fixed it by manually changing the template file: \r\n\r\n`CodeUri: ./target/aws-logs-loggroup-handler-1.0-SNAPSHOT.jar`\r\n\r\nto\r\n\r\n`CodeUri: .`","author":{"url":"https://github.com/miparnisari","@type":"Person","name":"miparnisari"},"datePublished":"2020-06-01T20:08:48Z","url":"https://github.com/aws-cloudformation/cloudformation-cli-java-plugin/issues/272"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:f136716d-2711-ce52-7109-0320bb5b009f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AE84:25B7A4:F63E5:15044E:6AFD8B56 |
| html-safe-nonce | d63460fa89743aaf5d093b6d1f00aaa63747708104c101ef224faaac718ced8b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRTg0OjI1QjdBNDpGNjNFNToxNTA0NEU6NkFGRDhCNTYiLCJ2aXNpdG9yX2lkIjoiNzI3NjE5NjQ2MTIyMDMwMTY1NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 9bca388bce447c8d8b483a6f68559ee6208ae5d5fbcb0d346eedf67e0d4a1a17 |
| hovercard-subject-tag | issue:628693541 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/aws-cloudformation/cloudformation-cli-java-plugin/272/issue_layout |
| twitter:image | https://opengraph.githubassets.com/960dcb2fa6ad44f38b32aea168cc28019cf1d5720b8e5c8c5b8272c5815cec8e/aws-cloudformation/cloudformation-cli-java-plugin/issues/272 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/960dcb2fa6ad44f38b32aea168cc28019cf1d5720b8e5c8c5b8272c5815cec8e/aws-cloudformation/cloudformation-cli-java-plugin/issues/272 |
| og:image:alt | cloudformation-cli-java-plugin/python/rpdk/java/codegen.py Line 49 in 10e32d7 CODE_URI = "./target/{}-1.0-SNAPSHOT.jar" This CodeUri may be correct for other SAM commands, but if you run sam build ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | miparnisari |
| hostname | github.com |
| expected-hostname | github.com |
| None | bc86424ef34a73b386237872800e922d149d65ba907f63d6f150a2dcb8433bea |
| turbo-cache-control | no-preview |
| go-import | github.com/aws-cloudformation/cloudformation-cli-java-plugin git https://github.com/aws-cloudformation/cloudformation-cli-java-plugin.git |
| octolytics-dimension-user_id | 19900777 |
| octolytics-dimension-user_login | aws-cloudformation |
| octolytics-dimension-repository_id | 152624998 |
| octolytics-dimension-repository_nwo | aws-cloudformation/cloudformation-cli-java-plugin |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 152624998 |
| octolytics-dimension-repository_network_root_nwo | aws-cloudformation/cloudformation-cli-java-plugin |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 927a6c5ab1c32b38830f1b9d3050c0b9e9aa92e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width