René's URL Explorer Experiment


Title: fix(run): 支持自定义 Boot 元注解、provided 类路径、构建根 cwd 与 Java 21+ main by 1lck · Pull Request #39 · Lithe-IDEA/lithe-plugin-maven · GitHub

Open Graph Title: fix(run): 支持自定义 Boot 元注解、provided 类路径、构建根 cwd 与 Java 21+ main by 1lck · Pull Request #39 · Lithe-IDEA/lithe-plugin-maven

X Title: fix(run): 支持自定义 Boot 元注解、provided 类路径、构建根 cwd 与 Java 21+ main by 1lck · Pull Request #39 · Lithe-IDEA/lithe-plugin-maven

Description: 关联 Issue / Linked issue Refs 1lck/Lithe-IDEA#2147(补齐 Maven 多模块默认以构建根为工作目录的一半修复,配合桌面端运行配置保存修复) 改动说明 / Changes 多模块默认工作目录回退到构建根(1lck/Lithe-IDEA#2147) provider/.../RunPreparation.java:workingDirectory 默认回退从 request.projectPath 改为 request.root(工作区构建根 / 聚合根),与 IntelliJ IDEA 多模块项目习惯一致;用户通过 launchOptions.workingDirectory 显式指定的目录仍然优先覆盖。 扩展 Spring Boot 组合注解与跨模块自定义 @interface 元注解识别 extension/.../Applications.java、ModelExport.java、RunExport.java: Applications.customBootAnnotations 在有限文件/字节配额内扫描反应堆所有模块的编译源码根,通过定点闭包传递识别基于 @SpringBootApplication、@SpringCloudApplication 或 @EnableAutoConfiguration 定义的自定义 @interface 元注解。 Applications.annotatedClass 同时识别 @SpringBootApplication、@SpringCloudApplication、跨模块自定义 Boot @interface(严格尊重 import / 同包作用域解析),以及带有效非 private/非 abstract main 方法的 @EnableAutoConfiguration 类;永远不把 @interface 注解定义本身列为 runnable target。 RunExport 同步补充 SpringCloudApplication、EnableAutoConfiguration 与自定义 @interface JVM 字节码描述符识别(在编译产物存在多个 main 时正确优选 Boot 启动类),并在类头显式排除 @interface(ACC_ANNOTATION)。 Spring Boot 与 WAR 运行纳入 provided 作用域依赖 extension/.../LitheLifecycleParticipant.java、RunExport.java 与 provider/.../RunPreparation.java: 新增可选属性 lithe.runIncludeProvided。RunExport.shouldIncludeProvided 在显式指定时以其为准,否则对 packaging == "war" 或配置了 spring-boot-maven-plugin 的模块自动包含 provided 作用域运行时类路径(仍排除 test 并去重)。 RunPreparation 在准备 spring-boot 目标且用户未通过 optionArguments 显式覆盖 -Dlithe.runIncludeProvided 时默认传 -Dlithe.runIncludeProvided=true,使内嵌容器或以 provided 引入的 API/容器依赖不再启动报 ClassNotFoundException/NoClassDefFoundError。 支持 Java 21+/25 main() 入口与紧凑源文件识别 provider/.../RunEntrypoints.java:支持无参 void main()、实例 void main(String[])、static void main(String...)、throws 声明及无 package/class 头的 Java 21+/25 紧凑源文件(CompactMain.java 等),并拒绝 private/abstract/接口 default 方法与 @interface。 extension/.../RunExport.java:字节码层面识别非 private/非 abstract 的 main()V 与 main([Ljava/lang/String;)V(接口与抽象类仍要求 ACC_STATIC),排除 @interface 类文件。 文档与集成测试 更新 README.md 与 docs/feature-matrix.md 对入口识别、provided 类路径与工作目录默认值的说明。 更新 scripts/test.mjs:修正多模块服务默认 workingDirectory 为 "." 并验证显式覆盖,新增 verifyExtendedBootAndProvided 覆盖跨模块传递自定义 @interface、@SpringCloudApplication、@EnableAutoConfiguration(含/不含 main)、provided 依赖默认包含及 -Dlithe.runIncludeProvided=false 覆盖、普通 jar 排除 provided、以及 Java 21+ void main() / 紧凑源文件(文本与 Java 8 编译字节码)与 private main() 拒绝。 验证 / Verification 检查项 环境 结果 node scripts/sdk/verify-sdk.mjs macOS arm64 通过 node scripts/package.mjs macOS arm64 / JDK 17 (--release 8) / Maven 3.9.14 通过,生成全平台可移植归档 node scripts/test-process.mjs macOS arm64 9/9 通过 node --test --test-timeout=60000 scripts/package/*.test.mjs scripts/compiler/process.test.mjs macOS arm64 5 passed, 1 skipped (Windows-only batch test) node scripts/compiler/test.mjs macOS arm64 5/5 通过 MAVEN_ARGS="-s " node scripts/test.mjs macOS arm64 / JDK 17 / Maven 3.9.14 全部集成检查通过 注:上述 Java 代码全部严格兼容 Java 8 编译与运行(CI Maven 3.6.3 + Java 8 矩阵校验将在本 PR CI 运行)。

Open Graph Description: 关联 Issue / Linked issue Refs 1lck/Lithe-IDEA#2147(补齐 Maven 多模块默认以构建根为工作目录的一半修复,配合桌面端运行配置保存修复) 改动说明 / Changes 多模块默认工作目录回退到构建根(1lck/Lithe-IDEA#2147) provider/.../RunPreparation.java:workingDirect...

X Description: 关联 Issue / Linked issue Refs 1lck/Lithe-IDEA#2147(补齐 Maven 多模块默认以构建根为工作目录的一半修复,配合桌面端运行配置保存修复) 改动说明 / Changes 多模块默认工作目录回退到构建根(1lck/Lithe-IDEA#2147) provider/.../RunPreparation.java:workingDirect...

Opengraph URL: https://github.com/Lithe-IDEA/lithe-plugin-maven/pull/39

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.112.3

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:f64a87d4-fae8-93e8-b4e3-70860ad804ed
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idE27C:1E92DF:23796D:312D27:6B0743ED
html-safe-noncef6e20a81c9ea1a8c845046525d30dc9ff48199b9109a61b3bb6d1f340b186599
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMjdDOjFFOTJERjoyMzc5NkQ6MzEyRDI3OjZCMDc0M0VEIiwidmlzaXRvcl9pZCI6IjU0Nzc1NjM4ODE0ODI2NTk2NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac6e0748a7fca21844ea9baf22e9dc573e9324610eacb6036254c9ec254174b46e
hovercard-subject-tagpull_request:5408017177
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/Lithe-IDEA/lithe-plugin-maven/pull/39/files
twitter:imagehttps://avatars.githubusercontent.com/u/159525154?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/159525154?s=400&v=4
og:image:alt关联 Issue / Linked issue Refs 1lck/Lithe-IDEA#2147(补齐 Maven 多模块默认以构建根为工作目录的一半修复,配合桌面端运行配置保存修复) 改动说明 / Changes 多模块默认工作目录回退到构建根(1lck/Lithe-IDEA#2147) provider/.../RunPreparation.java:workingDirect...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonee906c59266d83416af9bcc8b61b9a96e70a3a84a066bd24f6671c193dd134a04
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/Lithe-IDEA/lithe-plugin-maven git https://github.com/Lithe-IDEA/lithe-plugin-maven.git
octolytics-dimension-user_id340144206
octolytics-dimension-user_loginLithe-IDEA
octolytics-dimension-repository_id1424417765
octolytics-dimension-repository_nwoLithe-IDEA/lithe-plugin-maven
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1424417765
octolytics-dimension-repository_network_root_nwoLithe-IDEA/lithe-plugin-maven
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasea8418b8cd1f6ecc99bee02e3f7dde540702dd08c
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/Lithe-IDEA/lithe-plugin-maven/pull/39/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FLithe-IDEA%2Flithe-plugin-maven%2Fpull%2F39%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
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
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://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/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FLithe-IDEA%2Flithe-plugin-maven%2Fpull%2F39%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=Lithe-IDEA%2Flithe-plugin-maven
Reloadhttps://github.com/Lithe-IDEA/lithe-plugin-maven/pull/39/files
Reloadhttps://github.com/Lithe-IDEA/lithe-plugin-maven/pull/39/files
Reloadhttps://github.com/Lithe-IDEA/lithe-plugin-maven/pull/39/files
Lithe-IDEAhttps://github.com/Lithe-IDEA
lithe-plugin-mavenhttps://github.com/Lithe-IDEA/lithe-plugin-maven
Codehttps://github.com/Lithe-IDEA/lithe-plugin-maven
Issues1 (1)https://github.com/Lithe-IDEA/lithe-plugin-maven/issues
Pull requestshttps://github.com/Lithe-IDEA/lithe-plugin-maven/pulls
Actionshttps://github.com/Lithe-IDEA/lithe-plugin-maven/actions
Projectshttps://github.com/Lithe-IDEA/lithe-plugin-maven/projects
Security and qualityhttps://github.com/Lithe-IDEA/lithe-plugin-maven/security
Insightshttps://github.com/Lithe-IDEA/lithe-plugin-maven/insights
Sign up for GitHub https://github.com/signup?return_to=%2FLithe-IDEA%2Flithe-plugin-maven%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2FLithe-IDEA%2Flithe-plugin-maven%2Fissues%2Fnew%2Fchoose
1lckhttps://github.com/1lck
mainhttps://github.com/Lithe-IDEA/lithe-plugin-maven/tree/main
fix/startup-detection-cwd-and-providedhttps://github.com/Lithe-IDEA/lithe-plugin-maven/tree/fix/startup-detection-cwd-and-provided
Conversation 0 https://github.com/Lithe-IDEA/lithe-plugin-maven/pull/39
Commits 1 https://github.com/Lithe-IDEA/lithe-plugin-maven/pull/39/commits
Checks 7 https://github.com/Lithe-IDEA/lithe-plugin-maven/pull/39/checks
Files changed https://github.com/Lithe-IDEA/lithe-plugin-maven/pull/39/files
Please reload this pagehttps://github.com/Lithe-IDEA/lithe-plugin-maven/pull/39/files
fix(run): 支持自定义 Boot 元注解、provided 类路径、构建根 cwd 与 Java 21+ main https://github.com/Lithe-IDEA/lithe-plugin-maven/pull/39/files#top
Show all changes 1 commit https://github.com/Lithe-IDEA/lithe-plugin-maven/pull/39/files
51abe8f fix(run): 支持自定义 Boot 元注解、provided 类路径、构建根 cwd 与 Java 21+ main (#2147) 1lck Nov 20, 2026 https://github.com/Lithe-IDEA/lithe-plugin-maven/pull/39/commits/51abe8f47283aa4568ca945972826ade20cfa786
Clear filters https://github.com/Lithe-IDEA/lithe-plugin-maven/pull/39/files
Please reload this pagehttps://github.com/Lithe-IDEA/lithe-plugin-maven/pull/39/files
Please reload this pagehttps://github.com/Lithe-IDEA/lithe-plugin-maven/pull/39/files
README.md https://github.com/Lithe-IDEA/lithe-plugin-maven/pull/39/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5
feature-matrix.md https://github.com/Lithe-IDEA/lithe-plugin-maven/pull/39/files#diff-230cb4405678cb67c93fbdcd7658be5c10575acce6ff9051e59d28c27c7f73b0
Applications.java https://github.com/Lithe-IDEA/lithe-plugin-maven/pull/39/files#diff-1179c67c55254eaa7e7505459406be8c055c96de4ab0eea4fb00635df48b674e
LitheLifecycleParticipant.java https://github.com/Lithe-IDEA/lithe-plugin-maven/pull/39/files#diff-c2b5a16bdbfed17d646194c7c43c576f1e43e36fcf3015fff55ce489eae2fa37
ModelExport.java https://github.com/Lithe-IDEA/lithe-plugin-maven/pull/39/files#diff-4f081f6c540020868d34f90551af252211c0be16c5a23b3cdd09ba5b24d59097
RunExport.java https://github.com/Lithe-IDEA/lithe-plugin-maven/pull/39/files#diff-a5839db586aeeb1c8a52b842b6668b9b0af322088506e28d9b48d3bc1855bba3
RunEntrypoints.java https://github.com/Lithe-IDEA/lithe-plugin-maven/pull/39/files#diff-9727cba21b9c07ffccb0d052fb0cfa2b9c4533c43395d961313c7302c0de7fdc
RunPreparation.java https://github.com/Lithe-IDEA/lithe-plugin-maven/pull/39/files#diff-b67253b9e06bab1fa09994a4f134050b5073375a86654325e17122efdd5ae797
test.mjs https://github.com/Lithe-IDEA/lithe-plugin-maven/pull/39/files#diff-2f82d6fd8f8923ef132bfc97ea3e6ae56d509a6c50a15612470f2795559b7f6d
README.mdhttps://github.com/Lithe-IDEA/lithe-plugin-maven/pull/39/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5
View file https://github.com/Lithe-IDEA/lithe-plugin-maven/blob/51abe8f47283aa4568ca945972826ade20cfa786/README.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/Lithe-IDEA/lithe-plugin-maven/pull/39/{{ revealButtonHref }}
https://github.com/Lithe-IDEA/lithe-plugin-maven/pull/39/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5
https://github.com/Lithe-IDEA/lithe-plugin-maven/pull/39/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5
https://github.com/Lithe-IDEA/lithe-plugin-maven/pull/39/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5
docs/feature-matrix.mdhttps://github.com/Lithe-IDEA/lithe-plugin-maven/pull/39/files#diff-230cb4405678cb67c93fbdcd7658be5c10575acce6ff9051e59d28c27c7f73b0
View file https://github.com/Lithe-IDEA/lithe-plugin-maven/blob/51abe8f47283aa4568ca945972826ade20cfa786/docs/feature-matrix.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/Lithe-IDEA/lithe-plugin-maven/pull/39/{{ revealButtonHref }}
https://github.com/Lithe-IDEA/lithe-plugin-maven/pull/39/files#diff-230cb4405678cb67c93fbdcd7658be5c10575acce6ff9051e59d28c27c7f73b0
https://github.com/Lithe-IDEA/lithe-plugin-maven/pull/39/files#diff-230cb4405678cb67c93fbdcd7658be5c10575acce6ff9051e59d28c27c7f73b0
Please reload this pagehttps://github.com/Lithe-IDEA/lithe-plugin-maven/pull/39/files
Please reload this pagehttps://github.com/Lithe-IDEA/lithe-plugin-maven/pull/39/files
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

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlno-cache

Viewport: width=device-width


URLs of crawlers that visited me.