[ 
https://issues.apache.org/jira/browse/NETBEANS-3238?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Dmitry Avtonomov updated NETBEANS-3238:
---------------------------------------
    Environment: 
- Win10
- Oracle JDK 8 (Java HotSpot(TM) 64-Bit Server VM (build 25.144-b01, mixed mode)


> Can't add a module to Maven based platform app
> ----------------------------------------------
>
>                 Key: NETBEANS-3238
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-3238
>             Project: NetBeans
>          Issue Type: Bug
>          Components: projects - Maven
>    Affects Versions: 11.1
>         Environment: - Win10
> - Oracle JDK 8 (Java HotSpot(TM) 64-Bit Server VM (build 25.144-b01, mixed 
> mode)
>            Reporter: Dmitry Avtonomov
>            Priority: Critical
>
> Steps to reproduce:
>  * Run NB IDE 11.1 (from zip).
>  * Create new project -> Java with Maven -> NetBeans Application
>  * Next -> Next
>  ** Option 1: check the `Create Module Project` checkbox - creation of 
> project fails
>  ** Option 2: don't use the checkbox. The project gets created. Right click 
> Modules, `Create New Module..` -> Java with Maven -> NetBeans Module -> 
> Select the same NetBeans Version as the original Application project - 
> creation of new module fails
>  * Tried with App/Module versions NB90, NB110, NB111
>  
> {code:java}
> java.lang.UnsupportedOperationException
>  at java.util.Collections$UnmodifiableCollection.add(Collections.java:1055)
>  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:130)
>  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){code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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