In this case, maven-linkcheck-plugin fails. You can simply reproduce the problem with this site.xml:
You can use excludedLink property, but the pattern to use in
LinkValidatorManager.matchPattern is a little tricky to found :
- # : All links page are excluded
- ^#$ : Not found ... Java pattern seems not really used
- *# : Do the trick finally
Snippet for proof:
Perhaps consider a single anchor (#) as valid link by default could be useful and avoiding some headlock.