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

Newly created Micronau project is not open in NB

Attach filesAttach ScreenshotVotersWatch issueWatchersLinkUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 12.6
    • NB13
    • javaee - Micronaut
    • None

    Description

      Select File | New project

      then Java with Maven > Micronaut Project OR Java with Gradle > Micronaut Project

      Name it MicronautProject. Leave all defaults on MN v. is 3.2.7 Java is 8 , step through and click Finish.

      Project is created on disk properly but it is not open in IDE.

      Structure on disk is: <my_test_projects_folder>/MicronautProject/MicronautProject }}then there are {{src }}and{{ pom.xml

      Open the project in NB and there is Resolve problems window shown "Unable to properly load project" with details:

       

      Some problems were encountered while processing the POMs:
      [ERROR] 'dependencies.dependency.version' for io.micronaut:micronaut-inject:jar is missing. @ line 34, column 17
      [ERROR] 'dependencies.dependency.version' for io.micronaut:micronaut-validation:jar is missing. @ line 39, column 17
      [ERROR] 'dependencies.dependency.version' for org.junit.jupiter:junit-jupiter-api:jar is missing. @ line 44, column 17
      [ERROR] 'dependencies.dependency.version' for org.junit.jupiter:junit-jupiter-engine:jar is missing. @ line 49, column 17
      [ERROR] 'dependencies.dependency.version' for io.micronaut.test:micronaut-test-junit5:jar is missing. @ line 54, column 17
      [ERROR] 'dependencies.dependency.version' for io.micronaut:micronaut-http-client:jar is missing. @ line 59, column 17
      [ERROR] 'dependencies.dependency.version' for io.micronaut:micronaut-http-server-netty:jar is missing. @ line 64, column 17
      [ERROR] 'dependencies.dependency.version' for io.micronaut:micronaut-runtime:jar is missing. @ line 69, column 17
      [ERROR] 'dependencies.dependency.version' for ch.qos.logback:logback-classic:jar is missing. @ line 74, column 17
       
      

      and Output window has in:

      cd /Users/mbalin/Development/MicronautProject/MicronautProject; JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk-17.0.1.jdk/Contents/Home /Users/mbalin/Development/MicronautProject/MicronautProject/mvnw -DskipTests=true --fail-at-end package
      Cannot run program "/Users/mbalin/Development/MicronautProject/MicronautProject/mvnw" (in directory "/Users/mbalin/Development/MicronautProject/MicronautProject"): error=13, Permission denied

      mvnw is not executable by default. chmod +x for it and it can be built and project is fixed. Not unloadable anymore.

      Gradle project generated the same way can be open without errors in NB.

      When I create the Micronaut Maven project using NBLS (VSIX) 12.6.301 release then I have mvnw executable and also directory structure is <my_test_projects_folder>/demomn2g/mvnw and pom.xml....

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            matthiasblaesing Matthias Bläsing
            mbalin Martin Balin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment