So I’ve tried this for way too long, and I have no idea why this isn’t working, and I saw someone in a different thread have the same issue and still no response. So I’m trying to use eclipse, on Slackware Linux,
I cannot follow the directions and get a successful openhab build for eclipse. I follow the directions and it just results in a failed build. I tried with OpenJDK 17 and ZULU 17, same results. I’m using the eclipse installer per the directions. I follow it, then it builds, and it fails with 1000+ errors, and throws a popup error with this message
Failed to execute mojo org.apache.maven.plugins:maven-jar-plugin:3.0.2:jar {execution: default-jar}
You have to use a classifier to attach supplemental artifacts to the project instead of replacing them.
Error executing jar goal: Failed to execute mojo org.apache.maven.plugins:maven-jar-plugin:3.0.2:jar {execution: default-jar}
Failed to execute mojo org.apache.maven.plugins:maven-jar-plugin:3.0.2:jar {execution: default-jar}
You have to use a classifier to attach supplemental artifacts to the project instead of replacing them.
Error executing jar goal: Failed to execute mojo org.apache.maven.plugins:maven-jar-plugin:3.0.2:jar {execution: default-jar}
Failed to execute mojo org.apache.maven.plugins:maven-jar-plugin:3.0.2:jar {execution: default-jar}
You have to use a classifier to attach supplemental artifacts to the project instead of replacing them.
Error executing jar goal: Failed to execute mojo org.apache.maven.plugins:maven-jar-plugin:3.0.2:jar {execution: default-jar}
Failed to execute mojo org.apache.maven.plugins:maven-jar-plugin:3.0.2:jar {execution: default-jar}
You have to use a classifier to attach supplemental artifacts to the project instead of replacing them.
Also the build errors look like the compiler can’t find the source for other modules, for example
AllConfig cannot be resolved to a type PersistenceModelManager.java /org.openhab.core.model.persistence/src/org/openhab/core/model/persistence/internal line 147 Java Problem
|Description|Resource|Path|Location|Type|
|---|---|---|---|---|
|ChangedEventTrigger cannot be resolved to a type|DSLRuleProvider.java|/org.openhab.core.model.rule.runtime/src/org/openhab/core/model/rule/runtime/internal|line 351|Java Problem|
|Description|Resource|Path|Location|Type|
|---|---|---|---|---|
|Class<ItemsGenerator> cannot be resolved to a type|AbstractItemsRuntimeModule.java|/org.openhab.core.model.item/src-gen/org/openhab/core/model|line 191|Java Problem|
|Description|Resource|Path|Location|Type|
|---|---|---|---|---|
|Class<ItemsScopeProvider> cannot be resolved to a type|AbstractItemsRuntimeModule.java|/org.openhab.core.model.item/src-gen/org/openhab/core/model|line 146|Java Problem|
Is this a bug because nobody uses eclipse? The instructions say eclipse is the recommended IDE. What am I missing? It seems like that popup error is the big issue, when I google that I get stuff about my pom.xml being wrong, so is that a bug in openhab or is something else going on? Is there some specific version of eclipse I should be using? I tried the latest 3 versions of eclipse, all the same error. Also I deleted ~/.m2/repository/ and ~/.p2 before each eclipse install, didn’t change anything.