-
Notifications
You must be signed in to change notification settings - Fork 116
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
Resources handling is broken when there is a .mvn folder #1150
Comments
Thanks for the detailed report. I can reproduce the issue with the current master. |
Was able to record the following exception that is unfortunately swallowed at the moment (I think that should change and at least end up in the Error-log if not even causing a warning or error):
One can catch that by setting a break-point in: m2e-core/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/embedder/MavenExecutionContext.java Line 333 in 6c5ba5d
Actually that exception should be propagated (wrapped in a |
@HannesWell can you share your example as a test in m2ecore? I want to take a look at this. |
Done in #1160. |
Any idea in which release the fix for this will ship? And a rough idea when that release will ship? |
Please try out the latest snapshot build, you can use this p2 repository: https://download.eclipse.org/technology/m2e/snapshots/latest/ |
Yeah, tried the snapshot already, works all fine. Many many thanks for fixing this, btw, very much appreciated. Just looking at a release for inclusion in one of our next builds here... :-) |
When there is a .mvn folder (it does not even need to contain anything) at the root of the imported module or multi modules tree, resources files are not copied to
target/classes
anymore.To reproduce:
project-with-resources.zip
-> among other things, a
target/classes
is generated, but it does not contain the expected resource file namedfile.txt
.mvn
folderMaven
->Update Project...
->OK
-> the file
target/classes/file.txt
appearI did not have this problem in Eclipse 2022-06 (I had other problems with 2022-09 like #1005, so I did not really use it much).
Eclipse version: 2022-12
Maven Integration for Eclipse version: 2.1.2.20221130-2239
The text was updated successfully, but these errors were encountered: