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

Unexpected behavior over "blade create" inside maven workspace

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Reorganized
    • Affects Version/s: 7.3
    • Fix Version/s: None
    • Component/s: blade-cli
    • Labels:
      None

      Description

      After the creation of a liferay maven workspace: "blade init -v 7.3.7 -b maven"

      when trying to generate any template module with blade create command, for example: "blade create -t api test-api", a NullPointerException occurs:

      java.lang.NullPointerExceptionjava.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:506) at com.liferay.blade.cli.BladeCLI.main(BladeCLI.java:135)
      

      There is a way around this error, that is specifying the version by the end of the command:  "-v 7.3.7".

      But, over a gradle workspace, there is no need to specify the version of the module.

       

       

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            paulo.albuquerque Paulo Albuquerque
            Participants of an Issue:
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Packages

                Version Package