- Platform information:
- OS: Ubuntu 18.04.3 LTS
- Java Runtime Environment: which java platform is used and what version
- maven and java version: Apache Maven 3.6.0, Java version: 11.0.4
- openHAB addons commit: 12b2190d1e31b67e8f23c03e8b9cecd0f571f326 (HEAD by now)
- openHAB core commit: d23fb59ed7ae040ab0bfc9e9f9c096411e100fb7 (HEAD by now)
- Issue of the topic: BUILD FAILURE
- If logs where generated please post these here using code fences:
I want to develop bindings but i totally fail to build the addons or core repository because of missing dependencies. I’m starting from the scratch on my machine.
I call (in the addons root):
mvn clean install -U
I get the following error:
[ERROR] Failed to execute goal on project org.openhab.addons.bom.runtime-index: Could not resolve dependencies for project org.openhab.addons.bom:org.openhab.addons.bom.runtime-index:jar:2.5.0-SNAPSHOT: The following artifacts could not be resolved: org.eclipse.orbit.bundles:com.google.gson:jar:2.8.2.v20180104-1110, de.maggu2810.p2redist:org.antlr.runtime:jar:3.2.0.v201101311130: Could not find artifact org.eclipse.orbit.bundles:com.google.gson:jar:2.8.2.v20180104-1110 in UK (http://uk.maven.org/maven2) -> [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/DependencyResolutionException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn <goals> -rf :org.openhab.addons.bom.runtime-index
Before i tried this multiple times with my standard IntelliJ setup and maven. I read somewhere that the project is completely mavenized and therefore should build on other IDEs as well. Since I couldn’t resolve my issues i then installed the Eclipse IDE. After opening the IDE the build process started automatically and i ran into some “Out of Memory” issues. Don’t know what they belonged too.
I was able to compile e.g. /org.openhab.core.bom.openhab-core out of the ECLIPSE IDE via > run-as > Maven install but I can’t compile the whole project out of the ECLIPSE IDE because i cant access the pom file in the root. Don’t know why, its definetly in the folder.
I also tried to find this dependencies in the in the mvn repo:
Can someone help me please?