NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

Creating NBM from Maven module suite

 
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Platform Users
View previous topic :: View next topic  
Author Message
Pavel S.



Joined: 19 Oct 2010
Posts: 12

PostPosted: Thu Jun 09, 2011 11:34 pm    Post subject: Creating NBM from Maven module suite Reply with quote

Hi,

I have developed several NB modules recently and I want to pack all of them together into single NBM file, so they can be installed by one click. I have noticed there is Module Suite option in NetBeans, I guess it should be designed right for this purpose. However, I was not able to solve how to create NBM file from the modules. All my modules (including the module suite) are managed by maven.

Thanks for any advices or hints.
Back to top
Milos Kleint
Posted via mailing list.





PostPosted: Fri Jun 10, 2011 5:28 am    Post subject: [platform-dev] Re: Creating NBM from Maven module suite Reply with quote

afaik a nbm only wraps a single module. never heard that it was
possible to create a nbm for multiple ones, even though the nbm file
is basically just a zip file (with some metadata)

Milos

On Fri, Jun 10, 2011 at 1:35 AM, Pavel S. <address-removed> wrote:
Quote:
Hi,

I have developed several NB modules recently and I want to pack all of them together into single NBM file, so they can be installed by one click. I have noticed there is Module Suite option in NetBeans, I guess it should be designed right for this purpose. However, I was not able to solve how to create NBM file from the modules. All my modules (including the module suite) are managed by maven.

Thanks for any advices or hints.




Back to top
Pavel S.



Joined: 19 Oct 2010
Posts: 12

PostPosted: Fri Jun 10, 2011 8:55 am    Post subject: Reply with quote

Thanks for the response. So is there any possibility to install several modules "at once"? For example, I can install all PHP functionality by selecting one item in the list, I'd like to have my modules wrapped in exactly same way.
Back to top
Milos Kleint
Posted via mailing list.





PostPosted: Sat Jun 11, 2011 4:39 am    Post subject: [platform-dev] Re: Creating NBM from Maven module suite Reply with quote

that's just an illusion where a module is selected as "kit" and
visible in the update center, while the other modules it depends on
(shall be all of your modules that actually do anything and you want
to be installed together) are marked as hidden.

Milos

On Fri, Jun 10, 2011 at 10:56 AM, Pavel S. <address-removed> wrote:
Quote:
Thanks for the response. So is there any possibility to install several modules "at once"? For example, I can install all PHP functionality by selecting one item in the list, I'd like to have my modules wrapped in exactly same way.




Back to top
Pavel S.



Joined: 19 Oct 2010
Posts: 12

PostPosted: Sat Jun 11, 2011 12:58 pm    Post subject: Reply with quote

Very well, how can I hide the module(s) in the plugin manager? And will they be uninstalled (or disabled) if I uninstall (or disable) the "kit" module?
Back to top
libor



Joined: 03 Jun 2011
Posts: 60

PostPosted: Sun Jun 12, 2011 9:59 am    Post subject: [platform-dev] Re: Creating NBM from Maven module suite Reply with quote

I am still NBP newbie but if I understand correctly, I think that is little different. All the magic is done using module dependencies.

"Module Kit" is one visibible module and arbitrary number of depending hidden modules. Installing visible module will install all depending modules also. Likewise uninstalling visible module should uninstall depending and now orphan modules.

Libor

2011/6/11 Pavel S. <address-removed ([email]address-removed[/email])>
Quote:
Very well, how can I hide the module(s) in the plugin manager? And will they be uninstalled (or disabled) if I uninstall (or disable) the "kit" module?




Back to top
Ernie Rael
Posted via mailing list.





PostPosted: Sun Jun 12, 2011 2:31 pm    Post subject: [platform-dev] Re: Creating NBM from Maven module suite Reply with quote

On 6/12/2011 2:20 AM, Libor Jelinek wrote:
Quote:
I am still NBP newbie but if I understand correctly, I think that is little different. All the magic is done using module dependencies.

"Module Kit" is one visibible module and arbitrary number of depending hidden modules. Installing visible module will install all depending modules also. Likewise uninstalling visible module should uninstall depending and now orphan modules.

Libor

2011/6/11 Pavel S. <address-removed ([email]address-removed[/email])>
Quote:
Very well, how can I hide the module(s) in the plugin manager? And will they be uninstalled (or disabled) if I uninstall (or disable) the "kit" module?



I believe Libor is correct. And as for
Quote:
how can I hide the module(s) in the plugin manager?
At module-properties>Display notice the "Show in Plugin Manager" checkbox

-ernie
Back to top
Monezz



Joined: 18 Feb 2009
Posts: 254

PostPosted: Tue Jun 14, 2011 4:18 am    Post subject: [platform-dev] Re: Creating NBM from Maven module suite Reply with quote

Quote:

how can I hide the module(s) in the plugin manager?

At module-properties>Display notice the "Show in Plugin Manager" checkbox

Or use the "AutoUpdate-Show-In-Client: false" entry in the manifest.mf
file when your using maven.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Platform Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo