Includes things that should not be distributed with the pom.xml file, such as developer identity, along with local settings, like proxy information.
The default location for the settings file is ~/.m2/settings.xml
An XSD is available at:
]]>
Profile
, Proxy
and Server
.
]]>
activeProxy
field to null
*/
public void flushActiveProxy()
{
this.activeProxy = null;
}
/**
* @return the first active proxy
*/
public synchronized Proxy getActiveProxy()
{
if (activeProxy == null)
{
java.util.ListprofileMap
field to null
*/
public void flushProfileMap()
{
this.profileMap = null;
}
/**
* @return a Map of profiles field with Profile#getId()
as key
* @see org.apache.maven.settings.Profile#getId()
*/
public java.util.Map getProfilesAsMap()
{
if ( profileMap == null )
{
profileMap = new java.util.LinkedHashMap();
if ( getProfiles() != null )
{
for ( java.util.Iterator it = getProfiles().iterator(); it.hasNext(); )
{
Profile profile = (Profile) it.next();
profileMap.put( profile.getId(), profile );
}
}
}
return profileMap;
}
//[MNG-3954] :: this is required for the release plugin
private RuntimeInfo runtimeInfo;
public void setRuntimeInfo( RuntimeInfo runtimeInfo )
{
this.runtimeInfo = runtimeInfo;
}
public RuntimeInfo getRuntimeInfo()
{
if ( runtimeInfo == null )
{
runtimeInfo = new RuntimeInfo();
}
return runtimeInfo;
}
]]>