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

Static assets overwrite #41449

Open
gbourant opened this issue Jun 26, 2024 · 3 comments
Open

Static assets overwrite #41449

gbourant opened this issue Jun 26, 2024 · 3 comments
Labels
area/vertx kind/enhancement New feature or request

Comments

@gbourant
Copy link

Description

I have the following project structure and the project-b has a (maven) dependency to project-a.

If i run quarkus:dev on project-b, it displays the index.html and logo.svg of project-a.

It would be great if project-a's static asses get overwritten if they exist in project-b's META-INF/resources directory.

project-a/
├─ src/
│ ├─ main/
│ │ ├─ resources/
│ │ │ ├─ META-INF/
│ │ │ │ ├─ resources/
│ │ │ │ │ ├─ index.html
│ │ │ │ │ ├─ logo.svg

project-b/
├─ src/
│ ├─ main/
│ │ ├─ resources/
│ │ │ ├─ META-INF/
│ │ │ │ ├─ resources/
│ │ │ │ │ ├─ index.html
│ │ │ │ │ ├─ logo.svg

Implementation ideas

No response

@cescoffier
Copy link
Member

The resources are loading from the classloader. So, the order depends on the classloader order. I'm wondering if we can influence it in this case.

@ia3andy Did you already encounter this?

@cescoffier
Copy link
Member

This might be related to @dmlloyd work on classlaoders.

@dmlloyd
Copy link
Member

dmlloyd commented Nov 29, 2024

Any proposal for run time class loading (#43749) should include child-first resource loading as a feature.

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

No branches or pull requests

4 participants