Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-2451

Run main project disabled for Spring Boot applications

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 11.0
    • Fix Version/s: None
    • Component/s: projects - Gradle
    • Labels:

      Description

      The menu options for "Run Main Project" and "Debug Main Project" are disabled for Spring Boot applications. See attached screen recording (note also that the menu does not update automatically).

       

      Steps to reproduce:
      1) Generate a demo Spring Boot Gradle project here:
      https://start.spring.io/

      2) Open Project in Netbeans. Menu items are disabled.

       

      Workarounds:

      1) Use the "bootRun" task as found in the Navigator panel.

      or 2) Modify build.gradle to add in the application plugin and mainClassName variable. This causes NetBeans to add a "run" task and enables the menu.

       

       

      Product Version: Apache NetBeans IDE 11.0 (Build incubator-netbeans-release-404-on-20190319)
      Java: 1.8.0_192; Java HotSpot(TM) 64-Bit Server VM 25.192-b12
      Runtime: Java(TM) SE Runtime Environment 1.8.0_192-b12
      System: Mac OS X version 10.14.4 running on x86_64; UTF-8; en_GB (nb)

        Attachments

          Activity

            People

            • Assignee:
              lkishalmi Laszlo Kishalmi
              Reporter:
              hhgg hg
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: