Generating binding skeleton for OpenHab 2.4.0 broken; archetype 0.10.0-SNAPSHOT has broken dependencies


(Tim Harper) #1

I’ve got a fork of OpenHab bindings for which I’m targeting OpenHab 2.4.0. The project wasn’t opening properly in Eclipse so I decided to blow away and start over. The create skeleton script refers to archetype 0.10.0-SNAPSHOT; however, this snapshot has broken dependencies.

When generating, I get this:

 ✘-INT ~/src/openhab2/git/openhab2-addons/addons/binding [2.4.0/geothunk|✚ 15…16]
08:11 $ ./create_openhab_binding_skeleton.sh GeoThunk "Tim Harper"
[INFO] Scanning for projects...
[WARNING] The POM for org.openhab.tools.sat:sat-plugin:jar:{sat.version} is missing, no dependency information available
[WARNING] Failed to retrieve plugin descriptor for org.openhab.tools.sat:sat-plugin:{sat.version}: Plugin org.openhab.tools.sat:sat-plugin:{sat.version} or one of its dependencies could not be resolved: Failure to find org.openhab.tools.sat:sat-plugin:jar:{sat.version} in https://jcenter.bintray.com/ was cached in the local repository, resolution will not be reattempted until the update interval of jcenter has elapsed or updates are forced
[INFO]
[INFO] ----------------------< org.openhab.binding:pom >-----------------------
[INFO] Building openHAB Bindings 2.4.0
[INFO] --------------------------------[ pom ]---------------------------------
[WARNING] The POM for org.openhab.tools.sat:sat-plugin:jar:{sat.version} is missing, no dependency information available
[WARNING] Failed to retrieve plugin descriptor for org.openhab.tools.sat:sat-plugin:{sat.version}: Plugin org.openhab.tools.sat:sat-plugin:{sat.version} or one of its dependencies could not be resolved: Failure to find org.openhab.tools.sat:sat-plugin:jar:{sat.version} in https://jcenter.bintray.com/ was cached in the local repository, resolution will not be reattempted until the update interval of jcenter has elapsed or updates are forced
[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: /Users/tim/src/openhab2/git/openhab2-addons
[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 Interactive mode
[INFO] Archetype repository not defined. Using the one from [org.eclipse.smarthome.archetype:org.eclipse.smarthome.archetype.binding:0.7.0-SNAPSHOT -> https://repo.eclipse.org/content/repositories/smarthome-snapshots] found in catalog remote
Downloading from openhab-artifactory-snapshot: https://openhab.jfrog.io/openhab/libs-snapshot/org/eclipse/smarthome/archetype/org.eclipse.smarthome.archetype.binding/0.10.0-SNAPSHOT/maven-metadata.xml
Downloading from archetype: https://repo.eclipse.org/content/repositories/smarthome-snapshots/org/eclipse/smarthome/archetype/org.eclipse.smarthome.archetype.binding/0.10.0-SNAPSHOT/maven-metadata.xml
Downloading from org.eclipse.smarthome.archetype.binding-repo: https://repo.eclipse.org/content/repositories/smarthome-snapshots/org/eclipse/smarthome/archetype/org.eclipse.smarthome.archetype.binding/0.10.0-SNAPSHOT/maven-metadata.xml
Downloaded from openhab-artifactory-snapshot: https://openhab.jfrog.io/openhab/libs-snapshot/org/eclipse/smarthome/archetype/org.eclipse.smarthome.archetype.binding/0.10.0-SNAPSHOT/maven-metadata.xml (826 B at 870 B/s)
Downloading from org.eclipse.smarthome.archetype.binding-repo: https://repo.eclipse.org/content/repositories/smarthome-snapshots/org/eclipse/smarthome/tools/archetype/0.10.0-SNAPSHOT/maven-metadata.xml
Downloading from openhab-artifactory-snapshot: https://openhab.jfrog.io/openhab/libs-snapshot/org/eclipse/smarthome/tools/archetype/0.10.0-SNAPSHOT/maven-metadata.xml
Downloading from archetype: https://repo.eclipse.org/content/repositories/smarthome-snapshots/org/eclipse/smarthome/tools/archetype/0.10.0-SNAPSHOT/maven-metadata.xml
Downloaded from openhab-artifactory-snapshot: https://openhab.jfrog.io/openhab/libs-snapshot/org/eclipse/smarthome/tools/archetype/0.10.0-SNAPSHOT/maven-metadata.xml (617 B at 2.4 kB/s)
Downloading from openhab-artifactory-snapshot: https://openhab.jfrog.io/openhab/libs-snapshot/org/eclipse/smarthome/tools/archetype/0.10.0-SNAPSHOT/archetype-0.10.0-20181216.232844-71.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  4.030 s
[INFO] Finished at: 2019-01-11T08:11:20-07:00
[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:0.10.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:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAV

Looking at https://openhab.jfrog.io/openhab/libs-snapshot/org/eclipse/smarthome/tools/archetype/, it seems that 0.10.0-SNAPSHOT has been pulled completely. Is there a reason for this?


(Christoph Weitkamp) #2

Hi Tim,

Did you sync your fork with the latest master of openHAB 2 add-ons repository? The skeleton scripts should have been updated couple of days ago.


(Tim Harper) #3

I haven’t been; am I supposed to? I run OpenHab 2.4.0 so I want to make sure my plugin will run. Is it possible to use the latest fork and still target 2.4.0 dependencies?


(Tim Harper) #4

As a workaround, I edited the skeleton script and updated it to the 0.11.0 archetype, and it worked. :slight_smile:


(Christoph Weitkamp) #5

I would recommend it. It will work unless it depends on new features which has been introduced after OH2.4 release.