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

  • From: Jean-Marc Borer < >
  • To:
  • Subject: [nbdev] Re: Maven Netbeans builds and dependencies issues (especially transitive ones)
  • Date: Thu, 28 Feb 2013 16:00:59 +0000

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?

This seems not to work with modules from the IDE 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!

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.

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 20140418.2d69abc). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close