Difference between revisions of "Maven Force Update"

From CSE231 Wiki
Jump to navigation Jump to search
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
 
=Option A: Force Update=
 
=Option A: Force Update=
[[File:MavenUpdateProjectA.png]]
+
*Right-click project
 
+
*Hover over "Maven"
[[File:MavenUpdateProjectB.png]]
+
*Click on "Update Project"
  
 
=Option B: Civil War Surgery=
 
=Option B: Civil War Surgery=
On Mac:
+
===On Mac===
Close Eclipse
+
*Close Eclipse
Launch Terminal
+
*Launch Terminal
mv ~/.m2/repository ~/.m2/dead
+
*mv ~/.m2/repository ~/.m2/dead
Open Eclipse
+
*Open Eclipse
Type Alt+F5 (note may need to press function (fn) key to trigger F5)
+
*Type Alt+F5 (note may need to press function (fn) key to trigger F5)
Project Menu -> Clean...
+
*Project Menu -> Clean...
On Windows:
 
  
Close Eclipse
+
===On Windows===
Launch Command Prompt
+
*Close Eclipse
cd .m2
+
*Launch Command Prompt
rename repository dead
+
*cd .m2
Open Eclipse
+
*rename repository dead
Type Alt+F5 (note may need to press function key to trigger F5)
+
*Open Eclipse
Project Menu -> Clean...
+
*Type Alt+F5 (note may need to press function key to trigger F5)
 +
*Project Menu -> Clean...

Latest revision as of 04:41, 31 December 2022

Option A: Force Update

  • Right-click project
  • Hover over "Maven"
  • Click on "Update Project"

Option B: Civil War Surgery

On Mac

  • Close Eclipse
  • Launch Terminal
  • mv ~/.m2/repository ~/.m2/dead
  • Open Eclipse
  • Type Alt+F5 (note may need to press function (fn) key to trigger F5)
  • Project Menu -> Clean...

On Windows

  • Close Eclipse
  • Launch Command Prompt
  • cd .m2
  • rename repository dead
  • Open Eclipse
  • Type Alt+F5 (note may need to press function key to trigger F5)
  • Project Menu -> Clean...