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

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

Matthew Jason Benson created ARCHETYPE-618:
----------------------------------------------

             Summary: 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.1
            Reporter: Matthew Jason Benson


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)