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: github.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:4c5a27bb-300f-7d57-0037-6ecfc3e36f14 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8D0E:327857:2B8879:3B9F6C:696A671E |
| html-safe-nonce | e9ecdf57af104c10b84a03180e2786910915e5a6cd07a7a4e3d8b8b9d0941eb0 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RDBFOjMyNzg1NzoyQjg4Nzk6M0I5RjZDOjY5NkE2NzFFIiwidmlzaXRvcl9pZCI6IjEwNjc1MDczODQzODU2OTM0NzAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | e9646a91c92faafec57492f9ffa45e6a353ab2e9ba3af42f3c816b7fc8de5232 |
| 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 | 9b7735a184970dd9333b2cbe036c8f3c0a9108c64aaa93827c5a64fc70993392 |
| 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 | 87cbd411c2982752221b5751d583a515b23bf5fa |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width