[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: Thu, 28 Feb 2013 17:22:18 +0100

On Thu, Feb 28, 2013 at 5:00 PM, Jean-Marc Borer 
< >
 wrote:
> Thanks to all for your help.
>
> Milos, I almost understood all you explanation except what happens to
> transitive dependencies. Here I am not talking about library wrappers
> but netbeans modules that I want to add to an app (not a module).
>
>
>>
>> in your module (nbm packaging), use just jar dependencies, these will
>> transitively include the entire dependency tree. jars is what you need
>> on on classpath
>>
>> in your application (nbm-application), use pom dependencies on
>> clusters you want to include (org.netbeans.cluster) and on your own
>> nbm packaging projects (preferably with <type>jar</type>  to include
>> the transitive tree again.
>
> Sorry but I am not sure to understand. You mean if my module has
> dependencies on other modules, I only have to put the  top module here
> and the nbm-plugin will resolve and add all other ones?
>
> If I have a -> b-> c where a, b, c are modules
> By putting just module "a" in the app pom, the nbm-plugin will add
> modules "b" and "c" to my final application?

as long as all references are of "jar" type.

>
> This seems not to work with modules from the IDE cluster.
>

yes. because intentionally the transitivity of nb.org's generated
modules is supressed to be able to have "clusters".. otherwise
inclusion of java cluster would not only include modules from java
cluster but also 80% of ide cluster and 90% of platform cluster.


> Say I want to include an XML editor from the IDE cluster. I then need
> to depend on some top level modules like org-netbeans-modules-xml and
> org-netbeans-modules-xml-tools. Those top modules depend on other
> modules which depend on other modules. Hello transitive dependencies!

No, you start with clusters and exclude stuff you don't want, having
xml kit dependency transitively doesn't guarantee that you get
something workable as eager modules are not part of kit dependencies.
And that's the hardest beasts to find.

>
> So if I understand your explanations, none of the transitive deps will
> be included (processed?) by the nbm-plugin. I have then to list every
> single module dependency in the app pom.xml. This huge work is usually
> done by the libraries wizard when you build non maven netbeans apps by
> clicking on the "resolve" button. This is a nightmare to do with maven
> since it a very long try/error process. I thought one could use maven
> deps to resolve the module dependencies. What is OK anyway it to
> add/remove additional features that cannot be resolved with deps.

start with adding a cluster dependency and work your way down,
excluding stuff you don't want.

Milos
>
> Jean-Marc


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

Jean-Marc Borer 02/28/2013

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

Milos Kleint 02/28/2013

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

Jean-Marc Borer 02/28/2013

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

Milos Kleint 02/28/2013

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

02/28/2013

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

Jean-Marc Borer 02/28/2013

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

Jean-Marc Borer 02/28/2013

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

Jean-Marc Borer 02/28/2013

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

02/28/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