Maven build does not work for me

Hi all,

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.”

See also https://github.com/openhab/openhab/issues/1311#issuecomment-130846798.

I already tried beginning from scratch and redownloading everything.

Any ideas?

can you please some more details about your platform OS, java and maven version?

Sure: Windows 10, newest JDK 7 and Maven 3.3.1.

ftr: see Github https://github.com/openhab/openhab/issues/1311

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.

you mean in the path down to your openhab repository directory? Does that also help in your case @7Bit?

Yes, I used to have:
Git = C:\Users\CrackerStealth\My Projects\OpenHAB\openhab
Eclipse = C:\Program Files (x86)\Eclipse
Workspace = C:\Users\CrackerStealth\My Projects\OpenHAB\

Now I use:
Git = C:\Users\CrackerStealth\Projects\OpenHAB\git\openhab
Eclipse = C:\Users\CrackerStealth\Projects\OpenHAB\eclipse
Workspace = C:\Users\CrackerStealth\Projects\OpenHAB\ws

That’s about when I could start doing “mvn clean install” on my windows box.

1 Like

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.

Chris Graham forum@community.openhab.org schrieb am Mi., 26. Aug. 2015 um
20:57 Uhr:

could you?

Already did, look above.

Thomas Eichstädt-Engelen forum@community.openhab.org schrieb am Do., 3.

sorry, overlooked that post!

Got it, Build success. It seems like its working only with Maven 3.0.x, and I tried with the current version of Maven 3.3.x.

Hi all,

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.

Path to Maven 3.3.3 /opt/apache-maven-3.3.3/

cheers
Stefan

You should try the build with Maven 3.0.x, expected this requirement
hasn’t changed in openHAB 2.

Stefan M. Haller forum@community.openhab.org schrieb am Di., 15. Sep.

I just tried that, but also with maven 3.0.5 I get the same error.

Update:
meanwhile I recreated the git clone fresh and restarted mvn which went successful.

Thanks