Fresh IDE install doesn't build

I tried a fresh IDE install on macOS with Eclipse 2025-03, 2024-12, 2024-03 + Java 21.0.6.

After adding the Shelly binding and doing a Maven:Update Project the IDE shows a problem in it’s pom.xml Same problem with AVM Fritz binding.
Building the binding on the cli works, but not in the IDE.
This problem persists since days (in facts 2 weeks or so).

Bildschirmfoto 2025-04-21 um 10.24.08

Could anybody try a fresh IDE install on Mac?

Just an idea: is your branch openhab-distro up-to-date?

yes, a complete fresh install (Dev+Addons) + Maven:Update Project in the IDE

I am running into a similar issue. Did a complete fresh install of eclipse and all associated directories. Even installed the snapshot version of BND (JFrog) instead of the 7.1.x version that does not work.

However, I’m stuck at the following error now when trying to resolve the dependencies:
image

What am I doing wrong?

  • Tick openHAB Development & openHAB Add-Ons
  • Make sure to install Eclipse for Java elopement, not Java & DSL
  • In general you need to downgrade to BND Tools 7.0
  1. Uninstall Bnd Tools v7.1.x:
    Eclipse | Help | About Eclipse IDE | Installation Details | Installed Software | Filter on ‘bnd’ | One-by-one select each Bnd Tools entry | Uninstall (ignore the restart prompt until the last entry) | -
    Restart Eclipse

  2. Remove Bnd Tools v7.1.x from available update sites
    Eclipse | Help | Install New Software | Manage… | Select entry for Bnd Tools v7.0.0 | Remove

  3. Install Bnd Tools v7.0.0
    Eclipse | Help | Install New Software | Add… | Name=OH Bnd Tools v7.0.0 Location=bndtools repo 7.0.0 | Accept certificates

Did all the steps, it still does not work. I still get the same error. Any other ideas?

Some observations:

  • I notice that the default is still Java 17, changing it to 21 does not seem to help.
  • I notice you need maven 3.9.6 or higher, not 3.x as indicated in the documentation. Upgrading to 3.9.10 does resolve the maven build, but the app.bndrun of the demo app is still not resolving and giving the error posted before.

OH Dev & runtime require Java 21
make sure this is also selected in installer

I finally managed to get things working again. Steps I took, so others can learn:

  • Clean-up your existing environment
    – Remove ~/.eclipse
    – Remove ~/.bnd
    – Remove ~/.m2
    – Remove ~/.p2
  • Install maven 3.9.6 or higher
  • Follow the Eclipse installation instructions posted here.
  • Afer step 10:
  • Tick openHAB Development & openHAB Add-Ons
  • Make sure to install Eclipse for Java elopement, not Java & DSL
  • In general you need to downgrade to BND Tools 7.0
  1. Uninstall Bnd Tools v7.1.x:
    Eclipse | Help | About Eclipse IDE | Installation Details | Installed Software | Filter on ‘bnd’ | One-by-one select each Bnd Tools entry | Uninstall (ignore the restart prompt until the last entry) | -
    Restart Eclipse

  2. Remove Bnd Tools v7.1.x from available update sites
    Eclipse | Help | Install New Software | Manage… | Select entry for Bnd Tools v7.0.0 | Remove

  3. Install Bnd Tools v7.0.0 (be sure to select the bnd m2e variant)
    Eclipse | Help | Install New Software | Add… | Name=OH Bnd Tools v7.0.0 Location=bndtools repo 7.0.0 | Accept certificates

Everything should work now.

I think my mistake was not to install the m2e variant of bnd.