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

Summary: Update a server instance id programmatically for Maven-based web projects.
Product: serverplugins Reporter: Valery-Sh
Component: InfrastructureAssignee: Petr Hejl <phejl>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.0   
Hardware: PC   
OS: Windows 7   
Issue Type: TASK Exception Reporter:

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?