I have a simple Maven NB module project, with Java 11, and I need to use XML.
I have these dependencies: <dependency> <groupId>com.sun.activation</groupId> <artifactId>javax.activation</artifactId> <version>1.2.0</version> </dependency> <dependency> <groupId>javax.xml.bind</groupId> <artifactId>jaxb-api</artifactId> <version>2.3.0</version> </dependency> <dependency> <groupId>org.glassfish.jaxb</groupId> <artifactId>jaxb-runtime</artifactId> <version>2.3.0</version> </dependency> During build, I get: ============================== NBM Plugin generates manifest Adding on module's Class-Path: javax.annotation:jsr250-api:jar:1.0 org.glassfish.jaxb:jaxb-runtime:jar:2.3.0 org.glassfish.jaxb:jaxb-core:jar:2.3.0 org.glassfish.jaxb:txw2:jar:2.3.0 Adding OSGi bundle dependency - com.sun.activation:javax.activation Adding OSGi bundle dependency - javax.xml.bind:jaxb-api Project uses classes from transitive OSGi bundle com.sun.istack:istack-commons-runtime:jar:3.0.5 which will not be accessible at runtime. To fix the problem, add this module as direct dependency. For OSGi bundles that are supposed to be wrapped in NetBeans modules, use the useOSGiDependencies=false parameter Project uses classes from transitive OSGi bundle org.jvnet.staxex:stax-ex:jar:1.7.8 which will not be accessible at runtime. To fix the problem, add this module as direct dependency. For OSGi bundles that are supposed to be wrapped in NetBeans modules, use the useOSGiDependencies=false parameter Project uses classes from transitive OSGi bundle com.sun.xml.fastinfoset:FastInfoset:jar:1.2.13 which will not be accessible at runtime. To fix the problem, add this module as direct dependency. For OSGi bundles that are supposed to be wrapped in NetBeans modules, use the useOSGiDependencies=false parameter ============================== Should I wrap the XML stuff into a module? How do I make one module dependent on another module with Maven? Or do I have to make a module suite? For now this is a simple module, and I have no problem bundling the XML stuff for this simple test. The message says: "use the useOSGiDependencies=false parameter" but I have no idea where this parameter should be specified. Regards, Will Hartung