On Wed, Dec 16, 2009 at 10:45 PM, cemerick <[email protected]> wrote:
> > In the process of porting our NetBeans RCP app to maven and > nbm-maven-plugin, > I've noticed errors like this: > > Project uses classes from transtive module > org.netbeans.api:org-openide-nodes:jar:RELEASE68 > > Now, I understand why this error is emitted -- transitive dependencies must > be explicitly stated in the netbeans module system, so there's no problem > here. > > My *real* question is: these error are emitted even when the module usage > in > question occurs on *non-Java* code. A quick look at the nbm-maven-plugin > source associated with this verification stage gives me the impression that > the plugin is doing an analysis of the classfiles in target/classes, etc., > rather than looking at source code. > I'd say it does work for any JVM bytecode. I've been working on scala based nbm project and didn't encounter any problems. > > Can someone confirm this, or correct me on this point? If this is the > case, > then I'm absolutely thrilled -- compared to the NetBeans RCP ant process > and > the NB IDE, this would guarantee a degree of safety when programming with > non-Java languages (which is the typical case here) that is not available > otherwise. > Possibly. However the bytecode checking is just a workaround. Maven transitive classpath doesn't entirely match the runtime classpath in netbeans which is not completely transitive. Ideally we would be able to influence the maven compile CP, to match the nb runtime one and avoid this additional build step. So the code collects all classes from current nbm module + it's Class-Path bundled dependencies and checks what packages/classes are used from the other dependencies (nbm module deps), making sure 1. only direct module dependencies are used 2. only public packages from these module deps are used. Milos > > Thanks, > > - Chas > -- > View this message in context: > http://old.nabble.com/Extent-of-dependency-analysis-performed-by-nbm-maven-plugin-tp26819020p26819020.html > Sent from the mojo - user mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > > >
