-
Notifications
You must be signed in to change notification settings - Fork 145
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
Fix running quarkus:dev #2475
Fix running quarkus:dev #2475
Conversation
since quarkus 2.4.0.Final quarkus:dev expects the META-INF/resources folder under target. The issue is happening because of this line: https://github.com/quarkusio/quarkus/pull/20500/files#diff-dbfecb8ead57f5ad197c876b824b224ea62a3711ba4a3d2c0bb07da027aa11d1R708 Previously it was doing this via `localProject.getSourcesDir().toAbsolutePath()` but now it is checking `module.getMainResources().iterator().next().getDestinationDir().toPath().toAbsolutePath()`. Since our `META-INF/resources` directory is basically pointing to the `build` dir as defined in https://github.com/projectnessie/nessie/blob/1d9e32e47c573f9c0906a264f83066f6a45dde03/ui/pom.xml#L33-L39 the actual `META-INF/resources` directory doesn't exist under `target`, thus `quarkus:dev` complains
<resource> | ||
<targetPath>META-INF/resources</targetPath> | ||
<directory>build</directory> | ||
<filtering>false</filtering> | ||
</resource> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we have to specify sources? Would it not use the default sources automatically?
Codecov Report
@@ Coverage Diff @@
## main #2475 +/- ##
============================================
+ Coverage 84.17% 84.19% +0.02%
- Complexity 1915 1916 +1
============================================
Files 251 251
Lines 10772 10772
Branches 764 764
============================================
+ Hits 9067 9070 +3
+ Misses 1400 1397 -3
Partials 305 305
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
@@ -185,6 +185,29 @@ | |||
</execution> | |||
</executions> | |||
</plugin> | |||
<!-- since quarkus 2.4.0.Final quarkus:dev expects the META-INF/resources folder under target --> | |||
<plugin> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
other modules also don't have this config right ? how it is working ?
It looks like the |
Will be fixed by quarkusio/quarkus#20974 |
since quarkus 2.4.0.Final quarkus:dev expects the META-INF/resources
folder under target.
The issue is happening because of this line: https://github.com/quarkusio/quarkus/pull/20500/files#diff-dbfecb8ead57f5ad197c876b824b224ea62a3711ba4a3d2c0bb07da027aa11d1R708
Previously it was doing this via
localProject.getSourcesDir().toAbsolutePath()
but now it is checkingmodule.getMainResources().iterator().next().getDestinationDir().toPath().toAbsolutePath()
.Since our
META-INF/resources
directory is basically pointing to thebuild
dir as defined innessie/ui/pom.xml
Lines 33 to 39 in 1d9e32e
META-INF/resources
directory doesn't exist undertarget
, thusquarkus:dev
complains