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.
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?