Openhab binding creation error

Hi,
While I am trying to create a binding from the scratch in openhab eclipse smarthome by running the command
"sudo ./create_binding_skeleton.sh myfirstbinding jack"

am getting an error like this.

[INFO] Scanning for projects…
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Eclipse SmartHome Bindings 0.9.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] >>> maven-archetype-plugin:3.0.1:generate (default-cli) > generate-sources @ pom >>>
[INFO]
[INFO] — directory-maven-plugin:0.2:highest-basedir (directories) @ pom —
[INFO] Highest basedir set to: /home/tharun/openhab2-master/git/smarthome
[INFO]
[INFO] — build-helper-maven-plugin:1.8:add-source (add-source) @ pom —
[INFO] Source directory: /home/tharun/openhab2-master/git/smarthome/extensions/binding/src/main/groovy added.
[INFO]
[INFO] <<< maven-archetype-plugin:3.0.1:generate (default-cli) < generate-sources @ pom <<<
[INFO]
[INFO]
[INFO] — maven-archetype-plugin:3.0.1:generate (default-cli) @ pom —
[INFO] Generating project in Batch mode
[WARNING] Archetype not found in any catalog. Falling back to central repository.
[WARNING] Add a repsoitory with id ‘archetype’ in your settings.xml if archetype’s repository is elsewhere.
[INFO] ----------------------------------------------------------------------------
[INFO] Using following parameters for creating project from Archetype: org.eclipse.smarthome.archetype.binding:0.9.0-SNAPSHOT
[INFO] ----------------------------------------------------------------------------
[INFO] Parameter: groupId, Value: org.eclipse.smarthome.binding
[INFO] Parameter: artifactId, Value: org.eclipse.smarthome.binding.myfirstbingcoolstuff
[INFO] Parameter: version, Value: 0.9.0-SNAPSHOT
[INFO] Parameter: package, Value: org.eclipse.smarthome.binding.myfirstbingcoolstuff
[INFO] Parameter: packageInPathFormat, Value: org/eclipse/smarthome/binding/myfirstbingcoolstuff
[INFO] Parameter: bindingIdCamelCase, Value: myfirstbingcoolstuff
[INFO] Parameter: vendorName, Value: Eclipse.org/SmartHome
[INFO] Parameter: namespace, Value: org.eclipse.smarthome
[INFO] Parameter: author, Value: Tharun
[INFO] Parameter: groupId, Value: org.eclipse.smarthome.binding
[INFO] Parameter: version, Value: 0.9.0-SNAPSHOT
[INFO] Parameter: bindingId, Value: myfirstbingcoolstuff
[INFO] Parameter: package, Value: org.eclipse.smarthome.binding.myfirstbingcoolstuff
[INFO] Parameter: artifactId, Value: org.eclipse.smarthome.binding.myfirstbingcoolstuff
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 22.377 s
[INFO] Finished at: 2017-10-31T13:51:03+05:30
[INFO] Final Memory: 22M/210M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:3.0.1:generate (default-cli) on project pom: A Maven 2 project already exists in the directory /home/tharun/openhab2-master/git/smarthome/extensions/binding/org.eclipse.smarthome.binding.myfirstbingcoolstuff -> [Help 1]
[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:

[INFO] Scanning for projects…
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Eclipse SmartHome Bindings 0.9.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] >>> maven-archetype-plugin:3.0.1:generate (default-cli) > generate-sources @ pom >>>
[INFO]
[INFO] — directory-maven-plugin:0.2:highest-basedir (directories) @ pom —
[INFO] Highest basedir set to: /home/tharun/openhab2-master/git/smarthome
[INFO]
[INFO] — build-helper-maven-plugin:1.8:add-source (add-source) @ pom —
[INFO] Source directory: /home/tharun/openhab2-master/git/smarthome/extensions/binding/src/main/groovy added.
[INFO]
[INFO] <<< maven-archetype-plugin:3.0.1:generate (default-cli) < generate-sources @ pom <<<
[INFO]
[INFO]
[INFO] — maven-archetype-plugin:3.0.1:generate (default-cli) @ pom —
[INFO] Generating project in Batch mode
[WARNING] Archetype not found in any catalog. Falling back to central repository.
[WARNING] Add a repsoitory with id ‘archetype’ in your settings.xml if archetype’s repository is elsewhere.
[WARNING] The POM for org.eclipse.smarthome.archetype:org.eclipse.smarthome.archetype.binding.test:jar:0.9.0-SNAPSHOT is missing, no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 22.162 s
[INFO] Finished at: 2017-10-31T13:51:27+05:30
[INFO] Final Memory: 22M/214M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:3.0.1:generate (default-cli) on project pom: The desired archetype does not exist (org.eclipse.smarthome.archetype:org.eclipse.smarthome.archetype.binding.test:0.9.0-SNAPSHOT) -> [Help 1]
[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:

I have installed maven and the version is
Apache Maven 3.5.0
Maven home: /usr/share/maven
Java version: 1.8.0_151, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-8-oracle/jre
Default locale: en_GB, platform encoding: UTF-8
OS name: “linux”, version: “4.13.0-16-generic”, arch: “amd64”, family: “unix”

I am using eclipse oxygen for development
As a newbie, please help me to solve this issue.
Thanks in advance

Hella @tharun, please use code fences.

It seems you use a different command then shown in the documentation for openHAB 2.

http://docs.openhab.org/developers/development/bindings.html

sudo ./create_openhab_binding_skeleton myfirstbinding

And maybe delete your old folder first.

I think the documentation is wrong. I ran create_openhab_binding_skeleton on Windows last week and had to supply the binding name in camelCase and lowercase.

Does “sudo ./create_binding_skeleton.sh myFirstBinding myfirstbinding” work?

I did it last week on Windows as well but as the dokumentation describes it. Can not remember that I had to do it differently. Will try when I find some time.