Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-3238

Can't add a module to Maven based platform app

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 11.1
    • 11.2
    • projects - Maven
    • None
      • Win10
      • Oracle JDK 8 (Java HotSpot(TM) 64-Bit Server VM (build 25.144-b01, mixed mode)

    Description

      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

       

      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)

      Attachments

        Activity

          People

            Unassigned Unassigned
            chhh Dmitry Avtonomov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: