Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[org.openhab.binding.mqtt.tasmota] The import org.jetbrains cannot be resolved #2

Open
pavkamlc opened this issue Aug 16, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@pavkamlc
Copy link

Expected Behavior

Can't build mqtt tasmota binding

Current Behavior

[ERROR] /home/pavel_mlcoch/build/openhab-addons/bundles/org.openhab.binding.mqtt.tasmota/src/main/java/org/openhab/binding/mqtt/tasmota/internal/TasmotaHandlerImpl.java:[24,8] The import org.jetbrains cannot be resolved
[ERROR] /home/pavel_mlcoch/build/openhab-addons/bundles/org.openhab.binding.mqtt.tasmota/src/main/java/org/openhab/binding/mqtt/tasmota/internal/TasmotaHandlerImpl.java:[199,6] NotNull cannot be resolved to a type
[INFO] 2 errors

Possible Solution

Is this class necessary?

Steps to Reproduce (for Bugs)

  1. cd org.openhab.binding.mqtt.tasmota
  2. mvn clean install -pl :org.openhab.binding.mqtt.tasmota

Context

Your Environment

  • org.openhab.binding.mqtt.tasmota - today git
  • Rocky Linux release 8.6 (Green Obsidian)
  • openhab-3.4.0~M1-1.noarch
  • openhab-addons-3.4.0~M1-1.noarch
  • OpenJDK 64-Bit Server VM Zulu18.32+11-CA (build 18.0.2+9, mixed mode, sharing)
  • maven-3.6.2-7.module+el8.6.0+976+839b99e9.noarch
@pavkamlc pavkamlc added the bug Something isn't working label Aug 16, 2022
@JoergOstertag
Copy link
Owner

Please try to use the branch Tasmota_mqtt_bundle_OH3.
In this branch there is no depency to intelliJs org.jetbrain classes.

@pavkamlc
Copy link
Author

Perfect, addon works.

Only in building have some errors.

1] git clone --branch Tasmota_mqtt_bundle_OH3 https://github.com/JoergOstertag/openhab-addons.git
OK

2] cd openhab-addons/bundles/org.openhab.binding.mqtt.tasmota/; mvn clean install -pl :org.openhab.binding.mqtt.tasmota
[ERROR] Failed to execute goal com.diffplug.spotless:spotless-maven-plugin:2.0.3:check (codestyle_check) on project org.openhab.binding.mqtt.tasmota: The following files had format violations:
[ERROR] src/main/java/org/openhab/binding/mqtt/tasmota/internal/TasmotaHandlerImpl.java

3] mvn spotless:apply
Now is mvn clean usable, build binary, but writes this errors:

[ERROR] org.openhab.binding.mqtt.tasmota.discovery.DiscoveryCache.java:[2]
Header line doesn't match pattern ^ * Copyright (c) 2010-2021 Contributors to the openHAB project$

4] jar snapshot is usable and works fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants