[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: Fri, 1 Mar 2013 14:37:17 +0100

On Fri, Mar 1, 2013 at 2:18 PM, Wade Chandler 
< >
 wrote:
> On 03/01/2013 08:13 AM, Wade Chandler wrote:
>>
>> On 03/01/2013 07:58 AM, Jean-Marc Borer wrote:
>>>
>>> After testing I can tell you that spec version doesn't work:
>>>
>>> Failed to execute goal org.codehaus.mojo:nbm-maven-plugin:3.9:manifest
>>> (default-manifest) on project core-services: Module has friend
>>> dependency on org.netbeans.modules.xml but is not listed as a friend.
>>>
>>> I need to use the impl dependency backdoor to work around this issue.
>>> It will be a PITA, but my only solution currently. Any other
>>> suggestions welcome for example how to override
>>> org.netbeans.modules:org-netbeans-modules-xml module config to turn
>>> autoload to false...
>>>
>>>
>>
>> Yes, the only reason it doesn't work in this case, and which I missed in
>> your other emails, was that you are depending on a module which uses 
>> service
>> interfaces by way of a common and shared API, and thus there is no direct
>> link to depend on the module which is autoload to cause it to load. Milos,
>> this seems something that would be nice to add to the platform is a way to
>> tell NB to load certain modules at the application level versus waiting on
>> an explicit dependency to trigger it; this even for autoload. This is a
>> clear example of why it is needed, and an obvious and clear use case to 
>> make
>> the point. He will have to include what amounts to cruft for him to get 
>> this
>> to work by way of schema or something else.
>>
>
> And for clarities sake for anyone else who may read this at some point, the
> only reason you are getting the friend dependency error is because you have
> a dependency in a direct module (core-services) versus just in application
> for the org.netbeans.modules:org-netbeans-modules-xml module as you are
> trying to force it to load because it is autoload. Were it eager or a normal
> module, then simply adding it as a dependency of application/pom.xml, and
> then depending on another module which depends on it would have worked for
> your case. But, since there is seemingly no way to tell the NB RCP
> subsystem...load this autoload module regardless...then it wouldn't work.
>

that's the point of autoloads  (not to be enabled until someone
depends on them) I would argue. feel free to bring up your point in
issuezilla, module system subcategoru, as that's the place that needs
to enable this new behaviour.  Or if the module actually provides
autonomous functionality then maybe it was not meant to be autoload,
but in any case there's hardly anything that can be done on the build
system level.


Milos


>
> Wade
>
> --
>
> =================
> Wade Chandler
>
> Software Engineer and Consultant
> NetBeans Contributor
> NetBeans Dream Team Member
>
> wadechandler.com
> netbeans.org
>


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

(continued)

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

Jean-Marc Borer 03/01/2013

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

03/01/2013

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

Wade Chandler 03/01/2013

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

Jean-Marc Borer 03/01/2013

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

Jean-Marc Borer 03/01/2013

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

Wade Chandler 03/01/2013

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

Jean-Marc Borer 03/01/2013

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

Jean-Marc Borer 03/01/2013

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

Wade Chandler 03/01/2013

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

Wade Chandler 03/01/2013

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

Milos Kleint 03/01/2013

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

Jean-Marc Borer 03/01/2013

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

Milos Kleint 03/01/2013

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

Jean-Marc Borer 03/01/2013

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

03/01/2013

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

Milos Kleint 03/01/2013

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

Jean-Marc Borer 03/01/2013

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

Milos Kleint 03/01/2013

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

Jean-Marc Borer 03/01/2013

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

Wade Chandler 03/01/2013

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

Jean-Marc Borer 03/01/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