René's URL Explorer Experiment


Title: feat: 解析 Eclipse 服务器运行时和 JUnit 容器,老 Web 项目能跳进 Servlet/JSP/JUnit(0.0.2) by 1lck · Pull Request #8 · Lithe-IDEA/lithe-plugin-java-navigation · GitHub

Open Graph Title: feat: 解析 Eclipse 服务器运行时和 JUnit 容器,老 Web 项目能跳进 Servlet/JSP/JUnit(0.0.2) by 1lck · Pull Request #8 · Lithe-IDEA/lithe-plugin-java-navigation

X Title: feat: 解析 Eclipse 服务器运行时和 JUnit 容器,老 Web 项目能跳进 Servlet/JSP/JUnit(0.0.2) by 1lck · Pull Request #8 · Lithe-IDEA/lithe-plugin-java-navigation

Description: 为什么 补测老式 JSP/Eclipse 项目时发现:Eclipse 动态 Web 项目 javaee-blog(Servlet + JSP,没有 pom)1500 个随机位置只有 91.7% 能跳,124 个没跳到的绝大多数是 HttpServletRequest、getParameter、@WebServlet 这类 Servlet API,以及 JUnit 的 @Test。原因是这类项目的 .classpath 用容器(kind="con")声明这些库: Eclipse 在开发者机器上把容器解析成服务器和 JUnit 的 jar,所以 jar 不在仓库里,插件此前直接忽略了这些条目。 改动 解析 Eclipse 容器(新文件 internal/deps/containers.go) 服务器运行时容器 org.eclipse.jst.server.core.container/...:按运行时名字里的大版本判断包名,Tomcat 10+、Jetty 11+、WildFly 27+、GlassFish/Payara 6+、TomEE 9+ 用 jakarta.servlet,更早的用 javax.servlet。MyEclipse 的 J2EE 1.4 / Java EE 5–7 容器按 javax.servlet。org.eclipse.jst.j2ee.*(Web App Libraries、EAR 模块)不处理,WEB-INF/lib 本来就会读。 先找本机装的服务器:CATALINA_HOME/CATALINA_BASE、Homebrew、/opt、/usr/share、Windows Program Files、~/apache-tomcat-* 下的 lib,servlet-api.jar 里包名对得上(确认有 /http/HttpServlet.class)才用,加上同目录的 jsp-api.jar、el-api.jar。 没有装服务器时从本地 Maven 仓库取最新的、确实含该包名的 Servlet API 和 JSP API。javax 依次找 javax.servlet-api、servlet-api,最后才找 jakarta.servlet-api(它的 4.x 仍然是 javax 包,所以按 jar 内容判断,不按 artifact 名猜)。 JUnit 容器 JUNIT_CONTAINER/3|4|5:取本地仓库里对应大版本最新的 junit(4 再加 hamcrest-core)或 junit-jupiter-api,不写版本时按 4。 项目自己已经带了 Servlet 或 JUnit 的 jar(比如提交在 WEB-INF/lib)时不再补,避免同一个类出现两份。 没有构建文件的 Web 项目:仓库里有 WEB-INF/web.xml、但没有 pom.xml 和 Gradle 构建文件时(MyEclipse、NetBeans、直接部署到 Tomcat 的项目),同样补 Servlet/JSP API;web.xml 用 Jakarta EE 命名空间时取 jakarta.servlet。Maven 和 Gradle 项目的 Servlet 依赖由构建文件声明,不补。 不联网下载,本机都没有就跳过;这些 jar 只读。容器补出的 jar 用 Maven 坐标作为 Coord,所以副本按坐标放进 ${stateDir}/dependency-sources。 internal/deps/tree.go .classpath 里的 kind="con" 条目交给 container 记下,等树里的 jar 都列完后由 resolveContainers 补,所以只有项目自己没带时才补。 add 拆出 addAs(jar, sources, coord) bool,容器的 jar 用 Maven 坐标,并能知道是否真的加进去了(用于“取最新且能用的版本”的回退)。 文档和发布 README:功能表加“Eclipse 容器”一行,“怎么工作”说明解析顺序,实测表加 javaee-blog 和 OpenCms,限制里写明 .jsp 文件里还不能跳转。 plugin.json 版本 0.0.2,docs/releases/v0.0.2.md,release.yml 把 v0.0.2 列为预发布。 顺带修正 release.yml 预发布说明里过时的“暂不收录 Store”:0.0.1 已经按约定手工收录进 Lithe Store,改成说明条目手工提交、合并后可在插件市场安装。 测试 新增 internal/deps/containers_test.go: TestEclipseContainersResolveToLocalJars:Tomcat 7 → javax.servlet-api 4.0.1 + jsp-api 2.1 + junit 4.13.2 + hamcrest 1.3;Tomcat 10.1 → jakarta.servlet-api 6.0.0 + jakarta jsp-api 3.1.0(不会选到 javax 包的 jakarta.servlet-api 4.0.4)。 TestContainersDoNotDuplicateTheTreesJars:WEB-INF/lib 里已有 servlet-api 和 junit 时不补。 TestAnInstalledServerProvidesTheAPIs:装了包名对得上的 Tomcat 时用它的 lib,包名不对时跳过。 TestAWebAppWithoutABuildFileGetsTheServletAPI:只有 web.xml 的项目按命名空间取 javax/jakarta,Maven Web 项目不补。 TestServerRuntimeContainers:各服务器、版本和 MyEclipse 容器的判断。 go vet ./...、go test ./...、go test -race ./internal/deps ./internal/lsp 通过;node scripts/package.mjs --expect-tag v0.0.2 本地打包四个平台通过。 实测(Apple M4,cmd/nav-bench,种子 2,1500 个位置,main 4bc54ea 对比本分支) 项目 改动前 改动后 跳转 p50 / p99 第一次跳转 内存(物理占用) javaee-blog(Eclipse 动态 Web,Tomcat 7 容器,没有 pom) 91.7% 100% 0.08 ms / 0.94 ms 34 ms 17 MiB OpenCms(Gradle,JSP CMS) 94.1% 94.1% 0.20 ms / 2.0 ms 0.13 s 54 MiB javaee-blog 新命中的目标逐个看过:Servlet 的类型和方法都落在 javax.servlet-api 4.0.1 源码对应的声明行,@Test 落在 JUnit 4.13.2 的 org/junit/Test.java。OpenCms 的未命中是没在本地构建过的 Gradle 依赖、全限定名里的包名段和 .length,与容器无关。 没做的 .jsp 文件本身还不能跳转(插件只声明 java),JSP 脚本、EL 和标签库的跳转是单独的大功能,README 限制里已写明。 🤖 Generated with Claude Code

Open Graph Description: 为什么 补测老式 JSP/Eclipse 项目时发现:Eclipse 动态 Web 项目 javaee-blog(Servlet + JSP,没有 pom)1500 个随机位置只有 91.7% 能跳,124 个没跳到的绝大多数是 HttpServletRequest、getParameter、@WebServlet 这类 Servlet API,以及 JUnit 的 @Test。原因是这类项...

X Description: 为什么 补测老式 JSP/Eclipse 项目时发现:Eclipse 动态 Web 项目 javaee-blog(Servlet + JSP,没有 pom)1500 个随机位置只有 91.7% 能跳,124 个没跳到的绝大多数是 HttpServletRequest、getParameter、@WebServlet 这类 Servlet API,以及 JUnit 的 @Test。原因是这类项...

Opengraph URL: https://github.com/Lithe-IDEA/lithe-plugin-java-navigation/pull/8

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.112.4

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:82d03a23-8da8-580e-6faf-506334c6be4f
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idAD1A:110ABE:1831EBB:215D52B:6B071395
html-safe-nonce460e9e19f9ed1f45c0b5e761d695c9274d2a23ae7cbde584023fbedd36a166a8
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRDFBOjExMEFCRToxODMxRUJCOjIxNUQ1MkI6NkIwNzEzOTUiLCJ2aXNpdG9yX2lkIjoiMjIzMjM1NTk2NTk1NTkzNzE3MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmaced0b79825026bb870acc5872696b2354e3a4951d28ba5bf225732675bf0eaaba
hovercard-subject-tagpull_request:5290988020
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-java-navigation/pull/8/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为什么 补测老式 JSP/Eclipse 项目时发现:Eclipse 动态 Web 项目 javaee-blog(Servlet + JSP,没有 pom)1500 个随机位置只有 91.7% 能跳,124 个没跳到的绝大多数是 HttpServletRequest、getParameter、@WebServlet 这类 Servlet API,以及 JUnit 的 @Test。原因是这类项...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None9aaa1abe1aaef39a8543ab08df7a776c3243275815d741d29afa7b02148ca05e
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/Lithe-IDEA/lithe-plugin-java-navigation git https://github.com/Lithe-IDEA/lithe-plugin-java-navigation.git
octolytics-dimension-user_id340144206
octolytics-dimension-user_loginLithe-IDEA
octolytics-dimension-repository_id1455228792
octolytics-dimension-repository_nwoLithe-IDEA/lithe-plugin-java-navigation
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1455228792
octolytics-dimension-repository_network_root_nwoLithe-IDEA/lithe-plugin-java-navigation
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
release44c43783771de038e2c401dd343799000e8d1253
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/Lithe-IDEA/lithe-plugin-java-navigation/pull/8/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FLithe-IDEA%2Flithe-plugin-java-navigation%2Fpull%2F8%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-java-navigation%2Fpull%2F8%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-java-navigation
Reloadhttps://github.com/Lithe-IDEA/lithe-plugin-java-navigation/pull/8/files
Reloadhttps://github.com/Lithe-IDEA/lithe-plugin-java-navigation/pull/8/files
Reloadhttps://github.com/Lithe-IDEA/lithe-plugin-java-navigation/pull/8/files
Lithe-IDEAhttps://github.com/Lithe-IDEA
lithe-plugin-java-navigationhttps://github.com/Lithe-IDEA/lithe-plugin-java-navigation
Codehttps://github.com/Lithe-IDEA/lithe-plugin-java-navigation
Issues3 (3)https://github.com/Lithe-IDEA/lithe-plugin-java-navigation/issues
Pull requestshttps://github.com/Lithe-IDEA/lithe-plugin-java-navigation/pulls
Actionshttps://github.com/Lithe-IDEA/lithe-plugin-java-navigation/actions
Projectshttps://github.com/Lithe-IDEA/lithe-plugin-java-navigation/projects
Security and qualityhttps://github.com/Lithe-IDEA/lithe-plugin-java-navigation/security
Insightshttps://github.com/Lithe-IDEA/lithe-plugin-java-navigation/insights
Sign up for GitHub https://github.com/signup?return_to=%2FLithe-IDEA%2Flithe-plugin-java-navigation%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-java-navigation%2Fissues%2Fnew%2Fchoose
1lckhttps://github.com/1lck
mainhttps://github.com/Lithe-IDEA/lithe-plugin-java-navigation/tree/main
feat/eclipse-classpath-containershttps://github.com/Lithe-IDEA/lithe-plugin-java-navigation/tree/feat/eclipse-classpath-containers
Conversation 0 https://github.com/Lithe-IDEA/lithe-plugin-java-navigation/pull/8
Commits 1 https://github.com/Lithe-IDEA/lithe-plugin-java-navigation/pull/8/commits
Checks 3 https://github.com/Lithe-IDEA/lithe-plugin-java-navigation/pull/8/checks
Files changed https://github.com/Lithe-IDEA/lithe-plugin-java-navigation/pull/8/files
Please reload this pagehttps://github.com/Lithe-IDEA/lithe-plugin-java-navigation/pull/8/files
feat: 解析 Eclipse 服务器运行时和 JUnit 容器,老 Web 项目能跳进 Servlet/JSP/JUnit(0.0.2) https://github.com/Lithe-IDEA/lithe-plugin-java-navigation/pull/8/files#top
Show all changes 1 commit https://github.com/Lithe-IDEA/lithe-plugin-java-navigation/pull/8/files
1729009 feat: resolve Eclipse server runtime and JUnit containers to local jars 1lck Nov 13, 2026 https://github.com/Lithe-IDEA/lithe-plugin-java-navigation/pull/8/commits/1729009b75b91235862918a197c26ffbe951305c
Clear filters https://github.com/Lithe-IDEA/lithe-plugin-java-navigation/pull/8/files
Please reload this pagehttps://github.com/Lithe-IDEA/lithe-plugin-java-navigation/pull/8/files
Please reload this pagehttps://github.com/Lithe-IDEA/lithe-plugin-java-navigation/pull/8/files
release.yml https://github.com/Lithe-IDEA/lithe-plugin-java-navigation/pull/8/files#diff-87db21a973eed4fef5f32b267aa60fcee5cbdf03c67fafdc2a9b553bb0b15f34
README.md https://github.com/Lithe-IDEA/lithe-plugin-java-navigation/pull/8/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5
v0.0.2.md https://github.com/Lithe-IDEA/lithe-plugin-java-navigation/pull/8/files#diff-6c623162eb5b8b1c58d704e8598552114faf61cb3e1709da17bdc4a9ebc8b4d8
containers.go https://github.com/Lithe-IDEA/lithe-plugin-java-navigation/pull/8/files#diff-14568dcde90fa3941517f74da0dddb91f1cfa8aed98c93cb7debe30463f65770
containers_test.go https://github.com/Lithe-IDEA/lithe-plugin-java-navigation/pull/8/files#diff-2c137e97a805086a6db36570402fe8f7de711fdb55e8efdfc855f4526b5f628d
tree.go https://github.com/Lithe-IDEA/lithe-plugin-java-navigation/pull/8/files#diff-bee2905a4d35c37dc3bfede91e52c69049d13b0fc4e911deb60c5fb751ca8153
plugin.json https://github.com/Lithe-IDEA/lithe-plugin-java-navigation/pull/8/files#diff-4aa4bc3fe8929da950a91fdabe46ada1ce2446aab53a7f2db75a3d1f3e458b97
.github/workflows/release.ymlhttps://github.com/Lithe-IDEA/lithe-plugin-java-navigation/pull/8/files#diff-87db21a973eed4fef5f32b267aa60fcee5cbdf03c67fafdc2a9b553bb0b15f34
View file https://github.com/Lithe-IDEA/lithe-plugin-java-navigation/blob/1729009b75b91235862918a197c26ffbe951305c/.github/workflows/release.yml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/Lithe-IDEA/lithe-plugin-java-navigation/pull/8/{{ revealButtonHref }}
https://github.com/Lithe-IDEA/lithe-plugin-java-navigation/pull/8/files#diff-87db21a973eed4fef5f32b267aa60fcee5cbdf03c67fafdc2a9b553bb0b15f34
https://github.com/Lithe-IDEA/lithe-plugin-java-navigation/pull/8/files#diff-87db21a973eed4fef5f32b267aa60fcee5cbdf03c67fafdc2a9b553bb0b15f34
https://github.com/Lithe-IDEA/lithe-plugin-java-navigation/pull/8/files#diff-87db21a973eed4fef5f32b267aa60fcee5cbdf03c67fafdc2a9b553bb0b15f34
README.mdhttps://github.com/Lithe-IDEA/lithe-plugin-java-navigation/pull/8/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5
View file https://github.com/Lithe-IDEA/lithe-plugin-java-navigation/blob/1729009b75b91235862918a197c26ffbe951305c/README.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/Lithe-IDEA/lithe-plugin-java-navigation/pull/8/{{ revealButtonHref }}
https://github.com/Lithe-IDEA/lithe-plugin-java-navigation/pull/8/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5
https://github.com/Lithe-IDEA/lithe-plugin-java-navigation/pull/8/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5
https://github.com/Lithe-IDEA/lithe-plugin-java-navigation/pull/8/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5
https://github.com/Lithe-IDEA/lithe-plugin-java-navigation/pull/8/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5
https://github.com/Lithe-IDEA/lithe-plugin-java-navigation/pull/8/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5
https://github.com/Lithe-IDEA/lithe-plugin-java-navigation/pull/8/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5
docs/releases/v0.0.2.mdhttps://github.com/Lithe-IDEA/lithe-plugin-java-navigation/pull/8/files#diff-6c623162eb5b8b1c58d704e8598552114faf61cb3e1709da17bdc4a9ebc8b4d8
View file https://github.com/Lithe-IDEA/lithe-plugin-java-navigation/blob/1729009b75b91235862918a197c26ffbe951305c/docs/releases/v0.0.2.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/Lithe-IDEA/lithe-plugin-java-navigation/pull/8/{{ revealButtonHref }}
internal/deps/containers.gohttps://github.com/Lithe-IDEA/lithe-plugin-java-navigation/pull/8/files#diff-14568dcde90fa3941517f74da0dddb91f1cfa8aed98c93cb7debe30463f65770
View file https://github.com/Lithe-IDEA/lithe-plugin-java-navigation/blob/1729009b75b91235862918a197c26ffbe951305c/internal/deps/containers.go
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/Lithe-IDEA/lithe-plugin-java-navigation/pull/8/{{ revealButtonHref }}
Please reload this pagehttps://github.com/Lithe-IDEA/lithe-plugin-java-navigation/pull/8/files
Please reload this pagehttps://github.com/Lithe-IDEA/lithe-plugin-java-navigation/pull/8/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.