Re: unable to see public package of my module

Peter Cheung <[email protected]> Sat, 10 Jun 2017 14:53:30 +0000
Newsgroups gmane.comp.java.netbeans.modules.openide.devel
Message-ID <HK2PR0401MB1427F3439B5B90F135BCE00DB5CF0@HK2PR0401MB1427.apcprd04.prod.outlook.com>
Thanks


it looks like your modules are not part of "Modules suites" but this is needed
to defined define the dependency in the gui.

In the dialog you show, you can see that only modules of the netbeans platform
are shown. You can filter by its  clusters. There is no possibility to choose a
project which is not part of the netbeans platform.

If this is true, how can module developer share his module to other module developer? letting them invoke some functions in other module?


If both modules are parts of "Modules suites" the situation is different. If
both modules are part of the same suite you can directly add a dependency. If
not you have first add the suite.

Maybe there is a way to work with dependency without adding the projects in
suites by editing the xml-files by hand. But I havnt tried that.

best regards
Oliver

Please take a look http://peter.kingofcoders.com/?p=2462 ,

thanks

Peter


________________________________
From: geertjan wielenga <[email protected]<mailto:[email protected]>>
Sent: Saturday, June 10, 2017 3:27 AM
To: [email protected]<mailto:[email protected]>
Subject: [platform-dev] Re: unable to see public package of my module



You can write lots of e-mails about this and never get an answer. Or you can
describe step by step what someone should do to reproduce the problem or,
even better, use GitHub to put your modules there with clear instructions
how to use them to reproduce the problem.


Gj

On 9-6-2017 20:10, Peter Cheung wrote:

you have add the dependency from the suite to the other suite by gui?


I try to use public package from Module A in Module B. All two module build
without error, now i right click module B's library folder, click "add
module dependency", i can't find module A in the list 😞


Thanks buddy






________________________________
From: Oliver Rettig <[email protected]<mailto:[email protected]>><mailto:[email protected]>
Sent: Saturday, June 10, 2017 12:58 AM
To: [email protected]<mailto:[email protected]><mailto:[email protected]>
Subject: [platform-dev] Re: unable to see public package of my module



both modules are in the same suite?
both modules are ant-based?



Both no error. Tried clean and rebuild many times. Just don't
understand
why other module can't see its public packages.



Peter.




________________________________
From: Oliver Rettig
<[email protected]<mailto:[email protected]>><mailto:[email protected]>
Sent: Saturday, June 10, 2017 12:44 AM
To: [email protected]<mailto:[email protected]><mailto:[email protected]>
Subject: [platform-dev] Re: unable to see public package of my module



Hi,
have you clean and build both projects without errors?
best regards
Oliver



Hi



  I create a module project (not maven), i have set the public
  package
  in



the dialog (just checked my package). I verified the MANIFEST.MF from
the
generate jar has this:




OpenIDE-Module-Public-Packages: com.peter.mavenrunner.service.*




I create another module and click "Add module dependency", and i type
com.peter.mavenrunner.service i see nothing, any hints?




thanks a lot



from Peter