So you have an empty NetBeans module without any code in it that you want to run? Why?
Gj On Fri, 2 Jul 2021 at 06:36, <manikantanna...@gmail.com> wrote: > James, > Yes, the versions are as specified by you. Still I am seeing the same > error. > To iterate, I am not seeing this issue with a common maven project; only > with Maven NetBeans module project > *Cheers* > Mani/Naren/Iyer > *The trick of walking on water is knowing where the stones are.* > > > On Thu, Jul 1, 2021 at 9:32 PM James Ostrowick <ja...@ostrowick.co.za> > wrote: > >> Hi, >> >> >> I had a similar problem, check that your maven pom.xml file has at least >> these versions : >> >> <groupId>org.apache.maven.plugins</groupId> >> <artifactId>maven-compiler-plugin</artifactId> >> <version>*3.8.1*</version> >> >> And : >> <groupId>org.apache.maven.plugins</groupId> >> <artifactId>maven-dependency-plugin</artifactId> >> <version>*3.1.2*</version> >> >> Since I also build to a war file: >> >> <groupId>org.apache.maven.plugins</groupId> >> <artifactId>maven-war-plugin</artifactId> >> <version>*3.3.1*</version> >> >> I found that the default plugins were at version 2.x.x or something and >> would not work with JDK > 8 >> >> >> Kind Regards, >> James Ostrowick >> >> >> On 01 Jul 2021, at 17:56, manikantanna...@gmail.com wrote: >> >> The error is still around with the update version of the maven plugin as >> advised by Eric Barboni >> >> >> Steps to reproduce >> 1. Start NetBeans 12.3 with Java 11, a clean user and cache dir >> 2. Create a new NetBeans module using maven (Java with Maven | NetBeans >> module) >> 3. Run primer build on project (clean build) >> 4. Right click on project and click Run >> >> *Cheers* >> Mani/Naren/Iyer >> *The trick of walking on water is knowing where the stones are.* >> >> >> On Thu, Jul 1, 2021 at 5:00 PM Eric Barboni <sk...@apache.org> wrote: >> >>> Hi, >>> >>> according to your log it seems the nbm-maven-plugin you use is old. >>> >>> >>> >>> You must update to the following plugin >>> >>> <groupId>org.apache.netbeans.utilities</groupId> >>> >>> <artifactId>nbm-maven-plugin</artifactId> >>> >>> <version>4.6</version> >>> >>> >>> >>> And after updating we may try to investigate. >>> >>> >>> >>> Best Regards >>> >>> Eric >>> >>> >>> >>> >>> >>> *De :* Geertjan Wielenga <geertjan.wiele...@googlemail.com.INVALID> >>> *Envoyé :* jeudi 1 juillet 2021 11:56 >>> *À :* manikantanna...@gmail.com >>> *Cc :* Charles Johnson <cehjohn...@gmail.com>; users@netbeans.apache.org >>> *Objet :* Re: Maven NB module cannot be run using Open JDK 11 >>> >>> >>> >>> If you provide steps to reproduce the issue, someone can help you. >>> >>> >>> >>> Gj >>> >>> >>> >>> On Thu, 1 Jul 2021 at 11:54, <manikantanna...@gmail.com> wrote: >>> >>> Yes, jdk.jshell is listed and I can start jshell on the command line >>> without any issues >>> >>> >>> >>> >>> *Cheers* >>> Mani/Naren/Iyer >>> *The trick of walking on water is knowing where the stones are.* >>> >>> >>> >>> >>> >>> On Thu, Jul 1, 2021 at 2:57 PM Charles Johnson <cehjohn...@gmail.com> >>> wrote: >>> >>> On 01/07/2021 10:00, manikantanna...@gmail.com wrote: >>> >>> I have a simple maven NB module; ON trying to run the module, I get the >>> following error >>> >>> Might be worth executing the following as a sanity check (making sure >>> it's with your JDK 11's java) >>> >>> java --list-modules | grep jdk\.jshell >>> >>> >>