Skip to content

Document repositories parameter with all types and examples - #251

Merged
slachiewicz merged 3 commits into
masterfrom
copilot/fix-4a23f310-2678-44d3-8406-55c6578a181f
Oct 29, 2025
Merged

slachiewicz merged 3 commits into
masterfrom
copilot/fix-4a23f310-2678-44d3-8406-55c6578a181f

Conversation

Copilot AI commented Oct 5, 2025 •

Copy link
Copy Markdown
Contributor
  • Understand the issue and existing code
  • Identify all repository types (mockRepo, localRepo, proxyRepo, hostedRepo)
  • Create comprehensive documentation for repositories parameter
  • Add examples for each repository type
  • Update JavaDoc in AbstractStartMojo with repository types summary
  • Add Repository Types page to site navigation
  • Update index.md to reference the new documentation
  • Build and verify documentation
  • Apply review suggestions: use relative path and update metadata

Summary

This PR adds comprehensive documentation for the repositories parameter that was previously undocumented.

Changes Made

  1. New Documentation Page: Created repositories.md with detailed documentation for all four repository types:

    • mockRepo - Mock repository serving content from a local directory with specific file patterns
    • localRepo - Local repository serving content from a standard Maven repository layout
    • proxyRepo - Proxy repository forwarding requests to the current Maven session's repositories
    • hostedRepo - Hosted repository accepting uploaded artifacts (writable)
  2. Enhanced JavaDoc: Updated AbstractStartMojo.java to include:

    • Summary of available repository types in the parameter documentation
    • Relative link to the Repository Types documentation page
  3. Site Navigation: Added the new "Repository Types" page to the site menu for easy access

  4. Cross-references: Updated index.md to reference the new documentation

Review Updates Applied

  • Changed documentation link to use relative path (repositories.html instead of absolute URL)
  • Removed author and date metadata from repositories.md header
  • Updated copyright to "MojoHaus and contributors"

Documentation Includes

Each repository type is documented with:

  • Description and purpose
  • Required and optional parameters
  • Configuration examples
  • Use cases
  • Supported file patterns (for mockRepo)
  • Information about combining multiple repositories
  • Default configuration behavior

The documentation is now available at: https://www.mojohaus.org/mrm/mrm-maven-plugin/repositories.html

Screenshot

The repositories parameter is now fully documented with a relative link to the Repository Types page:

Updated repositories parameter documentation

Fixes #91

Original prompt

This section details on the original issue you should resolve

<issue_title>Please document repositories parameters</issue_title>
<issue_description>repositories is not documented .... please provide list of possible repositories types with settings.

https://www.mojohaus.org/mrm/mrm-maven-plugin/run-mojo.html#repositories</issue_description>

Comments on the Issue (you are @copilot in this section)

Fixes #91

💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.

@slachiewicz

This comment was marked as resolved.

Co-authored-by: slachiewicz <6705942+slachiewicz@users.noreply.github.com>

Copilot AI commented Oct 5, 2025 •

Copy link
Copy Markdown
Contributor Author

@copilot continue

Done! I've added comprehensive documentation for the repositories parameter including all four repository types (mockRepo, localRepo, proxyRepo, hostedRepo) with parameters, examples, and use cases. The documentation is integrated into the site and linked from the plugin parameter documentation. See commit d0c6e4f.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • www.apache.org
    • Triggering command: /usr/lib/jvm/temurin-17-jdk-amd64/bin/java --enable-native-access=ALL-UNNAMED -classpath /usr/share/apache-maven-3.9.11/boot/plexus-classworlds-2.9.0.jar -Dclassworlds.conf=/usr/share/apache-maven-3.9.11/bin/m2.conf -Dmaven.home=/usr/share/apache-maven-3.9.11 -Dlibrary.jansi.path=/usr/share/apache-maven-3.9.11/lib/jansi-native -Dmaven.multiModuleProjectDirectory=/home/REDACTED/work/mrm/mrm/mrm-maven-plugin org.codehaus.plexus.classworlds.launcher.Launcher site -DskipTests -q (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Copilot AI changed the title [WIP] Please document repositories parameters Document repositories parameter with all types and examples Oct 5, 2025
@slawekjaranowski

Copy link
Copy Markdown
Member

@slachiewicz look fine

@slachiewicz
slachiewicz marked this pull request as ready for review October 6, 2025 17:19

@slachiewicz slachiewicz left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks Sławek, I'll fix it

@slachiewicz

Copy link
Copy Markdown
Member

@copilot apply suggestions from @slawekjaranowski

Co-authored-by: slachiewicz <6705942+slachiewicz@users.noreply.github.com>

Copilot AI commented Oct 26, 2025

Copy link
Copy Markdown
Contributor Author

Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • www.apache.org
    • Triggering command: /usr/lib/jvm/temurin-17-jdk-amd64/bin/java --enable-native-access=ALL-UNNAMED -classpath /usr/share/apache-maven-3.9.11/boot/plexus-classworlds-2.9.0.jar -Dclassworlds.conf=/usr/share/apache-maven-3.9.11/bin/m2.conf -Dmaven.home=/usr/share/apache-maven-3.9.11 -Dlibrary.jansi.path=/usr/share/apache-maven-3.9.11/lib/jansi-native -Dmaven.multiModuleProjectDirectory=/home/REDACTED/work/mrm/mrm/mrm-maven-plugin org.codehaus.plexus.classworlds.launcher.Launcher site -DskipTests -q (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Copilot AI requested a review from slachiewicz October 26, 2025 09:39
@slachiewicz
slachiewicz merged commit bbc107a into master Oct 29, 2025
@slachiewicz
slachiewicz deleted the copilot/fix-4a23f310-2678-44d3-8406-55c6578a181f branch October 29, 2025 17:38
@slawekjaranowski slawekjaranowski added the documentation Improvements or additions to documentation label Jan 6, 2026
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.

Please document repositories parameters

3 participants