I am trying to build the current openHAB 1.8 development branch to add SPK packaging functionality. In Eclipse all projects build without problems, but not with Maven on the command line.
I keep getting the error “[ERROR] Failed to execute goal org.fornax.toolsupport:fornax-oaw-m2-plugin:3.5.1:run-workflow (default) on project org.openhab.model.item: Workflow execution failed. -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.fornax.toolsupport:fornax-oaw-m2-plugin:3.5.1:run-workflow (default) on project org.openhab.model.item: Workflow execution failed.”
I used to have tonnes of issues building OpenHAB on windows and even ended up creating a dedicated Linux build virtual machine for it. Then I stopped using spaces in any of paths in Windows and the issues went away.
Thanks for the advice, but I use the path D:\Development\repos\openHAB
without spaces, because I already experienced these Maven issues under
Windows. So that’s not the cause in this case, unfortunately.
I have a similar issue with my setup on OS X 10.10
trying to work with openHAB 2 Alpha2
[INFO] Scanning for projects...
[INFO] Computing target platform for MavenProject: org.openhab.binding:org.openhab.binding.astro:2.0.0-SNAPSHOT @ /Users/shaller/Projects/openhab/openhab2/addons/binding/org.openhab.binding.astro/pom.xml
[INFO] Adding repository http://download.eclipse.org/smarthome/updates-stable
[INFO] Adding repository https://openhab.ci.cloudbees.com/job/smarthome/lastSuccessfulBuild/artifact/products/org.eclipse.smarthome.repo/target/repository
[INFO] Fetching p2.index from http://download.eclipse.org/releases/luna/201502271000/ (0B at 0B/s)
[INFO] Adding repository http://download.eclipse.org/releases/luna/201502271000
[INFO] Fetching p2.index from http://download.eclipse.org/tools/orbit/downloads/drops/R20140525021250/repository/ (0B at 0B/s)
[INFO] Adding repository http://download.eclipse.org/tools/orbit/downloads/drops/R20140525021250/repository
[INFO] Fetching p2.index from http://download.eclipse.org/modeling/tmf/xtext/updates/releases/maintenance/R201407030533/ (0B at 0B/s)
[INFO] Adding repository http://download.eclipse.org/modeling/tmf/xtext/updates/releases/maintenance/R201407030533
[INFO] Adding repository http://dist.springsource.org/release/GRECLIPSE/e4.4
[INFO] Adding repository http://www.openhab.org/jupnp/update-site
[INFO] Adding repository http://hstaudacher.github.io/osgi-jax-rs-connector/5.0.0
[INFO] Adding repository http://download.eclipse.org/jetty/updates/jetty-bundles-9.x/9.2.12.v20150709
[INFO] Adding repository https://github.com/openhab/openhab.repo/raw/master/jetty-deps
[INFO] Fetching content.jar from https://github.com/openhab/openhab.repo/raw/master/jetty-deps/ (0B of 1.39kB at 0B/s)
[INFO] Adding repository http://download.eclipse.org/paho
[ERROR] Cannot resolve target definition:
[ERROR] Software being installed: org.eclipse.smarthome.feature.runtime.core.feature.group 0.8.0.201509100907
[ERROR] Missing requirement: org.eclipse.smarthome.io.transport.mdns 0.8.0.201509100907 requires 'package javax.jmdns 0.0.0' but it could not be found
[ERROR] Cannot satisfy dependency: org.eclipse.smarthome.feature.runtime.core.feature.group 0.8.0.201509100907 depends on: org.eclipse.smarthome.io.transport.mdns [0.8.0.201509100907]
[ERROR]
[ERROR] Failed to resolve target definition /Users/shaller/Projects/openhab/openhab2/targetplatform/openhab.target: See log for details -> [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/MAVEN/MavenExecutionException
[ERROR] Missing requirement: org.eclipse.smarthome.io.transport.mdns 0.8.0.201509100907 requires ‘package javax.jmdns 0.0.0’ but it could not be found
I have checked the local repository and found that the maven artifact is missing and tried to install it maually but I still getting the same error.