Christian Oyarzun created NETBEANS-2920:
-------------------------------------------

             Summary: Maven Netbeans Application project creation fails with 
UnsupportedOperationException
                 Key: NETBEANS-2920
                 URL: https://issues.apache.org/jira/browse/NETBEANS-2920
             Project: NetBeans
          Issue Type: Bug
          Components: apisupport - Maven
    Affects Versions: 11.1
            Reporter: Christian Oyarzun


Steps to reproduce:
 # New Project
 # Select Java with Maven -> Netbeans Application
 # Next
 # Next
 # Select Create Module Project
 # Finish

Project creation fails with the following exception.

java.lang.UnsupportedOperationException
 at java.util.Collections$UnmodifiableCollection.add(Collections.java:1057)
 at 
org.netbeans.modules.maven.apisupport.NBMNativeMWI$AdditionalOperations.performOperation(NBMNativeMWI.java:393)
 at 
org.netbeans.modules.maven.apisupport.NBMNativeMWI$AdditionalOperations.performOperation(NBMNativeMWI.java:141)
 at 
org.netbeans.modules.maven.model.Utilities.performPOMModelOperations(Utilities.java:318)
 at 
org.netbeans.modules.maven.spi.newproject.CreateProjectBuilder.create(CreateProjectBuilder.java:146)
 at 
org.netbeans.modules.maven.apisupport.NBMNativeMWI.instantiate(NBMNativeMWI.java:69)
 at 
org.netbeans.modules.maven.apisupport.NbmWizardIterator.instantiate(NbmWizardIterator.java:169)
 at 
org.openide.loaders.TemplateWizard$InstantiatingIteratorBridge.instantiate(TemplateWizard.java:1028)
 at 
org.openide.loaders.TemplateWizard.handleInstantiate(TemplateWizard.java:580)
 at 
org.netbeans.modules.project.ui.NewProjectWizard.handleInstantiate(NewProjectWizard.java:51)
 at 
org.openide.loaders.TemplateWizard.instantiateNewObjects(TemplateWizard.java:414)
 at 
org.openide.loaders.TemplateWizardIterImpl.instantiate(TemplateWizardIterImpl.java:223)
 at 
org.openide.loaders.TemplateWizardIteratorWrapper.instantiate(TemplateWizardIteratorWrapper.java:135)
 at org.openide.WizardDescriptor.callInstantiateOpen(WizardDescriptor.java:1605)
 at org.openide.WizardDescriptor.callInstantiate(WizardDescriptor.java:1546)
 at org.openide.WizardDescriptor.access$2300(WizardDescriptor.java:67)
[catch] at 
org.openide.WizardDescriptor$Listener$2$1.run(WizardDescriptor.java:2233)
 at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418)
 at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
 at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278)
 at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)

 

If you do not create a module project the wizard will complete. But if you try 
to create a new NetBeans Module to the maven parent project, you will get the 
same exception.



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

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

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

Reply via email to