openhab / openhab-addons

Add-ons for openHAB
https://www.openhab.org/
Eclipse Public License 2.0
1.86k stars 3.58k forks source link

Build failing #4870

Closed lolodomo closed 5 years ago

lolodomo commented 5 years ago

Here are the logs I got:

[ERROR] Failed to execute goal org.eclipse.tycho:tycho-compiler-plugin:1.2.0:compile (default-compile) on project org.openhab.binding.avmfritz: Compilation failure: Compilation failure:
[ERROR] D:\dev\openhab2\git\openhab2-addons\addons\binding\org.openhab.binding.avmfritz\src\main\java\org\openhab\binding\avmfritz\internal\AVMFritzHandlerFactory.java:[31]
[ERROR]         import org.eclipse.smarthome.io.net.http.HttpClientFactory;
[ERROR]                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[ERROR] The import org.eclipse.smarthome.io.net.http.HttpClientFactory cannot be resolved
[ERROR] D:\dev\openhab2\git\openhab2-addons\addons\binding\org.openhab.binding.avmfritz\src\main\java\org\openhab\binding\avmfritz\internal\AVMFritzHandlerFactory.java:[130]
[ERROR]         protected void setHttpClientFactory(HttpClientFactory httpClientFactory) {
[ERROR]                                             ^^^^^^^^^^^^^^^^^
[ERROR] HttpClientFactory cannot be resolved to a type
[ERROR] D:\dev\openhab2\git\openhab2-addons\addons\binding\org.openhab.binding.avmfritz\src\main\java\org\openhab\binding\avmfritz\internal\AVMFritzHandlerFactory.java:[134]
[ERROR]         protected void unsetHttpClientFactory(HttpClientFactory httpClientFactory) {
[ERROR]                                               ^^^^^^^^^^^^^^^^^
[ERROR] HttpClientFactory cannot be resolved to a type
davidgraeff commented 5 years ago

Just to be sure: You are using the very latest checkout of openhab2-addons? I'm wondering why there is still "org.eclipse.smarthome" referenced, as we do not use ESH anymore.

lolodomo commented 5 years ago

Yes, update done yesterday evening. Note that imports to o.e.s are not yet changed in bindings.

davidgraeff commented 5 years ago

Hm. Why is Travis building the binding. It should use the exact same instructions to start a maven build. I have added the bug label as it seems to be a build system issue.

@maggu2810 @kaikreuzer

cweitkamp commented 5 years ago

I am not faceing the reported build issue. Can you try mvn dependency:purge-local-repository to make sure your local dependencies are up-to-date? Purging the local ~/.m2 folder could help too but is a little but more aggressive :wink:.

lolodomo commented 5 years ago

After removing my .m2 folder, the build goes further. Thank you @cweitkamp for the tip. In fact, it is failing in Astro Binding Tests. But if I run mvn clean install -Dmaven.test.skip=true, then it failslargely further in NEEO Integration with a OutOfMemoryError exception (GC overhead limit exceeded):

[ERROR] Failed to execute goal org.openhab.tools.sat:sat-plugin:0.5.0:spotbugs (default) on project org.openhab.io.neeo: Unable to execute mojo: Execution null of goal com.github.spotbugs:spotbugs-maven-plugin:3.1.3:spotbugs failed: java.lang.OutOfMemoryError: GC overhead limit exceeded
davidgraeff commented 5 years ago

@lolodomo Could you please use the square brackets "[]" with the binding that causes problems in there? That patterns helps us organizing.

lolodomo commented 5 years ago

Finally if I disable tests AND checks ( mvn clean install -Dmaven.test.skip=true -DskipChecks=true ), the build succeeds.