Difference between revisions of "Maven Force Update"

From CSE231 Wiki
Jump to navigation Jump to search
 
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
−
 
+
*mv ~/.m2/repository ~/.m2/dead
−
Launch Terminal
+
*Open Eclipse
−
 
+
*Type Alt+F5 (note may need to press function (fn) key to trigger F5)
−
mv ~/.m2/repository ~/.m2/dead
+
*Project Menu -> Clean...
−
 
 
−
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...
+
===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...

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...