Change location where eclipse create .eclipse, .p2, and other folders

后端 未结 2 1693
谎友^
谎友^ 2021-01-17 16:35

I see that eclipse create in my user home folder some folders like .eclipse .p2 etc... I want change this default folder(I want save all in a D: location.). I read this Chan

2条回答
  •  有刺的猬
    2021-01-17 16:39

    Some Eclipse plug-ins store data that are intended to be used by multiple Eclipse installations in subdirectories of your home directory. For example, the Eclipse IDE for Java Developers uses following directories:

    • .eclipse
      • org.eclipse.epp.logging.aeri - Automated Error Reporting (AERI)
      • org.eclipse.equinox.security - secure storage for e. g. passwords
      • org.eclipse.oomph.* - see Window > Preferences: Oomph
      • org.eclipse.recommenders.models.rcp - Eclipse Code Recommenders
      • ...
    • .m2 - Maven repository used by M2Eclipse
    • .p2 - Equinox p2 (install/update subsystem)
    • .tooling - used by the Eclipse plug-ins for Gradle

    Additional plug-ins might or might not use additional directories to store data.

    The trick is to set the home directory used by Java/Eclipse by adding the following line after the line -vmargs to your eclipse.ini:

    -D"user.home=D:/Programmi/Eclipse/home"
    

提交回复
热议问题