m2eclipse issues ArtifactTransferException - But pom.xml compiles / installs from the command line

前端 未结 3 845
眼角桃花
眼角桃花 2021-02-03 15:10


        
3条回答
  •  感动是毒
    2021-02-03 15:28

    This is very short tip to resolve the error “ArtifactTransferException: Could not transfer artifact” that may occur in Maven project in Eclipse.

    Steps to resolve:

     1. Open folder by running this text (without Quotes) in Search Explorer of Window “%USERPROFILE%\.m2″.
     2. After running above command, “m2″ folder of maven will open. Now search for file (without Quotes) “*.lastUpdated”.
     3. In this step, delete all the files found by running Step 2.
     4. Now go to Eclipse project and select “Maven | Update Dependency” or “Maven | Update Project”.
    

    Happy Coding.

提交回复
热议问题