Problem loading resources while running in Eclipse

前端 未结 7 1960
[愿得一人]
[愿得一人] 2021-01-06 05:56

I\'m working on a swing project, using maven2 (from command-line) and eclipse (without maven integration). So, I generate the eclipse project through maven eclipse plugi

7条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-06 06:37

    What I would suggest is stop using eclipse:eclipse (sorry - harsh I know). I used it for about 8 months, cant believe it took me that long, and used M2Eclipse. M2Eclipse is an eclipse plugin in which you do the following.

    1. Enable Dependency Management.
    2. Update Project Configuration
    3. (In Eclipse) Project -> Build Project
    4. (In Eclipse) Run Application

    It may not seem it, but its a much easier and less frustrating way of doing it.

    Before, with eclipse:eclipse. You would have to run it then hit refresh and hope that everything is configured - if you have a multi-module pom things can really go wrong.

提交回复
热议问题