How do I get my Eclipse-Maven project to automatically update its classpath when I change a dependency in my pom.xml file?

前端 未结 5 1990
轻奢々
轻奢々 2020-12-01 14:36

I’m using Eclipse Mars with Maven (v 3.3). When I update a dependency in my pom (change the version), my Eclipse-Maven project doesn’t pick it up, even when I right click m

5条回答
  •  执笔经年
    2020-12-01 15:28

    Three Mandatory checks you should do for automatic update in your classpath

    1. Your Repository is not in-sync with your Eclipse IDE, Please check the below settings in your IDE.
    2. Right Click your any POM.xml from your IDE and check for the Maven profile which should be auto-activated. Also offline and Force update check box shouldn't be enabled. Please refer the below image.
    3. Always check for your user settings which should reflect your local maven settings.xml, as shown in the below figure.
    4. After performing all these checks, refresh your Eclipse Work-space to get these changes reflected.

提交回复
热议问题