GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Fix documentation issues across site docs by elharo · Pull Request #2010 · apache/maven-resolver

Conversation

@elharo

@elharo elharo commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

Fixes multiple issues across 14 site documentation files:

  • creating-a-repository-system-session.md: Fix broken Java code (undefined variable, wrong class reference)
  • deployment.md: Fix heading level, fix BasicRepositoryConnectorFactory/BasicRepositoryConnector link mismatch
  • local-repository.md: Fix shell code examples (language tags, missing line continuation), doubled word
  • api-compatibility.md: Fix contradictory version policy statements, grammar fixes
  • about-checksums.md: Fix "so to say" -> "so to speak", "infer" -> "imply", "nothing prevent" -> "prevents"
  • common-misconceptions.md: Grammar fixes
  • how-resolver-works.md: Missing article, awkward phrasing, stray empty list item
  • remote-repository-filtering.md: Stray period, "procided" -> "provided", missing preposition
  • repository-key-function.md: Missing possessive apostrophe
  • third-party-integrations.md: "into" -> "in"
  • transporter-known-issues.md: Missing "in"
  • upgrading-resolver.md: "sans" -> "except", "it's" -> "its", grammar fixes
  • what-is-resolver.md: Trailing "is"
  • index.xml: Missing alt attribute on image

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
opencode
Fix documentation issues across site docs
167e1de
@elharo
elharo requested a review from Copilot July 23, 2026 15:27
@elharo
Fix grammar and clarity in about-checksums.md
8abdd48
Corrected grammatical errors and improved clarity in the explanation of checksum algorithms and their usage.
gnodet
gnodet reviewed Jul 23, 2026
View reviewed changes

@gnodet gnodet left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two confirmed issues in documentation changes: (1) the code example in creating-a-repository-system-session.md passes a SessionBuilder to newLocalRepositoryManager(), which expects a RepositorySystemSession — this will not compile; (2) minor indentation inconsistency in api-compatibility.md.

This review was generated by an AI agent and may contain inaccuracies. Please verify all suggestions before applying.

Claude Code on behalf of gnodet

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread src/site/markdown/creating-a-repository-system-session.md
Comment on lines +38 to 45
RepositorySystemSession.SessionBuilder sessionBuilder = system.createSessionBuilder();

LocalRepository localRepo = new LocalRepository( "target/local-repo" );
sessionBuilder.setLocalRepositoryManager( system.newLocalRepositoryManager( session, localRepo ) );
sessionBuilder.setLocalRepositoryManager( system.newLocalRepositoryManager( sessionBuilder, localRepo ) );

return session.build();
return sessionBuilder.build();
}
```

@gnodet gnodet Jul 23, 2026

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The fix correctly replaces the undefined session variable and SessionBuilderSupplier, but system.newLocalRepositoryManager(sessionBuilder, localRepo) will not compile: newLocalRepositoryManager expects a RepositorySystemSession as its first argument, and SessionBuilder does not extend RepositorySystemSession.

The SessionBuilder API provides withLocalRepositories(LocalRepository...) for this purpose, which would make the example both simpler and correct:

Suggested change
RepositorySystemSession.SessionBuilder sessionBuilder = system.createSessionBuilder();
LocalRepository localRepo = new LocalRepository( "target/local-repo" );
sessionBuilder.setLocalRepositoryManager( system.newLocalRepositoryManager( session, localRepo ) );
sessionBuilder.setLocalRepositoryManager( system.newLocalRepositoryManager( sessionBuilder, localRepo ) );
return session.build();
return sessionBuilder.build();
}
```
RepositorySystemSession.SessionBuilder sessionBuilder = system.createSessionBuilder();
LocalRepository localRepo = new LocalRepository( "target/local-repo" );
sessionBuilder.withLocalRepositories( localRepo );
return sessionBuilder.build();

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread src/site/markdown/api-compatibility.md Resolved

Uh oh!

There was an error while loading. Please reload this page.

@elharo
Fix grammar and clarity in API compatibility documentation
5ee28c7
Copilot started reviewing on behalf of elharo July 23, 2026 15:36
View session
elharo and others added 2 commits July 23, 2026 15:36
@elharo @gnodet
Apply suggestion from @gnodet
852deeb
Co-authored-by: Guillaume Nodet <[email protected]>
@elharo
Fix wording and clarity in common misconceptions section
16e38f6
Corrected phrasing and improved clarity in the text.
Copilot AI reviewed Jul 23, 2026
View reviewed changes

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the Maven Resolver site documentation to correct broken examples, improve clarity/grammar, and address an accessibility gap in the site index.

Changes:

  • Fix and modernize documentation examples (notably session creation and shell snippets).
  • Clarify version-compatibility wording and correct various grammar/typos across multiple pages.
  • Improve site accessibility by adding missing image alternative text.

Reviewed changes

Copilot reviewed 14 out of 14 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
src/site/xdoc/index.xml Adds an alt attribute to the dependency diagram image for accessibility.
src/site/markdown/what-is-resolver.md Removes a trailing stray “is” and fixes sentence punctuation.
src/site/markdown/upgrading-resolver.md Improves wording/grammar (“its”, “except”, sentence clarity).
src/site/markdown/transporter-known-issues.md Fixes missing preposition in explanatory text.
src/site/markdown/third-party-integrations.md Fixes phrasing (“in our way”).
src/site/markdown/repository-key-function.md Fixes missing possessive apostrophe.
src/site/markdown/remote-repository-filtering.md Fixes punctuation/typos and improves explanatory sentence clarity.
src/site/markdown/local-repository.md Corrects code block language tags/line continuations and fixes wording.
src/site/markdown/how-resolver-works.md Fixes phrasing and removes a stray empty list item.
src/site/markdown/deployment.md Fixes heading level and corrects connector reference text/link mismatch.
src/site/markdown/creating-a-repository-system-session.md Updates the Java example for creating a RepositorySystemSession.
src/site/markdown/common-misconceptions.md Improves wording and fixes minor grammar issues.
src/site/markdown/api-compatibility.md Updates version policy wording and improves historical explanation text.
src/site/markdown/about-checksums.md Improves wording/grammar and corrects phrasing around checksums.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread src/site/markdown/creating-a-repository-system-session.md
Comment on lines 40 to +43
LocalRepository localRepo = new LocalRepository( "target/local-repo" );
sessionBuilder.setLocalRepositoryManager( system.newLocalRepositoryManager( session, localRepo ) );
sessionBuilder.setLocalRepositoryManager( system.newLocalRepositoryManager( sessionBuilder, localRepo ) );

return session.build();
return sessionBuilder.build();
Comment thread src/site/markdown/api-compatibility.md
Comment on lines 73 to +75
* On minor version change, we ENSURE backward compatibility for those "exposed" 3 modules: API,
SPI and Util.
SPI and Util. Still, there are examples when we failed to do so, usually driven by new
features.
Comment thread src/site/markdown/common-misconceptions.md Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread src/site/xdoc/index.xml Resolved

Uh oh!

There was an error while loading. Please reload this page.

@elharo
Fix grammar and clarity in misconceptions document
019b4c5
Corrected grammatical errors and improved clarity in the explanation of test and runtime graphs in Maven.
gnodet
gnodet reviewed Jul 23, 2026
View reviewed changes

@gnodet gnodet left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing the indentation issue in api-compatibility.md and the grammar fix in common-misconceptions.md!

The compile issue in creating-a-repository-system-session.md still remains — system.newLocalRepositoryManager(sessionBuilder, localRepo) won't compile because SessionBuilder doesn't extend RepositorySystemSession.

This review was generated by an AI agent and may contain inaccuracies. Please verify all suggestions before applying.

Claude Code on behalf of gnodet

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread src/site/markdown/creating-a-repository-system-session.md
Comment on lines +38 to +43
RepositorySystemSession.SessionBuilder sessionBuilder = system.createSessionBuilder();

LocalRepository localRepo = new LocalRepository( "target/local-repo" );
sessionBuilder.setLocalRepositoryManager( system.newLocalRepositoryManager( session, localRepo ) );
sessionBuilder.setLocalRepositoryManager( system.newLocalRepositoryManager( sessionBuilder, localRepo ) );

return session.build();
return sessionBuilder.build();

@gnodet gnodet Jul 23, 2026

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This still won't compile: all three overloads of newLocalRepositoryManager require a RepositorySystemSession as the first argument, and SessionBuilder does not extend RepositorySystemSession.

The SessionBuilder API provides withLocalRepositories(LocalRepository...) for exactly this purpose:

Suggested change
RepositorySystemSession.SessionBuilder sessionBuilder = system.createSessionBuilder();
LocalRepository localRepo = new LocalRepository( "target/local-repo" );
sessionBuilder.setLocalRepositoryManager( system.newLocalRepositoryManager( session, localRepo ) );
sessionBuilder.setLocalRepositoryManager( system.newLocalRepositoryManager( sessionBuilder, localRepo ) );
return session.build();
return sessionBuilder.build();
RepositorySystemSession.SessionBuilder sessionBuilder = system.createSessionBuilder();
LocalRepository localRepo = new LocalRepository( "target/local-repo" );
sessionBuilder.withLocalRepositories( localRepo );
return sessionBuilder.build();

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@elharo
elharo force-pushed the fix-docs-issues branch from 7cdb65f to 2cfdd3a Compare July 23, 2026 15:45
opencode
Fix compile error in code example and indentation inconsistency
bbbaf4a
@elharo
elharo force-pushed the fix-docs-issues branch from 2cfdd3a to bbbaf4a Compare July 23, 2026 15:50
@elharo
Potential fix for pull request finding
c3b6329
Co-authored-by: Copilot Autofix powered by AI <[email protected]>
gnodet
gnodet reviewed Jul 23, 2026
View reviewed changes

@gnodet gnodet left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for addressing the compile error! However, the fix switched to new DefaultRepositorySystemSession(), whose no-arg constructor is @Deprecated with a javadoc warning that it "leads to resource leaks" and should be replaced with RepositorySystem.createSessionBuilder(). A documentation example should demonstrate the recommended API.

Also, the surrounding prose still references maven-resolver-supplier classes and RepositorySystemSession.SessionBuilder, which the code no longer uses — creating an inconsistency between the text and the example.

The suggestion from the previous review would resolve both issues:

RepositorySystemSession.SessionBuilder sessionBuilder = system.createSessionBuilder();

LocalRepository localRepo = new LocalRepository( "target/local-repo" );
sessionBuilder.withLocalRepositories( localRepo );

return sessionBuilder.build();

This review was generated by an AI agent and may contain inaccuracies. Please verify all suggestions before applying.

Claude Code on behalf of gnodet

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
elharo added 3 commits July 23, 2026 15:56
@elharo
Improve clarity on Resolver's completeness and dependencies
c55d72a
Clarified the explanation of Resolver's completeness and its dependency on the maven-resolver-provider module.
@elharo
Refine about-checksums.md for clarity and accuracy
f5df7ff
Updated language for clarity and precision regarding checksums and their security implications.
@elharo
Improve instructions for handling broken MRMs
46dc021
Clarified user instructions on disabling prefix discovery for broken Maven Repository Managers.
gnodet
gnodet reviewed Jul 23, 2026
View reviewed changes

@gnodet gnodet left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

New issues introduced in about-checksums.md — unmatched parentheses and a missing word. The previously raised concern about the deprecated DefaultRepositorySystemSession() constructor in creating-a-repository-system-session.md also remains.

This review was generated by an AI agent and may contain inaccuracies. Please verify all suggestions before applying.

Claude Code on behalf of gnodet

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread src/site/markdown/about-checksums.md Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread src/site/markdown/about-checksums.md Resolved

Uh oh!

There was an error while loading. Please reload this page.

elharo and others added 3 commits July 23, 2026 22:15
@elharo @gnodet
Update src/site/markdown/about-checksums.md
e7d7cac
Co-authored-by: Guillaume Nodet <[email protected]>
@elharo @gnodet
Update src/site/markdown/about-checksums.md
369507b
Co-authored-by: Guillaume Nodet <[email protected]>
opencode
Address review: use SessionBuilder API, fix double space
0b05312
gnodet
gnodet approved these changes Jul 24, 2026
View reviewed changes

@gnodet gnodet left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thorough documentation cleanup with correct grammar fixes, accurate code example updates, and improved accessibility. All changes look good.

Minor observations (non-blocking):

  • In creating-a-repository-system-session.md, the section heading says "Using classes from maven-resolver-supplier" but the code now uses system.createSessionBuilder() from the API module. The import org.eclipse.aether.supplier.RepositorySystemSupplier in the snippet is orphaned within the displayed method.
  • The inserted sentence "A checksum is not intended to be secure" in about-checksums.md is factually correct but reads slightly abruptly between the surrounding sentences.

Strengths:

  • Code example in creating-a-repository-system-session.md correctly uses the current API (system.createSessionBuilder(), withLocalRepositories(), sessionBuilder.build()).
  • The deployment.md link text fix correctly aligns BasicRepositoryConnector with the actual target URL.
  • The api-compatibility.md change resolves contradictory duplicate bullets.
  • All grammar/typo corrections are accurate.
  • The alt attribute on the image in index.xml improves accessibility.

This review was generated by an AI agent and may contain inaccuracies. Please verify all suggestions before applying.

Claude Code on behalf of Guillaume Nodet

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@elharo
elharo merged commit 858bb78 into master Jul 29, 2026
23 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@elharo
elharo deleted the fix-docs-issues branch July 29, 2026 11:02
@github-actions

github-actions Bot commented Jul 29, 2026

Copy link
Copy Markdown

@elharo Please assign appropriate label to PR according to the type of change.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@github-actions github-actions Bot added this to the 2.0.22 milestone Jul 29, 2026
@github-actions github-actions Bot assigned elharo Jul 29, 2026
@elharo elharo added the documentation Improvements or additions to documentation label Jul 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

Copilot code review Copilot
Copilot review effort
Applies to this pull request for everyone.Learn more about Copilot code review.
Copilot left review comments
@gnodet gnodet gnodet approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@elharo elharo

Labels

documentation Improvements or additions to documentation

Projects

None yet

Milestone

2.0.22

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@elharo @gnodet
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.