[platform-dev] Modules that are multiply loaded

  • From: "fhervieux" < >
  • To:
  • Subject: [platform-dev] Modules that are multiply loaded
  • Date: Wed, 31 Oct 2012 11:14:12 -0400

Hello,

I am building an application based on Netbeans Platform that contains a few 
modules and external jars. It's based on release 7.2 of Netbeans and the 
latest version of the Maven plugin. I only use Maven, not Netbeans IDE.

My problem is that I cannot get the dependencies straight without a warning 
message "...jar may be multiply loaded by modules...".

I have an 'authentication' module that depends on a 'services' module. They 
both depend on org-openide-util-lookup so this is what I tried:

Add 'lookup' as a dependency of 'services' but then 'authentication' will not 
compile because lookup is a transitive dependency.
Add 'lookup' as a dependency of both 'services' and 'authentication' but then 
the dependency is loaded multiple times.
Add 'lookup' as a dependency of the parent pom but then I also get the 
dependenxy loaded multiple times.


I have lots of errors like this for all the libraries I use (netbeans modules 
or jars wrapped in a module) so I assume I'm doing something wrong but I 
can't find what it is. I hope someone here will have the answer.

Regards,

François






[platform-dev] Modules that are multiply loaded

fhervieux 10/31/2012

[platform-dev] Re: Modules that are multiply loaded

Javier Ortiz 10/31/2012

Project Features

Project Links

About this Project

Platform was started in November 2009, is owned by Antonin Nebuzelsky, and has 138 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