Error while installing Kafka connector

getting an error while installing mongo Kafka connector

Pre requisite is to have java 8+ installed and maven installed.

https://docs.mongodb.com/kafka-connector/current/kafka-installation/#kafka-connector-installation-reference. >> manual installation

https://docs.confluent.io/current/connect/managing/community.html#manually-installing-community-connectors/

Getting stuck at step 2 from above url

cd kafka-connect-hdfs; git checkout v5.4.1; mvn package
-bash: cd: kafka-connect-hdfs: No such file or directory
HEAD is now at 8b40d5e Set Confluent to 5.4.1, Kafka to 5.4.1.
[INFO] Scanning for projects...
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[FATAL] Non-resolvable parent POM for io.confluent:kafka-connect-hdfs:5.4.1: Could not transfer artifact io.confluent:kafka-connect-storage-common-parent:pom:5.4.1 from/to confluent (${confluent.maven.repo}): Cannot access ${confluent.maven.repo} with type default using the available connector factories: BasicRepositoryConnectorFactory and 'parent.relativePath' points at wrong local POM @ line 22, column 13
@
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR]   The project io.confluent:kafka-connect-hdfs:5.4.1 (/Users/t1374049/GIT/kafka-connect-hdfs/pom.xml) has 1 error
[ERROR]     Non-resolvable parent POM for io.confluent:kafka-connect-hdfs:5.4.1: Could not transfer artifact io.confluent:kafka-connect-storage-common-parent:pom:5.4.1 from/to confluent (${confluent.maven.repo}): Cannot access ${confluent.maven.repo} with type default using the available connector factories: BasicRepositoryConnectorFactory and 'parent.relativePath' points at wrong local POM @ line 22, column 13: Cannot access ${confluent.maven.repo} using the registered transporter factories: WagonTransporterFactory: Unsupported transport protocol -> [Help 2]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException
01HW823161:kafka-connect-hdfs t1374049$