Uploaded image for project: 'PUBLIC - Liferay BLADE'
  1. PUBLIC - Liferay BLADE
  2. BLADE-652

REST Builder template creation fails in Maven Liferay Workspace

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: No Longer Reproducible
    • Affects Version/s: 4.0.9
    • Fix Version/s: 4.0.10
    • Component/s: blade-cli
    • Labels:
      None

      Description

      Steps to reproduce:

      • blade init -b maven liferaymvn
      • When prompt, choose any Liferay version
      • cd liferaymvn
      • blade create
      • When prompt, choose 18 (rest-builder)
      • When prompt, give a name (e.g. my-rest-builder)

      Expected:

      Successfully create the structure of a REST builder module and its submodules and be able to build it.

      Actual:

      Fails with the following error:

       

      null
      java.lang.NullPointerException
              at java.util.regex.Matcher.getTextLength(Matcher.java:1283)
              at java.util.regex.Matcher.reset(Matcher.java:309)
              at java.util.regex.Matcher.<init>(Matcher.java:229)
              at java.util.regex.Pattern.matcher(Pattern.java:1093)
              at com.liferay.project.templates.extensions.util.VersionUtil.isLiferayVersion(VersionUtil.java:62)
              at com.liferay.project.templates.internal.ProjectGenerator.generateProject(ProjectGenerator.java:72)
              at com.liferay.project.templates.ProjectTemplates.<init>(ProjectTemplates.java:364)
              at com.liferay.blade.cli.command.CreateCommand.execute(CreateCommand.java:296)
              at com.liferay.blade.cli.command.CreateCommand.execute(CreateCommand.java:267)
              at com.liferay.blade.extensions.maven.profile.CreateCommandMaven.execute(CreateCommandMaven.java:66)
              at com.liferay.blade.cli.BladeCLI._runCommand(BladeCLI.java:1343)
              at com.liferay.blade.cli.BladeCLI.runCommand(BladeCLI.java:666)
              at com.liferay.blade.cli.BladeCLI.run(BladeCLI.java:606)
              at com.liferay.blade.cli.BladeCLI.main(BladeCLI.java:135)
      

       

      Environment:

      • OS: macOS Big Sur 11.2.3
      • Java: OpenJDK Runtime Environment Corretto-8.302.08.1 (build 1.8.0_302-b08)
      • Blade: 4.0.9.202107011607

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            louis-guillaume.durand Louis-Guillaume Durand
            Participants of an Issue:
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Packages

                Version Package
                4.0.10