René's URL Explorer Experiment


Title: Generating file in "json" format fails when file in "properties" format already exists · Issue #99 · git-commit-id/git-commit-id-plugin-core · GitHub

Open Graph Title: Generating file in "json" format fails when file in "properties" format already exists · Issue #99 · git-commit-id/git-commit-id-plugin-core

X Title: Generating file in "json" format fails when file in "properties" format already exists · Issue #99 · git-commit-id/git-commit-id-plugin-core

Description: Describe the bug (required) It seems that the code that generates the json formatted file tries to open and parse the existing file. If the existing file is not valid json, it fails. Tell us about your plugin configuration (required)

Open Graph Description: Describe the bug (required) It seems that the code that generates the json formatted file tries to open and parse the existing file. If the existing file is not valid json, it fails. Tell us about ...

X Description: Describe the bug (required) It seems that the code that generates the json formatted file tries to open and parse the existing file. If the existing file is not valid json, it fails. Tell us about ...

Opengraph URL: https://github.com/git-commit-id/git-commit-id-plugin-core/issues/99

X: @github

direct link

Domain: patch-diff.githubusercontent.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Generating file in \"json\" format fails when file in \"properties\" format already exists","articleBody":"### Describe the bug (required)\n\nIt seems that the code that generates the json formatted file tries to open and parse the existing file. If the existing file is not valid json, it fails.\n\n### Tell us about your plugin configuration (required)\n\n```xml\r\n            \u003cplugin\u003e\r\n                \u003cgroupId\u003eio.github.git-commit-id\u003c/groupId\u003e\r\n                \u003cartifactId\u003egit-commit-id-maven-plugin\u003c/artifactId\u003e\r\n                \u003cversion\u003e6.0.0\u003c/version\u003e\r\n                \u003cexecutions\u003e\r\n                    \u003cexecution\u003e\r\n                        \u003cid\u003eget-the-git-infos\u003c/id\u003e\r\n                        \u003cgoals\u003e\r\n                            \u003cgoal\u003erevision\u003c/goal\u003e\r\n                        \u003c/goals\u003e\r\n                        \u003cphase\u003einitialize\u003c/phase\u003e\r\n                    \u003c/execution\u003e\r\n                \u003c/executions\u003e\r\n                \u003cconfiguration\u003e\r\n                    \u003cgenerateGitPropertiesFile\u003etrue\u003c/generateGitPropertiesFile\u003e\r\n                    \u003cgenerateGitPropertiesFilename\u003e${project.build.outputDirectory}/git.properties\u003c/generateGitPropertiesFilename\u003e\r\n                    \u003cformat\u003ejson\u003c/format\u003e\r\n                \u003c/configuration\u003e\r\n            \u003c/plugin\u003e\r\n```\r\n\n\n### Tell us about the Plugin version used (required)\n\n6.0.0\n\n### Tell us about the Maven version used (required)\n\n```bash\r\nmvn --version\r\nApache Maven 3.5.4 (1edded0938998edf8bf061f1ceb3cfdeccf443fe; 2018-06-17T20:33:14+02:00)\r\nMaven home: /home/pontus/.m2/wrapper/dists/apache-maven-3.5.4-bin/4lcg54ki11c6mp435njk296gm5/apache-maven-3.5.4\r\nJava version: 11.0.19, vendor: Red Hat, Inc., runtime: /usr/lib/jvm/java-11-openjdk-11.0.19.0.7-1.fc37.x86_64\r\nDefault locale: en_GB, platform encoding: UTF-8\r\nOS name: \"linux\", version: \"6.3.12-100.fc37.x86_64\", arch: \"amd64\", family: \"unix\"\r\n```\r\n\n\n### Steps to Reproduce (required)\n\n1. Set \u003cformat\u003eproperties\u003c/format\u003e\r\n2. run mvn io.github.git-commit-id:git-commit-id-maven-plugin:6.0.0:revision\r\n3. Set \u003cformat\u003ejson\u003c/format\u003e\r\n4. run mvn io.github.git-commit-id:git-commit-id-maven-plugin:6.0.0:revision\n\n### Are there any stacktraces or any error messages? (required)\n\n**WARNING** You may **NOT** want to paste all the output that is produced with `verbose` publicly,\r\nsince it **MAY** contain information you deem sensitive.\r\nReview this **CAREFULLY** before posting your issue!\r\n\r\n```\r\n[INFO] ------------------------------------------------------------------------\r\n[INFO] BUILD FAILURE\r\n[INFO] ------------------------------------------------------------------------\r\n[INFO] Total time: 2.877 s\r\n[INFO] Finished at: 2023-09-13T10:55:21+02:00\r\n[INFO] ------------------------------------------------------------------------\r\n[ERROR] Failed to execute goal io.github.git-commit-id:git-commit-id-maven-plugin:6.0.0:revision (default-cli) on project secret-project: Execution default-cli of goal io.github.git-commit-id:git-commit-id-maven-plugin:6.0.0:revision failed: Unexpected char 35 at (line no=1, column no=1, offset=0) -\u003e [Help 1]\r\n[ERROR] \r\n[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.\r\n[ERROR] Re-run Maven using the -X switch to enable full debug logging.\r\n[ERROR] \r\n[ERROR] For more information about the errors and possible solutions, please read the following articles:\r\n[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException\r\n[ERROR] \r\n[ERROR] After correcting the problems, you can resume the build with the command\r\n[ERROR]   mvn \u003cgoals\u003e -rf :secret-project\r\n\r\n```\r\n\n\n### Is there a (public) project where this issue can be reproduced? (optional)\n\n_No response_\n\n### Your Environment (optional)\n\n_No response_\n\n### Context (optional)\n\nThere is an easy work arround: Just delete the generated properties file before generating it again in a different format.","author":{"url":"https://github.com/PontusPih","@type":"Person","name":"PontusPih"},"datePublished":"2023-09-13T08:57:59.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/99/git-commit-id-plugin-core/issues/99"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:2ea69464-a09d-75e8-48ec-22b6d3fe7e2d
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idCEE2:555D8:67C9B:7AB1D:69911074
html-safe-nonce91604a355e67dac07258a25f9d768ba2b6e070461570cab001a9fb2d68ab37d2
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRUUyOjU1NUQ4OjY3QzlCOjdBQjFEOjY5OTExMDc0IiwidmlzaXRvcl9pZCI6IjQ1Nzk2MjMyMDQ1NzA1OTk1NDAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacb9f94fc0c286d521dbceaa4e0ab978b2d28a7c4f617e3e513d2b3f1df94aa1d3
hovercard-subject-tagissue:2127675927
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/git-commit-id/git-commit-id-plugin-core/99/issue_layout
twitter:imagehttps://opengraph.githubassets.com/ff226dcbe714cfe37c0d0cd189296a26fe6e31c86d0849fce9f67a68c8a488df/git-commit-id/git-commit-id-plugin-core/issues/99
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/ff226dcbe714cfe37c0d0cd189296a26fe6e31c86d0849fce9f67a68c8a488df/git-commit-id/git-commit-id-plugin-core/issues/99
og:image:altDescribe the bug (required) It seems that the code that generates the json formatted file tries to open and parse the existing file. If the existing file is not valid json, it fails. Tell us about ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamePontusPih
hostnamegithub.com
expected-hostnamegithub.com
None42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b
turbo-cache-controlno-preview
go-importgithub.com/git-commit-id/git-commit-id-plugin-core git https://github.com/git-commit-id/git-commit-id-plugin-core.git
octolytics-dimension-user_id43124426
octolytics-dimension-user_logingit-commit-id
octolytics-dimension-repository_id376144855
octolytics-dimension-repository_nwogit-commit-id/git-commit-id-plugin-core
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id376144855
octolytics-dimension-repository_network_root_nwogit-commit-id/git-commit-id-plugin-core
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release848bc6032dcc93a9a7301dcc3f379a72ba13b96e
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/git-commit-id/git-commit-id-plugin-core/issues/99#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgit-commit-id%2Fgit-commit-id-plugin-core%2Fissues%2F99
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgit-commit-id%2Fgit-commit-id-plugin-core%2Fissues%2F99
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=git-commit-id%2Fgit-commit-id-plugin-core
Reloadhttps://patch-diff.githubusercontent.com/git-commit-id/git-commit-id-plugin-core/issues/99
Reloadhttps://patch-diff.githubusercontent.com/git-commit-id/git-commit-id-plugin-core/issues/99
Reloadhttps://patch-diff.githubusercontent.com/git-commit-id/git-commit-id-plugin-core/issues/99
git-commit-id https://patch-diff.githubusercontent.com/git-commit-id
git-commit-id-plugin-corehttps://patch-diff.githubusercontent.com/git-commit-id/git-commit-id-plugin-core
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Fgit-commit-id%2Fgit-commit-id-plugin-core
Fork 14 https://patch-diff.githubusercontent.com/login?return_to=%2Fgit-commit-id%2Fgit-commit-id-plugin-core
Star 7 https://patch-diff.githubusercontent.com/login?return_to=%2Fgit-commit-id%2Fgit-commit-id-plugin-core
Code https://patch-diff.githubusercontent.com/git-commit-id/git-commit-id-plugin-core
Issues 9 https://patch-diff.githubusercontent.com/git-commit-id/git-commit-id-plugin-core/issues
Pull requests 5 https://patch-diff.githubusercontent.com/git-commit-id/git-commit-id-plugin-core/pulls
Actions https://patch-diff.githubusercontent.com/git-commit-id/git-commit-id-plugin-core/actions
Projects 0 https://patch-diff.githubusercontent.com/git-commit-id/git-commit-id-plugin-core/projects
Security 0 https://patch-diff.githubusercontent.com/git-commit-id/git-commit-id-plugin-core/security
Insights https://patch-diff.githubusercontent.com/git-commit-id/git-commit-id-plugin-core/pulse
Code https://patch-diff.githubusercontent.com/git-commit-id/git-commit-id-plugin-core
Issues https://patch-diff.githubusercontent.com/git-commit-id/git-commit-id-plugin-core/issues
Pull requests https://patch-diff.githubusercontent.com/git-commit-id/git-commit-id-plugin-core/pulls
Actions https://patch-diff.githubusercontent.com/git-commit-id/git-commit-id-plugin-core/actions
Projects https://patch-diff.githubusercontent.com/git-commit-id/git-commit-id-plugin-core/projects
Security https://patch-diff.githubusercontent.com/git-commit-id/git-commit-id-plugin-core/security
Insights https://patch-diff.githubusercontent.com/git-commit-id/git-commit-id-plugin-core/pulse
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/git-commit-id/git-commit-id-plugin-core/issues/99
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/git-commit-id/git-commit-id-plugin-core/issues/99
Generating file in "json" format fails when file in "properties" format already existshttps://patch-diff.githubusercontent.com/git-commit-id/git-commit-id-plugin-core/issues/99#top
bugSomething isn't workinghttps://github.com/git-commit-id/git-commit-id-plugin-core/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com/PontusPih
https://github.com/PontusPih
PontusPihhttps://github.com/PontusPih
on Sep 13, 2023https://github.com/git-commit-id/git-commit-id-plugin-core/issues/99#issue-2127675927
bugSomething isn't workinghttps://github.com/git-commit-id/git-commit-id-plugin-core/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.