Skip to content

Fix the Maven interpolation example in the site docs - #112

Merged
slachiewicz merged 1 commit into
masterfrom
agent/sweep-site-example
Nov 18, 2026
Merged

slachiewicz merged 1 commit into
masterfrom
agent/sweep-site-example

Conversation

@slachiewicz

Copy link
Copy Markdown
Member

Why

The site's Maven example could not compile: PrefixedValueSourceWrapper takes (ValueSource, List<String>, boolean) but the example passed the prefix list first, and PropertyBasedValueSource does not exist. The FAQ menu item was commented out with no faq.html behind it.

Area

Site sources only; no Java, test, or build files changed.

Changes

  • Swap the two PrefixedValueSourceWrapper constructor calls to put the value source first and the prefix list second.
  • Replace the nonexistent PropertyBasedValueSource with PropertiesBasedValueSource.
  • Remove the commented-out FAQ menu item from site.xml.

Verification

  • JAVA_HOME=/Library/Java/JavaVirtualMachines/zulu-21.jdk/Contents/Home mvn -B -o spotless:apply — BUILD SUCCESS
  • JAVA_HOME=/Library/Java/JavaVirtualMachines/zulu-21.jdk/Contents/Home mvn -B -o spotless:check — BUILD SUCCESS
  • JAVA_HOME=/Library/Java/JavaVirtualMachines/zulu-21.jdk/Contents/Home mvn -B -o test — BUILD SUCCESS; Tests run: 138, Failures: 0, Errors: 0, Skipped: 0
  • Surefire per-class comparison (master baseline vs branch): 138 -> 138 tests, 0 classes lost tests.
  • Corrected example transcribed to a scratch class and compiled with JDK 21 javac -cp target/classes — compiled OK.

The PrefixedValueSourceWrapper arguments were reversed relative to the (ValueSource, List, boolean) constructor, and PropertyBasedValueSource does not exist, so the example could not compile. Also drop the commented-out FAQ menu item, which has no faq page behind it.
@slachiewicz slachiewicz added the documentation Improvements or additions to documentation label Nov 18, 2026
@slachiewicz
slachiewicz merged commit 2a5ac8e into master Nov 18, 2026
16 of 17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant