Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
12.6
-
None
-
Product Version: Apache NetBeans IDE 12.6
Java: 17.0.1; Java HotSpot(TM) 64-Bit Server VM 17.0.1+12-LTS-39
Runtime: Java(TM) SE Runtime Environment 17.0.1+12-LTS-39
System: Mac OS X version 12.1 running on x86_64; UTF-8; en_GB (nb)
User directory: /Users/mbalin/Library/Application Support/NetBeans/12.6
Cache directory: /Users/mbalin/Library/Caches/NetBeans/12.6
Product Version: Apache NetBeans IDE 12.6 Java: 17.0.1; Java HotSpot(TM) 64-Bit Server VM 17.0.1+12-LTS-39 Runtime: Java(TM) SE Runtime Environment 17.0.1+12-LTS-39 System: Mac OS X version 12.1 running on x86_64; UTF-8; en_GB (nb) User directory: /Users/mbalin/Library/Application Support/NetBeans/12.6 Cache directory: /Users/mbalin/Library/Caches/NetBeans/12.6
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....