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

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

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.

Can someone here on list give me some insights how dependencies are
supposed to work with Maven and what are finally the differences
between the artifact types: pom, jar, nbm and nbm-file and when each
should be used.

Thank you in advance for your help.

PS: I use the nbm-plugin 6.9 and NB 7.3

Cheers,

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