belyid
belyid

Reputation: 871

Resource file is missing with maven

I'm working on a GWT project with maven. Since I want to keep my workspace organized I'm putting all my resources on src/main/resources instead of src/main/java. The problem is that eclipse gives an compile error saying that the file is missing. On the other hand if I insist in proceding the project compiles and works properly (it does find supposedly missing resources). How can I correct this?

Thank you.

Upvotes: 1

Views: 1096

Answers (1)

khmarbaise
khmarbaise

Reputation: 97359

Remove the project from Eclipse and afterwards delete the Eclipse specific files (.settings, .classpath, .project) and import the project from scratch. The problem is based on the thing that the life-cycle is started from scratch in case of importing it. If a project is already important some parts seemed to be not executed.

Upvotes: 1

Related Questions