I have two maven projects in eclipse webapp and serviceImpl . webapp links serviceImpl .
When the serviceImpl project serviceImpl closed in eclipse and I build and run the webapp on Tomcat, the application works fine. But when I run webapp while serviceImpl open, I get an error that HTTP Status 500 - Configuration problem: Failed to import bean definitions from URL location [classpath:META-INF/serviceimpl-context.xml] . If I look in the META-INF folder on the machine, I see that eclipse has deleted the xml file.
When I create and run the application on the command line or in IntelliJ, the problem also does not occur.
In eclipse, the Deployment Assembly webapp settings contain an open serviceImpl project and source links to some serviceImpl-2.0.0-SNAPSHOT.jar .
Also Java Build Path โ Libraries โ Maven Dependencies has a serviceImpl node:

We also use Spring Application Context.
EDIT:
When I do on the command line:
mvn clean install -P build-modules-test -Dmaven.test.skip=true
then an xml file is created and the application works fine. But in eclipse, "right-click the project -> Maven -> Update project" deletes these files, but does not create them again ... therefore an error occurs
source share