Title: scyjava does not agree with jgo on default m2 repo path · Issue #69 · scijava/scyjava · GitHub
Open Graph Title: scyjava does not agree with jgo on default m2 repo path · Issue #69 · scijava/scyjava
X Title: scyjava does not agree with jgo on default m2 repo path · Issue #69 · scijava/scyjava
Description: As reported downstream in PyImageJ, scyjava sets the m2_repo to ~/.m2/repository by default. Although you can override it using scyjava.config.set_m2_repo, the upstream jgo library has a function jgo.m2_path which does as follows: def m2...
Open Graph Description: As reported downstream in PyImageJ, scyjava sets the m2_repo to ~/.m2/repository by default. Although you can override it using scyjava.config.set_m2_repo, the upstream jgo library has a function j...
X Description: As reported downstream in PyImageJ, scyjava sets the m2_repo to ~/.m2/repository by default. Although you can override it using scyjava.config.set_m2_repo, the upstream jgo library has a function j...
Opengraph URL: https://github.com/scijava/scyjava/issues/69
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"scyjava does not agree with jgo on default m2 repo path","articleBody":"As reported [downstream in PyImageJ](https://github.com/imagej/pyimagej/issues/278#issuecomment-2508087482), scyjava sets the `m2_repo` to `~/.m2/repository` by default. Although you can override it using `scyjava.config.set_m2_repo`, the upstream jgo library has a function `jgo.m2_path` which does as follows:\r\n```python\r\ndef m2_path():\r\n return os.getenv(\"M2_REPO\", (pathlib.Path.home() / \".m2\").absolute())\r\n```\r\nIn other words: it looks also at the `M2_REPO` environment variable, before falling back to `~/.m2`.\r\n\r\nThis behavior in jgo is actually *wrong* because `M2_REPO` is supposed to point to the actual local Maven repository cache directory e.g. `~/.m2/repository`, *not* the parent `~/.m2`. So a fix is needed in jgo; see also scijava/jgo#99 which covers essentially the same issue for `M2_HOME`. Probably the `m2_path` function should be deprecated in favor of two functions `m2_home` and `m2_repo` instead.\r\n\r\nAnd then what scyjava should do is ask jgo—once jgo yields the correct answer—what its default should be, so that it matches.","author":{"url":"https://github.com/ctrueden","@type":"Person","name":"ctrueden"},"datePublished":"2024-11-29T20:48:36.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/69/scyjava/issues/69"}
| 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:6e79cef8-0ffa-0bd4-db09-0d5632224c78 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CA6C:6437B:5E7B108:7C805AB:696DAC04 |
| html-safe-nonce | d976f055575079e9ce480ec0ecff2b019d926c4fa05a16ab0dda8c3d22a37cc8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQTZDOjY0MzdCOjVFN0IxMDg6N0M4MDVBQjo2OTZEQUMwNCIsInZpc2l0b3JfaWQiOiI4MzAyMDc1ODYxMTM3MjA2Mjc2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 8dcd07f7a4bc34f736951dcf39e982b0d9ff29e70634683ffd946e5655223040 |
| hovercard-subject-tag | issue:2706134703 |
| 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/scijava/scyjava/69/issue_layout |
| twitter:image | https://opengraph.githubassets.com/316a85d81822c14e8f7399b42cb09300cb29c1c6cd1ebf7ba264ca00a9385ccf/scijava/scyjava/issues/69 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/316a85d81822c14e8f7399b42cb09300cb29c1c6cd1ebf7ba264ca00a9385ccf/scijava/scyjava/issues/69 |
| og:image:alt | As reported downstream in PyImageJ, scyjava sets the m2_repo to ~/.m2/repository by default. Although you can override it using scyjava.config.set_m2_repo, the upstream jgo library has a function j... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ctrueden |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4922b452d03cd8dbce479d866a11bc25b59ef6ee2da23aa9b0ddefa6bd4d0064 |
| turbo-cache-control | no-preview |
| go-import | github.com/scijava/scyjava git https://github.com/scijava/scyjava.git |
| octolytics-dimension-user_id | 1262770 |
| octolytics-dimension-user_login | scijava |
| octolytics-dimension-repository_id | 113442144 |
| octolytics-dimension-repository_nwo | scijava/scyjava |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 113442144 |
| octolytics-dimension-repository_network_root_nwo | scijava/scyjava |
| 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 | 7e5ae23c70136152637ceee8d6faceb35596ec46 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width