Hello Ernie. > reads package org.openide.util from both org.openide.util.RELEASE310 and org.openide.util.lookup.RELEASE310
I believe you are hitting limitation of "split packages". When I modularized monolithic openide.jar into pieces I wanted to keep 100% compatibility. Hence I included the same package into multiple JAR files. That's OK for NetBeans Runtime Container as well as OSGi. However JPMS doesn't allow that. I don't see how to satisfy the JPMS requirements and still keep the compatibility of the API. With such a choice I value compatibility more. -jt PS: I am also trying to use JPMS from time to time, but there are numerous problems all over (testing being one of them https://lists.apache.org/thread/f5st2t0wspbdmjt6v5ojobzqpl7cjk9n). Fixing the split packages wouldn't be the end of the endeavor. út 18. 8. 2026 v 6:00 odesílatel Ernie Rael <[email protected]> napsal: > > Hi all, > > I'm working on a library, and I thought I'd be good forward looking > citizen and add module-info.java. I've never used module-info before. I > have pom dependencies on > > <artifactId>org-openide-util</artifactId> > <artifactId>org-openide-util-lookup</artifactId> > > It took a while, but I finally found > > requires org.openide.util.RELEASE310; > requires org.openide.util.lookup.RELEASE310; > > Running "mvn clean install" on the command line I see > [ERROR] error: the unnamed module reads package org.openide.util from > both org.openide.util.RELEASE310 and org.openide.util.lookup.RELEASE310 > The error repeats several times. > > Is it possible to do this? How? "Moditect" doesn't sound like much fun, > but I've only seen a reference to it, not read any documentation. > > -ernie --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
