[nbdev] Re: Maven Netbeans builds and dependencies issues (especially transitive ones)

  • From: Milos Kleint < >
  • To:
  • Subject: [nbdev] Re: Maven Netbeans builds and dependencies issues (especially transitive ones)
  • Date: Fri, 22 Mar 2013 09:22:54 +0100

On Thu, Feb 28, 2013 at 3:36 PM, Milos Kleint 
< >
 wrote:
> On Thu, Feb 28, 2013 at 3:03 PM, Jean-Marc Borer 
> < >
>  wrote:
>> Hello all,
>>
>> I am currently trying to reuse the XML editor features provided by NB
>> IDE in my platform app.
>>
>> I've followed Geertjan example at
>https://blogs.oracle.com/geertjan/entry/xml_editor_in_maven
>>
>> I tried then to reduce the number of dependencies declaration and
>> started wondering how all this is supposed to work with Maven. I have
>> a good understanding how dependencies work with an usual use of the
>> modules (ant build). However I am really puzzled with Maven.
>>
>> Firstable in Geertjan's project the dependencies declare the type jar.
>> When you look at the platform or ide cluster, there the type used is
>> nbm-file. There is also the type nbm which I have already seen in some
>> pom.xml
>>
>> When you try to integrate a feature like XML editor from the IDE, it
>> is very difficult to know which dependencies are required.  I read
>> somewhere on the internet that you are supposed to explicitly include
>> every single dependency. Transitive dependencies are not supported by
>> NB.I thought naively that thanks to Maven you only need to, say,
>> depend on some top modules and then nbm plugin will use Maven and
>> resolve all the transitive dependencies  and add them to your module.
>> This seems not really be the case, but somehow it does partially work.
>> If you look at Geertjan's project you can see that not ALL modules are
>> listed but only some of them. A lot of lower level dependencies are
>> included anyway.
>>
>> I have also read that at build time, the nbm plugin is supposed to
>> warn about missing dependencies. It is not the case. Errors appear
>> only at runtime.
>
> Only at single module's level we check if your classes are only using
> dependency classes from direct dependencies. Because only direct
> dependencies get resolved to Class-Path and
> OpenIDE-Module-Dependencies entries in the manifest. That's a sort of
> workaround to the transitive nature of maven dependencies. Without
> this approach, a single dependency to o.n.modules.j2ee.something would
> result in tens to hundreds of dependencies on modules. Some of which
> your module is not friend of  or which don't provide public api..
>
> No checks are done on the application level.

see
https://jira.codehaus.org/browse/MNBMODULE-205

in upcoming 3.10 of the nbm-maven-plugin I've included some basic
verification of the application at the assembly time. 3.10 is not out
yet, but you can test the snapshot 3.10-SNAPSHOT at
https://nexus.codehaus.org/content/repositories/snapshots/

any feedback welcome.

Milos


[nbdev] Re: Maven Netbeans builds and dependencies issues (especially transitive ones)

(continued)

[nbdev] Re: Maven Netbeans builds and dependencies issues (especially transitive ones)

Geertjan Wielenga 03/04/2013

[nbdev] Re: Maven Netbeans builds and dependencies issues (especially transitive ones)

Jean-Marc Borer 03/04/2013

[nbdev] Re: Maven Netbeans builds and dependencies issues (especially transitive ones)

03/01/2013

[nbdev] Re: Maven Netbeans builds and dependencies issues (especially transitive ones)

Wade Chandler 03/01/2013

[nbdev] Re: Maven Netbeans builds and dependencies issues (especially transitive ones)

Wade Chandler 03/01/2013

[nbdev] Re: Maven Netbeans builds and dependencies issues (especially transitive ones)

Geertjan Wielenga 03/01/2013

[nbdev] Re: Maven Netbeans builds and dependencies issues (especially transitive ones)

03/01/2013

[nbdev] Re: Maven Netbeans builds and dependencies issues (especially transitive ones)

Geertjan Wielenga 03/01/2013

[nbdev] Re: Maven Netbeans builds and dependencies issues (especially transitive ones)

Jean-Marc Borer 03/01/2013

[nbdev] Re: Maven Netbeans builds and dependencies issues (especially transitive ones)

03/01/2013

[nbdev] Re: Maven Netbeans builds and dependencies issues (especially transitive ones)

Milos Kleint 03/22/2013

[nbdev] Re: Maven Netbeans builds and dependencies issues (especially transitive ones)

Jean-Marc Borer 03/26/2013

Project Features

About this Project

www was started in November 2009, is owned by jpirek, and has 21 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20131025.e7cbc9d). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close