You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "hg (JIRA)" <ji...@apache.org> on 2019/04/23 11:34:00 UTC

[jira] [Comment Edited] (NETBEANS-2451) Run main project disabled for Spring Boot applications

    [ https://issues.apache.org/jira/browse/NETBEANS-2451?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16823954#comment-16823954 ] 

hg edited comment on NETBEANS-2451 at 4/23/19 11:33 AM:
--------------------------------------------------------

I've found a better fix... create a gradle.properties file in the root of the project containing the following:
{noformat}
action.debug.args=bootRun --debug-jvm
action.run.args=bootRun
{noformat}
These can also be added via the GUI. Project Properties > Build Actions

 

It'd be nice if Netbeans handled this transparently/automatically.


was (Author: hhgg):
I've found a better fix... create a gradle.properties file in the root of the project containing the following:
{noformat}
action.debug.args=bootRun --debug-jvm
action.run.args=bootRun
{noformat}
These can also be added via the GUI. Project Properties > Build Actions

> Run main project disabled for Spring Boot applications
> ------------------------------------------------------
>
>                 Key: NETBEANS-2451
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-2451
>             Project: NetBeans
>          Issue Type: Bug
>          Components: projects - Gradle
>    Affects Versions: 11.0
>            Reporter: hg
>            Assignee: hg
>            Priority: Major
>              Labels: Gradle
>         Attachments: netbeans-run-issue.mp4
>
>
> 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)



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists