[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:17:48 +0000

Milos, how is it possible that with 12 modules (list below) I managed
to get the same result as in this article
http://blog.macrominds.de/2013/02/netbeans-maven-xml-editor-using-xam-schema-validation-and-schema-aware-completion/
where the author needs to include more than 30 modules!!

Here is the list of my modules:

<dependency>
            <groupId>org.netbeans.modules</groupId>
            <artifactId>org-netbeans-modules-xml</artifactId>
            <version>${netbeans.version}</version>
        </dependency>
        <dependency>
            <groupId>org.netbeans.modules</groupId>
            <artifactId>org-netbeans-modules-lexer-nbbridge</artifactId>
            <version>${netbeans.version}</version>
        </dependency>
        <dependency>
            <groupId>org.netbeans.modules</groupId>
            <artifactId>org-netbeans-modules-editor-actions</artifactId>
            <version>${netbeans.version}</version>
        </dependency>
        <dependency>
            <groupId>org.netbeans.modules</groupId>
            <artifactId>org-netbeans-modules-editor-errorstripe</artifactId>
            <version>${netbeans.version}</version>
        </dependency>
        <dependency>
            <groupId>org.netbeans.api</groupId>
            <artifactId>org-netbeans-modules-editor-codetemplates</artifactId>
            <version>${netbeans.version}</version>
        </dependency>
        <dependency>
            <groupId>org.netbeans.api</groupId>
            <artifactId>org-netbeans-modules-editor-settings</artifactId>
            <version>${netbeans.version}</version>
        </dependency>
        <dependency>
            <groupId>org.netbeans.modules</groupId>
            <artifactId>org-netbeans-modules-editor-search</artifactId>
            <version>${netbeans.version}</version>
        </dependency>
        <dependency>
            <groupId>org.netbeans.modules</groupId>
            <artifactId>org-netbeans-modules-editor-macros</artifactId>
            <version>${netbeans.version}</version>
        </dependency>
        <!--        <dependency>
            <groupId>org.netbeans.modules</groupId>
            <artifactId>org-netbeans-modules-xml-tools</artifactId>
            <version>${netbeans.version}</version>
        </dependency>-->
        <dependency>
            <groupId>org.netbeans.api</groupId>
            
<artifactId>org-netbeans-modules-xml-schema-completion</artifactId>
            <version>${netbeans.version}</version>
        </dependency>

        <dependency>
            <groupId>org.netbeans.modules</groupId>
            <artifactId>org-netbeans-modules-xml-axi</artifactId>
            <version>${netbeans.version}</version>
        </dependency>
        <dependency>
            <groupId>org.netbeans.api</groupId>
            <artifactId>org-netbeans-modules-xml-xdm</artifactId>
            <version>${netbeans.version}</version>
        </dependency>
        <dependency>
            <groupId>org.netbeans.api</groupId>
            <artifactId>org-netbeans-libs-xerces</artifactId>
            <version>${netbeans.version}</version>
        </dependency>

On Thu, Feb 28, 2013 at 4:06 PM, Jean-Marc Borer 
< >
 wrote:
> On Thu, Feb 28, 2013 at 2:58 PM, 
> 
>  
> < >
>  wrote:
>> 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/
>
> That is exactly what was my conclusion which is disappointing (too
> much work). However some how Geertjan managed to reduce this list and
> still worked with all the features. How is that possible if not every
> single dependency is listed by Geertjan?
>
>>
>> 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 20140418.2d69abc). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close