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

application.properties file not copied into target output folder anymore #1148

Closed
martinlippert opened this issue Dec 19, 2022 · 4 comments
Closed

Comments

@martinlippert
Copy link

I have a file called application.properties in the src/main/resources folder of my maven project, but the file doesn't get copied to the target output folder anymore. This worked with m2e 2.0.5, but does not work anymore with m2e 2.0.6 or m2e 2.1.2. Any idea what might be going wrong here?

As a sample project, I use a simple project generated via https://start.spring.io, selecting Java 17, Maven, Spring Boot 2.7.6 and the web and actuator starter.

First report of this appeared here: spring-projects/sts4#929

@laeubi
Copy link
Member

laeubi commented Dec 19, 2022

I think the issue is the same as discussed here:

It would really help if someone can show the problem with a minimal-reproducer at best as a test-case for m2e so we can make sure such thing not happen again.

@KaRkY
Copy link

KaRkY commented Dec 21, 2022

I found out what the problem is. If I add ".mvn" folder at the root of the project then resources do not get copied over.

@HannesWell
Copy link
Contributor

#1150 is about the same issue, but contains a test-case. Therefore I'm closing this as duplicate and all further work is tracked with #1150.

@HannesWell
Copy link
Contributor

Duplicate of #1150

@HannesWell HannesWell marked this as a duplicate of #1150 Dec 30, 2022
@HannesWell HannesWell closed this as not planned Won't fix, can't repro, duplicate, stale Dec 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants