You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The validation for required configuration elements is too strict. E.g., all proxy settings are optional (see https://maven.apache.org/xsd/settings-1.0.0.xsd, note the minOccurs="0") and some even have default values.
View XSD schema part
<xs:complexTypename="Proxy">
<xs:annotation>
<xs:documentationsource="version">1.0.0</xs:documentation>
<xs:documentationsource="description">The
<code><proxy></code>
element contains informations required to a proxy settings.
</xs:documentation>
</xs:annotation>
<xs:all>
<xs:elementminOccurs="0"name="active"type="xs:boolean"default="false">
<xs:annotation>
<xs:documentationsource="version">1.0.0</xs:documentation>
<xs:documentationsource="description">Whether this proxy configuration is the active one.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:elementminOccurs="0"name="protocol"type="xs:string"default="http">
<xs:annotation>
<xs:documentationsource="version">1.0.0</xs:documentation>
<xs:documentationsource="description">The proxy protocol.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:elementminOccurs="0"name="username"type="xs:string">
<xs:annotation>
<xs:documentationsource="version">1.0.0</xs:documentation>
<xs:documentationsource="description">The proxy user.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:elementminOccurs="0"name="password"type="xs:string">
<xs:annotation>
<xs:documentationsource="version">1.0.0</xs:documentation>
<xs:documentationsource="description">The proxy password.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:elementminOccurs="0"name="port"type="xs:int"default="8080">
<xs:annotation>
<xs:documentationsource="version">1.0.0</xs:documentation>
<xs:documentationsource="description">The proxy port.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:elementminOccurs="0"name="host"type="xs:string">
<xs:annotation>
<xs:documentationsource="version">1.0.0</xs:documentation>
<xs:documentationsource="description">The proxy host.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:elementminOccurs="0"name="nonProxyHosts"type="xs:string">
<xs:annotation>
<xs:documentationsource="version">1.0.0</xs:documentation>
<xs:documentationsource="description">The list of non-proxied hosts (delimited by |).</xs:documentation>
</xs:annotation>
</xs:element>
<xs:elementminOccurs="0"name="id"type="xs:string">
<xs:annotation>
<xs:documentationsource="version">1.0.0</xs:documentation>
</xs:annotation>
</xs:element>
</xs:all>
</xs:complexType>
Omitting optional settings currently leads to following error: proxies must contain id, active, protocol, host, port and nonProxyHosts.
To reproduce
Use following step in your GitHub action:
This will result in following error: proxies must contain id, active, protocol, host, port and nonProxyHosts, even when those settings are specified but empty ("nonProxyHosts": "").
Expected behavior
Should create settings.xml with specified settings.
The text was updated successfully, but these errors were encountered:
The validation for required configuration elements is too strict. E.g., all proxy settings are optional (see https://maven.apache.org/xsd/settings-1.0.0.xsd, note the
minOccurs="0"
) and some even have default values.View XSD schema part
Omitting optional settings currently leads to following error:
proxies must contain id, active, protocol, host, port and nonProxyHosts
.To reproduce
Use following step in your GitHub action:
This will result in following error:
proxies must contain id, active, protocol, host, port and nonProxyHosts
, even when those settings are specified but empty ("nonProxyHosts": ""
).Expected behavior
Should create
settings.xml
with specified settings.The text was updated successfully, but these errors were encountered: