Title: test: scripts/test.mjs 的主模型用例读取本机 ~/.m2/settings.xml,本机有 profile 时失败 · Issue #36 · Lithe-IDEA/lithe-plugin-maven · GitHub
Open Graph Title: test: scripts/test.mjs 的主模型用例读取本机 ~/.m2/settings.xml,本机有 profile 时失败 · Issue #36 · Lithe-IDEA/lithe-plugin-maven
X Title: test: scripts/test.mjs 的主模型用例读取本机 ~/.m2/settings.xml,本机有 profile 时失败 · Issue #36 · Lithe-IDEA/lithe-plugin-maven
Description: 现象 在本机 ~/.m2/settings.xml 里定义了 profile 的机器上运行 node scripts/test.mjs,profiles become choices of the Profiles option 会失败: + actual - expected [ + 'ali', 'ci', + 'nexus', 'release' ] at scripts/test.mjs:243 原因 反应堆主模型命令没有像 readProfileModel 那...
Open Graph Description: 现象 在本机 ~/.m2/settings.xml 里定义了 profile 的机器上运行 node scripts/test.mjs,profiles become choices of the Profiles option 会失败: + actual - expected [ + 'ali', 'ci', + 'nexus', 'release' ] at scripts/test.m...
X Description: 现象 在本机 ~/.m2/settings.xml 里定义了 profile 的机器上运行 node scripts/test.mjs,profiles become choices of the Profiles option 会失败: + actual - expected [ + 'ali', 'ci', + 'nexus', '...
Opengraph URL: https://github.com/Lithe-IDEA/lithe-plugin-maven/issues/36
X: @github
Domain: github.com
IPv4 address: 140.82.113.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"test: scripts/test.mjs 的主模型用例读取本机 ~/.m2/settings.xml,本机有 profile 时失败","articleBody":"## 现象\n\n在本机 `~/.m2/settings.xml` 里定义了 profile 的机器上运行 `node scripts/test.mjs`,`profiles become choices of the Profiles option` 会失败:\n\n```\n+ actual - expected\n [\n+ 'ali',\n 'ci',\n+ 'nexus',\n 'release'\n ]\n at scripts/test.mjs:243\n```\n\n## 原因\n\n反应堆主模型命令没有像 `readProfileModel` 那样传 `-gs \u003c空文件> -s \u003c空文件>`,Maven 会读取运行者的用户设置和全局设置。设置里的 profile 进入了 `optionValues.profiles`,所以结果取决于运行机器。CI 上没有用户设置,问题没有暴露。\n\n## 期望\n\n主模型(以及其他读取模型的用例)改用测试自带的空设置文件,让结果和机器无关。\n\n在 feat/report-effective-paths 开发中本地验证时发现,那里只记录,没有一起修改。","author":{"url":"https://github.com/1lck","@type":"Person","name":"1lck"},"datePublished":"2026-11-19T12:40:39Z","url":"https://github.com/Lithe-IDEA/lithe-plugin-maven/issues/36"}
| 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:1c047926-5b31-611b-e049-ab27a83e0a02 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BDE8:3EEC3:2DF0B81:400677A:6B072297 |
| html-safe-nonce | 2b1e48f28049f9e5d4b4412cdcc5dddf40ddac39855ffcefab491092a183b8a5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCREU4OjNFRUMzOjJERjBCODE6NDAwNjc3QTo2QjA3MjI5NyIsInZpc2l0b3JfaWQiOiI4MTM1ODE4NjAwNTUzODQ5NDk1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 33e4473c42dbdced8b21e82846320445966ea42af0c3051f319f4ec1117d2904 |
| hovercard-subject-tag | issue:6489794036 |
| 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/Lithe-IDEA/lithe-plugin-maven/36/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3c2a584a98e4b0435c7369706cebb2dc0086461920187e0f693ea3688222a205/Lithe-IDEA/lithe-plugin-maven/issues/36 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3c2a584a98e4b0435c7369706cebb2dc0086461920187e0f693ea3688222a205/Lithe-IDEA/lithe-plugin-maven/issues/36 |
| og:image:alt | 现象 在本机 ~/.m2/settings.xml 里定义了 profile 的机器上运行 node scripts/test.mjs,profiles become choices of the Profiles option 会失败: + actual - expected [ + 'ali', 'ci', + 'nexus', 'release' ] at scripts/test.m... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | 1lck |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5a20fe9aa5e45c6df9328a5ec3f167a7805856126d8bf72d810541ca01962ef9 |
| turbo-cache-control | no-preview |
| go-import | github.com/Lithe-IDEA/lithe-plugin-maven git https://github.com/Lithe-IDEA/lithe-plugin-maven.git |
| octolytics-dimension-user_id | 340144206 |
| octolytics-dimension-user_login | Lithe-IDEA |
| octolytics-dimension-repository_id | 1424417765 |
| octolytics-dimension-repository_nwo | Lithe-IDEA/lithe-plugin-maven |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1424417765 |
| octolytics-dimension-repository_network_root_nwo | Lithe-IDEA/lithe-plugin-maven |
| 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 | 6ce961d9a663a99bc4bcab9fd6ac5cca54bd6fcc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width