[
https://issues.apache.org/jira/browse/NETBEANS-2986?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17062558#comment-17062558
]
Jan Walkotte commented on NETBEANS-2986:
----------------------------------------
The bug is still reproducable in Netbeans 11.3 (i think on any operating system)
* Start a fresh installed Netbeans 11.3
* Add a server in "Services" view (server type does not matter at all, Tomcat,
Glassfish, Payara, or Wildfly will do)
* Open an arbitary Maven war project
* Open Project Properties dialog
** navigate to "Run" category
** choose "Server" just added
** fill in "Relative URL"
** click "OK" button
The relative URL will not be stored.
This is because of {{CustomizerRunWeb.isRunCompatible=false}}, seeĀ
{{./enterprise/maven.j2ee/src/org/netbeans/modules/maven/j2ee/ui/customizer/impl/CustomizerRunWeb.java}}
line 250
This is because of the 0th element of
{{ActionToGoalUtils#actionProviders(Project)}} result is of type
{{MicroActionsProvider}}, seeĀ
{{./java/maven/src/org/netbeans/modules/maven/execute/ActionToGoalUtils.java}}
line 99
MicroActionsProvider does not define property
{{MavenJavaEEConstants.ACTION_PROPERTY_DEPLOY="netbeans.deploy"}} for any of
its actions, see
{{./enterprise/payara.micro/src/org/netbeans/modules/fish/payara/micro/project/MicroActionsProvider.java}}
which reads action mappings from
{{./enterprise/payara.micro/src/org/netbeans/modules/fish/payara/micro/project/resources/action-mapping.xml}}
Same holds for {{CustomizerRunWeb.isDebugCompatible}} and
{{CustomizerRunWeb.isProfileCompatible}}
I'm not sure how to solve the issue. Maybe MicroActionsProvider actions should
define property "netbeans.deploy"="true", or
ActionToGoalUtils#actionProviders(Project) should filter out
MicroActionsProvider types.
> Relative URL not saved in Project Properties
> --------------------------------------------
>
> Key: NETBEANS-2986
> URL: https://issues.apache.org/jira/browse/NETBEANS-2986
> Project: NetBeans
> Issue Type: Bug
> Components: javaee - Maven
> Affects Versions: 11.1
> Environment: Netbeans 11.1
> Operating System: Debian GNU/Linux 9 (stretch)
> Kernel: Linux 4.9.0-9-amd64
> Architecture: x86-64
> Reporter: Dave Hutira
> Priority: Major
> Attachments: Screenshot at 2019-08-14 19-53-53.png, dukesAge.zip
>
>
> Right click on a project in the Projects list, and select Properties. From
> the Categories list, select Run and enter a Relative URL. Select OK; go back,
> and the Relative URL is blank.
> A similar or identical issue appears in the 'old' Netbeans Bugzilla system as
> Bug 146672 and 178650.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists