Is it possible to configure Studio's Maven properties directly in a file?

1
0
-1

Hi,

As the documentation explains, Maven can be configured through the Studio preferences: Edit > Preferences > Eclipse > Maven.

However, is it possible to set the Maven properties directly in a configuration file of sorts, instead of having to do it through the Studio's menu?

Thanks,

Unai

2 answers

1
0
-1
This one is the BEST answer!

(I am posting here another answer given by Romain to me directly, which happened to be what my original question was asking for. Thanks, Romain!)

You can also set the maven m2e configuration properties by editing the file: \worksapce\.metadata\.plugins\org.eclipse.core.runtime\.settings\org.eclipse.m2e.core.prefs

  • Define the configuration properties in that file.
    For example, for the path of the user settings.xml file, set the property: eclipse.m2.userSettingsFile
    e.g.:

eclipse.m2.userSettingsFile=C\:\\Users\\Romain\\.m2\\settings.bonita.xml
eclipse.preferences.version=1

1
0
-1

Hi,

It depends on what you need to configure. For everything purely maven, you can directly access the settings.xml on your file system (${USER_HOME}/.m2/settings.xml by default).
For eclipse maven integration (m2e) preferences, you have to use the UI.

HTH
Romain

Notifications