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

STS Tools 4.17.1 for Eclipse is ignoring files from src/main/resources #956

Closed
iwanzarembo opened this issue Jan 18, 2023 · 1 comment
Closed
Labels
for: eclipse something that is specific for Eclipse status: duplicate type: bug

Comments

@iwanzarembo
Copy link

Description
The new STS Tools 4.17.1 for Eclipse version is ignoring files from src/main/resources. At the end also profile dependent settings. In fact it seems to ignore all files and configs in the resource folder.

To Reproduce
Create a new project (build tool maven) from the starter functionality with dependencies below:

  • Spring Boot DevTools
  • Spring Web

Then I copied a differentbanner.txt into the src/main/resources folder and started the application from the Boot Dashboard view.
The result is that the banner is not shown in the console.
See this simple demo video:

IDE_Bug_demo.mp4

The issue does not occur using STS Tools 4.16.0. See video:

IDE_Bug_demo_works.mp4

I am not sure if it helps, but I also checked out the command line when starting the application. The only difference is the used java agent.
Not working:
"-javaagent:C:\usr\IDEs\sts-bundle\sts-4.17.1.RELEASE\configuration\org.eclipse.osgi\267\0.cp\lib\javaagent-shaded.jar"
Working:
"-javaagent:C:\usr\IDEs\sts-bundle\sts-4.16.0.RELEASE\configuration\org.eclipse.osgi\268\0.cp\lib\javaagent-shaded.jar"

@martinlippert
Copy link
Member

I think you are hitting this issue: #929 - therefore closing this as a duplicate. #929 (comment) contains a description how to grab the latest snapshot from m2e to fix the issue. I hope that there will be a new release of m2e around when we ship 4.17.2 in early Feb to include this fix.

@martinlippert martinlippert closed this as not planned Won't fix, can't repro, duplicate, stale Jan 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
for: eclipse something that is specific for Eclipse status: duplicate type: bug
Projects
None yet
Development

No branches or pull requests

2 participants