Skip to content

Commit

Permalink
doc: Fix typo in sample code
Browse files Browse the repository at this point in the history
readonly element on Parameter annotation is lower-case
  • Loading branch information
kwin authored Aug 10, 2024
1 parent 8a01b29 commit 362a436
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/site/markdown/using-resolver-in-maven-plugins.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,27 +71,27 @@ public class MyMojo extends AbstractMojo
{

/**
* The entry point to Aether, i.e. the component doing all the work.
* The entry point to resolver (fka. Aether), i.e. the component doing all the work.
*/
@Component
private RepositorySystem repoSystem;

/**
* The current repository/network configuration of Maven.
*/
@Parameter(defaultValue="${repositorySystemSession}", readOnly = true)
@Parameter(defaultValue="${repositorySystemSession}", readonly = true)
private RepositorySystemSession repoSession;

/**
* The project's remote repositories to use for the resolution of project dependencies.
*/
@Parameter(defaultValue = "${project.remoteProjectRepositories}", readOnly = true)
@Parameter(defaultValue = "${project.remoteProjectRepositories}", readonly = true)
private List<RemoteRepository> projectRepos;

/**
* The project's remote repositories to use for the resolution of plugins and their dependencies.
*/
@Parameter(defaultValue = "${project.remotePluginRepositories}", readOnly = true)
@Parameter(defaultValue = "${project.remotePluginRepositories}", readonly = true)
private List<RemoteRepository> pluginRepos;

// Your other mojo parameters and code here
Expand Down

0 comments on commit 362a436

Please sign in to comment.