Konrad Windszus commented on JCRVLT-276:

 supports only a subset(!) of the formats defined by ISO8601, namely the ones 
listed in http://www.w3.org/TR/NOTE-datetime (compare with JCR-4267 and the 
javadoc). As this class is internally being used for 
{{JcrPackageDefinition.getCreated()}} the created date being generated by the 
package-maven-plugin must comply to this format.
The problem currently is timezone designator. 
* Using {{Z}} for {{SimpleDateFormat}} 
does not mean Zulu but rather {{Sign TwoDigitHours Minutes}}, e.g. {{+0200}}, 
this is not supported by {{o.a.j.util.ISO8601}}
* Using {{X}} for {{SimpleDateFormat}} 
means {{Sign TwoDigitHours}} or just {{Z}}, e.g. {{+02}}, , this is not 
supported by {{o.a.j.util.ISO8601}}
* Only the format {{XXX}} stands for the supported format  {{Sign TwoDigitHours 
: TwoDigitMinutes}}, e.g. {{+02:00}}

> Switch to timezone designators being understood by ISO8601.parse(...)
> ---------------------------------------------------------------------
>                 Key: JCRVLT-276
>                 URL: https://issues.apache.org/jira/browse/JCRVLT-276
>             Project: Jackrabbit FileVault
>          Issue Type: Bug
>          Components: package maven plugin
>    Affects Versions: package-maven-plugin-1.0.1
>            Reporter: Konrad Windszus
>            Priority: Major
>             Fix For: package-maven-plugin-1.0.2
> Currently in 
> https://github.com/apache/jackrabbit-filevault-package-maven-plugin/blob/trunk/src/main/java/org/apache/jackrabbit/filevault/maven/packaging/VaultMojo.java#L1038
>  an unsupported timezone designator is being used which leads to the fact 
> that the creation date cannot be evaluated via 
> {{JcrPackageDefinition.getCreated()}} and this always returns {{null}}.
> Supported designators are e.g. {{±hh:mm}}

This message was sent by Atlassian JIRA

Reply via email to