Successful build in Maven still showing errors in Eclipse

前端 未结 18 1899
猫巷女王i
猫巷女王i 2020-12-24 07:04

I\'m having something quite peculiar here, my build is successful in maven when I type \"mvn clean install\" however once imported into Eclipse it\'s showing errors.

18条回答
  •  无人及你
    2020-12-24 07:19

    In my case, eclipse starts to show all errors after I changed some versions of dependencies in pom.xml, however the command line mvn clean install build successfully

    1. I deleted folders of the dependencies I changed manually from the .m2 repositories (in my case everything under org.apache.beam), because I also has corrupted dependency issues.
    2. mvn clean build the project, this downloaded the dependencies again
    3. right click project: maven -> update project
    4. delete the project from eclipse (but not from disk) and reimport (this actually left me with 1 error still, then i delete and reimported again)

提交回复
热议问题