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

How to properly add Cockpit plugins? #411

Open
datakurre opened this issue Jun 2, 2022 · 4 comments
Open

How to properly add Cockpit plugins? #411

datakurre opened this issue Jun 2, 2022 · 4 comments
Labels
documentation Improvements or additions to documentation enhancement New feature or request

Comments

@datakurre
Copy link

What is the right way to include UI plugins for Camunda Cockpit (and other apps) in a Micronaut Camunda app?

Last time I tried, I ended up copying whole "resources/META-INF" from camunda webapp jar and added plugins into the mix. I recall that once I added resources/META-INF into the app, it did override the resource directory from webapp jar.

https://github.com/datakurre/carrot-rcc/tree/main/nix/pkgs/camunda-platform/src/main/resources/META-INF

I am not "native" in Java development, so I might be just missing something.

@tobiasschaefer
Copy link
Collaborator

Hi @datakurre ,

I've actually never created a UI plugin for Camunda so I need some time to research your request.

@tobiasschaefer tobiasschaefer added enhancement New feature or request documentation Improvements or additions to documentation labels Jun 3, 2022
@datakurre
Copy link
Author

Hi @tobiasschaefer,

it's mainly about how those static resource files are packaged and discovered in Java. And that's something what has been hard for me to google, because Java is not my first language.

In Camunda Spring Boot, it's enough to add the overriding and additional files into apps "META-INF" like at https://gitlab.com/atsoukka/robot-rpa-playground/-/tree/master/camunda/app/src/main/resources/META-INF

It will somehow fallback/cascade its lookup into Camund webapps jar so that both custom and default resources are being served.

But with Camunda micronaut the behavior is different. When "META-INF" exists on app, it no longer looks files from camunda webapps jar.

So, I was able to make it work by copying everything into apps "META-INF". But was left wondering that there must be better way.

@lwluc
Copy link
Contributor

lwluc commented Jul 14, 2022

Hey @datakurre, @tobiasschaefer,

I took a quick look and I think these lines maybe need to be changed.
I was not able to test it yet, what do you think @tobiasschaefer?

@tobiasschaefer
Copy link
Collaborator

I stumbled across micronaut-projects/micronaut-servlet#114 which might be related.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants