Skip to content

Commit

Permalink
Correct typo from 'ans' to 'and' in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisLane authored and slachiewicz committed Jan 6, 2024
1 parent 8b59be2 commit 5b172d4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ Let's suppose you wanted `org.apache.maven.doxia:doxia-core:` not to be updated

Well, that would be wrong. `dependencyIncludes` and `dependencyExcludes` work only on *input* dependencies, that is, dependency versions that are already being used by your project. This means that it is likely that you will still see the dreaded `2.0.0-M6`-like version in the updates.

You can either use `ruleSet` or `ignoredVersions`. The former allows for a greater control where you can specify ignored version patterns per dependency whereas the latter is intended to be used from command line ans only offers simple version filters.
You can either use `ruleSet` or `ignoredVersions`. The former allows for a greater control where you can specify ignored version patterns per dependency whereas the latter is intended to be used from command line and only offers simple version filters.

So, let's say we want to display dependency updates of this very plugin and while doing so, ignore all updates with an `-M` or `-alpha` at the end of the version string, simply use:

Expand Down
2 changes: 1 addition & 1 deletion versions-maven-plugin/src/site/markdown/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ Let's suppose you wanted `org.apache.maven.doxia:doxia-core:` not to be updated

Well, that would be wrong. `dependencyIncludes` and `dependencyExcludes` work only on *input* dependencies, that is, dependency versions that are already being used by your project. This means that it is likely that you will still see the dreaded `2.0.0-M6`-like version in the updates.

Instead, what you should be looking at is `ruleSet` or `ignoredVersions`. The former allows for a greater control where you can specify ignored version patterns per dependency whereas the latter is intended to be used from command line ans only offers simple version filters.
Instead, what you should be looking at is `ruleSet` or `ignoredVersions`. The former allows for a greater control where you can specify ignored version patterns per dependency whereas the latter is intended to be used from command line and only offers simple version filters.

So, to ignore all updates with an `-M.*` at the end of the version string, simply use:

Expand Down

0 comments on commit 5b172d4

Please sign in to comment.