You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Olivier Lamy (Jira)" <ji...@apache.org> on 2021/08/17 23:17:00 UTC

[jira] [Resolved] (ARCHETYPE-618) Some complex default value expressions trigger NullPointerException

     [ https://issues.apache.org/jira/browse/ARCHETYPE-618?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Olivier Lamy resolved ARCHETYPE-618.
------------------------------------
    Resolution: Fixed

PR merged

thanks!

> Some complex default value expressions trigger NullPointerException
> -------------------------------------------------------------------
>
>                 Key: ARCHETYPE-618
>                 URL: https://issues.apache.org/jira/browse/ARCHETYPE-618
>             Project: Maven Archetype
>          Issue Type: Bug
>    Affects Versions: 3.2.0
>            Reporter: Matthew Jason Benson
>            Assignee: Olivier Lamy
>            Priority: Major
>             Fix For: 3.2.1
>
>
> e.g. required property with default value 
> {{$\{artifactId.class.forName('org.codehaus.plexus.util.StringUtils').capitaliseAllWords($artifactId.replaceAll('[^A-Za-z_\$0-9]', ' ').replaceFirst('^(\d)', '_$1').replaceAll('\d', '$0 ')}}
> {{.replaceAll('[A-Z](?=[^A-Z])', ' $0'){{.toLowerCase()).replaceAll('\s', '')}}}}}
>  
> (My) recent (yet unreleased) Velocity-based improvements were a little too naive and bear further improvement.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)