Cookbooks
maven
documentation
Maven Settings

maven_settings

Resource provider for modifying the maven settings.

Actions

ActionDescriptionDefault
updateUpdates a global maven setting to a new value.Yes

Attributes

AttributeDescriptionTypeDefault
pathPeriod '.' delimited path to element of the settings that is going to be changed.Stringname
valueThe new value to update the path to.String, TrueClass, FalseClass, Hash

In order to use this resource you first need to run settings recipe which will installed required bury gems for you. Find below exampl on how to update proxy in settings.xml

maven_settings "settings.proxies" do
  value "proxy" => {
    "active" => true,
    "protocaol" => "http",
    "host" => "proxy.myorg.com",
    "port" => 80,
    "nonProxyHosts" => ".myorg.com"
  }
end