Maven and Eclipse problem - looking for resources

后端 未结 6 939
灰色年华
灰色年华 2020-12-18 12:15

I have a problem, that maven is looking for resources inside of Eclipse installation folder.

It is saying:

This file was not found: file:/C:/eclipse/         


        
6条回答
  •  醉梦人生
    2020-12-18 12:22

    You have a problem somewhere with your configuration. Do some cleanup and start again.

    • Clean your workspace: delete the project and its files on the file system (make sure everything is under version control first of course), delete existing "Maven Build" Run Configurations.
    • Checkout your project somewhere on your file system (not in the workspace, this is a bad practice).
    • Import it in Eclipse (Import... > Maven Projects).
    • Run your tests with Maven.

    P.S.: I'm assuming you are using m2eclipse but this is far from obvious, you should give clear information on your context.

提交回复
热议问题