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

  • From: " " < >
  • To:
  • Subject: [nbdev] Re: Maven Netbeans builds and dependencies issues (especially transitive ones)
  • Date: Thu, 28 Feb 2013 15:58:09 +0100

Hi,

this article will most likely help you, I think it addresses your
questions very well and contains a complete list of modules needed for a
xam-based editor:
http://blog.macrominds.de/2013/02/netbeans-maven-xml-editor-using-xam-schema-validation-and-schema-aware-completion/

This articles might be of interest as well:
http://blog.macrominds.de/2011/12/netbeans-platform-development-with-maven-troubleshooting/

You might as well want to have a look at these threads on this list, as
they might be related.

http://forums.netbeans.org/topic53843.html
http://forums.netbeans.org/post-143239.html
http://netbeans.org/projects/www/lists/nbdev/archive/2011-11/message/54

The following thread addresses partially my own desire to have just one
dependency like an Xml-Editor-"Kit". It discusses a proper project
structure that also allows clustering modules:

http://forums.netbeans.org/post-143239.html
Note that the first posting can be ignored, as the old modulesuites are
not to be used with maven.

I made some good experiences with the architecture shown in Posting 2
(20013/02/07 08:21am), though Milos' suggestions (in that thread) imply
that it's not quite best-practice.

Anyway, as the work on my own project grew to be more and more
troubleshooting than developing the project further, since we were using
NetbeansPlatform, we finally decided to start over without the Netbeans
Platform, so I didn't get too much experience with it.

Kind regards,

Thomas


On 28.02.2013 15:03, 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.
> 
> 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