Release 2024.2.0 · OpenEMS/openems

1 Like

Hello

I am having trouble building 2024.2.0 on develop branch using gradlew from the command line on OSX.

To double check, I tried to clone the repo to a clean directory and just trying …/gradlew buildEdge and ./gradlew buildBackend. Both are failing.

Any help would be appreciated. Thank you.

Greg

OpenJDK Runtime Environment (build 17.0.2+8-86)
OpenJDK 64-Bit Server VM (build 17.0.2+8-86, mixed mode, sharing)

Here is gradlew buildEdge --stacktrace

Caused by: org.apache.felix.resolver.reason.ReasonException: Unable to resolve <<INITIAL>>: missing requirement osgi.identity;filter:='(osgi.identity=io.openems.edge.controller.api.backend)' [caused by: Unable to resolve io.openems.edge.controller.api.backend version=1.0.0.202402030301: missing requirement osgi.service;effective:=active;filter:='(objectClass=io.openems.common.oem.OpenemsEdgeOem)']
        at org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1341)
        at org.apache.felix.resolver.ResolverImpl.doResolve(ResolverImpl.java:434)
        at org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:421)
        at org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:375)
        at biz.aQute.resolve.BndResolver.resolve(BndResolver.java:32)
        at biz.aQute.resolve.ResolveProcess.resolveRequired(ResolveProcess.java:82)
        ... 164 more
Caused by: org.apache.felix.resolver.reason.ReasonException: Unable to resolve io.openems.edge.controller.api.backend version=1.0.0.202402030301: missing requirement osgi.service;effective:=active;filter:='(objectClass=io.openems.common.oem.OpenemsEdgeOem)'
        at org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1341)
    ... 170 more

Hi,

Thanks for reporting an issue. In general it should never happen, that we release non-building code, because we have Continuous Integration workflows in place.

But… when I just tried to reproduce your issue, I was also not able to build with ./gradlew buildEdge or ./gradlew build. What worked for me, was:

./gradlew buildNeeded

Can you please try and see if this solves your issue? I am not much of a Gradle expert…

Regards,
Stefan

Hi! I’m on @gsvitak 's team and have tried this out. I was also running into the issue of trying to build the backend directly.

I was able to run the commands:

./gradlew buildNeeded
./gradlew buildBackend

And the backend built successfully!

1 Like

@stefan.feilmeier Just want to let you know as a curtsy… the GitPod gradlew build is now failing with the same issues.

We will try to track down the root cause and report back.