You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After editing the <dependencies> section in pom.xml (but not the other parts) and saving the file the resources are removed from target/classes (.class files stay there). To bring the resource back, a meaningless edit (a whitespace change) is sufficient in either pom.xml, a java file or a resource file. Having combined or separate java and resources folders does not make a difference.
It's still the case in Eclipse 2023-12 with m2e 2.4.300.20231203-1234 updated from latest.
I first noticed it in Eclipse 2023-09 with m2e 2.4.100 and it was working fine in Eclipse 2021-03 with m2e 1.17.2.
To reproduce, create a maven project with jar packaging, default layout, and create one resource file and one java file. Edit pom.xml by adding or removing a dependency. Go to target/classes/ and see that only the .class file is there. Edit pom.xml again and see that the resource and the manifest are created. Example pom:
Thanks for this issue, but it looks like this is a duplicate of #1511.
I'll close this as such, please follow that issue for updates.
If you think this isn't a duplicate please let me know and reopen this.
After editing the
<dependencies>
section in pom.xml (but not the other parts) and saving the file the resources are removed from target/classes (.class files stay there). To bring the resource back, a meaningless edit (a whitespace change) is sufficient in either pom.xml, a java file or a resource file. Having combined or separate java and resources folders does not make a difference.It's still the case in Eclipse 2023-12 with m2e 2.4.300.20231203-1234 updated from latest.
I first noticed it in Eclipse 2023-09 with m2e 2.4.100 and it was working fine in Eclipse 2021-03 with m2e 1.17.2.
To reproduce, create a maven project with jar packaging, default layout, and create one resource file and one java file. Edit pom.xml by adding or removing a dependency. Go to target/classes/ and see that only the .class file is there. Edit pom.xml again and see that the resource and the manifest are created. Example pom:
eclipse-configuration.txt
The text was updated successfully, but these errors were encountered: