Re: unable to see public package of my module
Peter Cheung <[email protected]> Sat, 10 Jun 2017 15:53:29 +0000
| Newsgroups | gmane.comp.java.netbeans.modules.openide.devel |
|---|---|
| Message-ID | <HK2PR0401MB1427EC622BD8616C6250BF3DB5CF0@HK2PR0401MB1427.apcprd04.prod.outlook.com> |
Maven runner (https://github.com/mcheung63/MavenRunner) works now. MavenRunnerServiceImpl works, so everybody can interacte with Maven Runner by code. Now supported two functions : run(projectName, goal) and selectNode(projectName, goal). Example below, it will select a node in Maven Runner treeview.
MavenRunnerService mavenRunnerService = Lookup.getDefault().lookup(MavenRunnerService.class);
ModuleLib.log("mavenRunnerService=" + mavenRunnerService);
if (mavenRunnerService != null) {
mavenRunnerService.selectNode("General Kernel Debugger", "build");
}
Thanks for the supports to everyone in the netbeans dev mailling list.
On 10 Jun 2017, at 11:06 PM, geertjan wielenga <[email protected]<mailto:[email protected]>> wrote:
Yes, if they're two independent modules, there's no way for one to use the API of the other. They need to be in a suite or part of the NetBeans Platform that you're developing on.
Gj
On 10-6-2017 16:59, Peter Cheung wrote:
Hi Gj
There are two independent modules on https://github.com/mcheung63/netbeans-questions . Test-module is trying to add module dependency from “MavenRunner” module, but unable to find it out in the dialog.
thanks
from Peter
On 10 Jun 2017, at 3:08 PM, geertjan wielenga <[email protected]<mailto:[email protected]>> wrote:
Code on GitHub, with instructions how to use them to reproduce the problem, otherwise I can't help.
Gj
On 10-6-2017 5:34, Peter Cheung wrote:
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]>
> Sent: Saturday, June 10, 2017 12:58 AM
> To: [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]>
> > Sent: Saturday, June 10, 2017 12:44 AM
> > To: [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