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

Version cannot be determined on fat-jar #188

Closed
tobiasschaefer opened this issue Jan 29, 2021 · 0 comments
Closed

Version cannot be determined on fat-jar #188

tobiasschaefer opened this issue Jan 29, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@tobiasschaefer
Copy link
Collaborator

tobiasschaefer commented Jan 29, 2021

To reproduce:

./gradlew clean build
java -jar micronaut-camunda-bpm-example/build/libs/micronaut-camunda-bpm-example-0.0.1-SNAPSHOT-all.jar

doesn't output the version:
INFO i.n.m.c.b.f.ProcessEngineFactory - Camunda BPM version:

This is also problematic because the telemetry data will be rejected by the Camunda telemetry endpoint if the version is missing. Therefore we currently need to disable the Telemetry Reporter in this case.

This also applies to Docker which uses the fat-jar:

  1. Save micronaut-camunda-bpm-example/Dockerfile:
FROM openjdk:14-alpine
COPY build/libs/micronaut-camunda-bpm-example-*-all.jar app.jar
EXPOSE 8080
CMD ["java", "-Dcom.sun.management.jmxremote", "-Xmx128m", "-jar", "app.jar"]
  1. execute
docker build --tag myapp .
docker run myapp

Note:

  • This only happens if camunda.bpm.generic-properties.properties.initialize-telemetry is explicitly set to true
  • if the dependency is pulled into a project and the application is started from IntelliJ, everything is fine.
  • the information seems to get lost with the repackaging of the shadow jar plugin
  • The Camunda Cockpit actually shows the version number in the footer also in case of a shadow jar. Where does it come from? Is this version somewhere in the UI?
@tobiasschaefer tobiasschaefer added the bug Something isn't working label Jan 29, 2021
@tobiasschaefer tobiasschaefer changed the title CamundaBpmVersion empty with fat-jar / Telemetry is broken Telemetry Reporter fails on fat-jar Feb 9, 2021
@tobiasschaefer tobiasschaefer changed the title Telemetry Reporter fails on fat-jar Version missing on fat-jar Feb 9, 2021
@tobiasschaefer tobiasschaefer changed the title Version missing on fat-jar Version cannot be determined on fat-jar Feb 9, 2021
tobiasschaefer added a commit to tobiasschaefer/micronaut-camunda-bpm that referenced this issue Feb 21, 2021
tobiasschaefer added a commit to tobiasschaefer/micronaut-camunda-bpm that referenced this issue Feb 21, 2021
…missing version information. Also remove term "BPM".
tobiasschaefer added a commit to tobiasschaefer/micronaut-camunda-bpm that referenced this issue Feb 21, 2021
…missing version information. Also remove term "BPM".
tobiasschaefer added a commit to tobiasschaefer/micronaut-camunda-bpm that referenced this issue Mar 17, 2021
… Instead use "./gradlew dockerBuild -p micronaut-camunda-bpm-example"
tobiasschaefer added a commit to tobiasschaefer/micronaut-camunda-bpm that referenced this issue Mar 17, 2021
… Instead use "./gradlew dockerBuild -p micronaut-camunda-bpm-example"
martisaw pushed a commit that referenced this issue Mar 18, 2021
…lew dockerBuild -p micronaut-camunda-bpm-example"
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

1 participant