Failed to access neo4j-community-3.5.0.jar via Maven repository

While trying the Maven compilation for chapter examples in the book "Neo4j in Action"
using Neo4j 3.5.8 in Debian 10 Linux Maven fails to load the neo4j community jars
from the Maven repository reporting:
Access denied to: http://repo.springsource.org/release/org/neo4j/neo4j-community/3.5.0/neo4j-community-3.5.0.jar

The correct repository is
pkg:maven/org.neo4j/neo4j-kernel@3.5.35

but you want to use the current version which is 5.6.0

You don't need to download anything, if you want to extend neo4j you can just use the examples here: