[ https://issues.apache.org/jira/browse/MNG-5864?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Osipov closed MNG-5864. ------------------------------- Resolution: Invalid {{optional}} is defined as string in the XSD as well as in the generated model. > "optional" attribute validation > ------------------------------- > > Key: MNG-5864 > URL: https://issues.apache.org/jira/browse/MNG-5864 > Project: Maven > Issue Type: Bug > Affects Versions: 3.3.3 > Environment: JBoss Developer Studio 8.1.0.GA > Reporter: Vsevolod Golovanov > > I have some dependencies, whose {{optional}} attributes are defined by > property expressions. E.g.: > {code} > <dependency> > <!-- ... --> > <optional>${someProperty}</optional> > </dependency> > {code} > This works fine, but leads to validation errors in JBoss Developer Studio: > {noformat} > cvc-datatype-valid.1.2.1: '${someProperty}' is not a valid value for > 'boolean'. > cvc-type.3.1.3: The value '${someProperty}' of element 'optional' is not > valid. > {noformat} > I far as I understand the problem is in [the > XSD|http://maven.apache.org/xsd/maven-4.0.0.xsd]: > {code} > <xs:element name="optional" minOccurs="0" type="xs:boolean" default="false"> > {code} > It's defined as boolean, yet [Maven > Model|http://maven.apache.org/ref/3.3.3//maven-model/maven.html] says: > {quote}Note: While the type of this field is String for technical reasons, > the semantic type is actually Boolean.{quote} -- This message was sent by Atlassian JIRA (v6.3.4#6332)