mvnlog --web: local HTTP server for interactive build report viewer - #12885
Draft
gnodet wants to merge 1 commit into
Draft
mvnlog --web: local HTTP server for interactive build report viewer#12885gnodet wants to merge 1 commit into
gnodet wants to merge 1 commit into
Conversation
gnodet
force-pushed
the
feature/mvnlog-web
branch
from
August 28, 2026 10:36
a9795c8 to
bbad68c
Compare
… viewer Adds a --web flag to mvnlog that starts a local HTTP server serving an interactive single-page build report viewer. The viewer reads from the existing BuildReportCollector JSON format (flat top-level fields, ISO timestamps and durations, per-module/per-mojo output arrays). Features: - Loopback-only binding for security (localhost only) - Path traversal protection with regex + normalize() - Auto-open browser on supported desktops - Gantt chart timeline of module builds - Per-mojo execution details with inline log viewing - Problems table with search, filter, and sort - Failure details with stack trace highlighting - Virtual-scrolling full build log viewer - Light/dark theme via prefers-color-scheme - 30-minute inactivity auto-shutdown - Configurable port via --port flag - System font stack (no external CDN dependencies) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
gnodet
force-pushed
the
feature/mvnlog-web
branch
from
August 28, 2026 11:18
bbad68c to
f9939a9
Compare
elharo
requested changes
Aug 28, 2026
elharo
left a comment
Contributor
There was a problem hiding this comment.
static HTML should be enough. The issue specifically does not ask for a local web server. This is a lot of extra dependencies with additional maintenance burden and security surface. I'm not convinced this carries its weight.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds web-based build report viewing to
mvnlog(addresses #12645), rebased cleanly on thefeature/mvnlogPR chain (#12694 → #12695 → #12697 → #12698 → #12699):--webflag starts a local HTTP server bound to loopback only (not 0.0.0.0)--portconfigures the server port (default 8080, auto-fallback to random available port)normalize().startsWith()checksCountDownLatchafter 30 minutes of inactivity (noSystem.exit())-Dmaven.build.report.skip=truetarget/build-reports/withbuild-report-latest.jsoncopyReview feedback addressed (from #12716)
LogEventAPI (event.level().name(),event.timestamp(),event.message()) instead of string parsingCollections.synchronizedList(new ArrayList<>())instead ofCopyOnWriteArrayListfor performance@since 4.0.0→@since 4.1.0inpackage-info.javalastRequestTimeis an instance field (not static)mojoFinished(ExecutionEvent, String)toBuildEventListenerinterfaceFiles changed
LogOptions.java(addedweb(),port()),package-info.java(fixed@since)CommonsCliLogOptions.java,LogInvoker.java,report.htmlBuildEventListener.java,BuildReportEventListener.java,LoggingExecutionListener.java,SimpleBuildEventListener.javaMachineBuildEventListenerTest.java,RichBuildEventListenerTest.javaTest plan
mvn verify -pl impl/maven-cli -am -DskipTestscompiles cleanly (verified locally)mvn test -pl impl/maven-cli -ampasses (4 pre-existing MavenInvokerTest failures unrelated to this PR)mvnlog --webstarts HTTP server on localhost:8080mvnlog --web --port 9090uses custom port-Dmaven.build.report.skip=trueprevents report generationtarget/build-reports/🤖 Generated with Claude Code