This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 235967 - Update a server instance id programmatically for Maven-based web projects.
Summary: Update a server instance id programmatically for Maven-based web projects.
Status: NEW
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Infrastructure (show other bugs)
Version: 8.0
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Petr Hejl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-14 10:14 UTC by Valery-Sh
Modified: 2013-09-14 10:14 UTC (History)
0 users

See Also:
Issue Type: TASK
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Valery-Sh 2013-09-14 10:14:51 UTC
Suppose we have an instance of J2eeModuleProvider for the web project named WebApp. We need to change that project's server instance id programmatically. 

 j2eeprovider.setServerInstanceId(newValue);

It works fine for Ant-based web projects. But for  Maven-based projects the code above is not enough. There is a workaround. Just get AuxiliaryProperties and change the property named netbeans.deployment.server.id. But the name is correct only for NetBeans 7.3. NetBeans 74betta  requires org-netbeans-modules-maven-j2ee.netbeans_2e_deployment_2e_server_2e_id.

Is't it a bug that j2eeprovider.setServerInstanceId  doesn't affect the Maven-based web projects?