NetBeans Forums

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

Netbeans 6.8 Maven projects - How to activate multiple profiles?

 
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Users
View previous topic :: View next topic  
Author Message
paulm



Joined: 11 Dec 2009
Posts: 2

PostPosted: Fri Dec 11, 2009 2:52 pm    Post subject: Netbeans 6.8 Maven projects - How to activate multiple profiles? Reply with quote

Up until Netbeans 6.7, I was able activate multiple maven profiles simultaneously for a project by going to the profiles section of the project's context menu and checking off which profiles I wanted to activate simultaneously. This is useful for me because I can have one profile that deploys after packaging, another that dictates where to deploy to, yet another one configures the type of app server I'm building an ear for (glassfish or weblogic), and finally the last profile has some generic project configurations that may vary for different purposes.

Now in Netbeans 6.8 the profiles menu item has been replaced with 'set configuration' which instead of check boxes, has radio buttons and only lets you select one profile (?!). This new 'set configuration' submenu seems like a step backwards, and, with no good alternative, is absolutely a breaking point in NB 6.8 usability (to me).

How do I activate multiple profiles without having to edit every action in the project's properties (this approach is tedious and error prone)?

Did the NB developers have some better approach in mind which they thought selecting only one profile was good for? What was it? Surely they don't expect me to combine every permutation of all my profiles into dozens of massive profiles all lumped into my pom.xml?
Back to top
paulm



Joined: 11 Dec 2009
Posts: 2

PostPosted: Fri Dec 11, 2009 3:33 pm    Post subject: Reply with quote

Okay, I've solved my own problem (or rather I spoke too soon).

In the Set Configuration submenu there is the customize window. At first I thought this was just another window for activating a profile (a bit redundant it seemed), or creating a new profile via 'add' button. The add button actually lets you create grouping of profiles to activate. This in the end I think turns out nicer than the previous NB 6.7 approach of checking off profiles. It would still be nice if you could select multiple configuration/profiles though.
Back to top
mkleint
Posted via mailing list.





PostPosted: Fri Dec 11, 2009 4:47 pm    Post subject: Netbeans 6.8 Maven projects - How to activate multiple profiles? Reply with quote

paulm wrote:
Quote:
Up until Netbeans 6.7, I was able activate multiple maven profiles simultaneously for a project by going to the profiles section of the project's context menu and checking off which profiles I wanted to activate simultaneously. This is useful for me because I can have one profile that deploys after packaging, another that dictates where to deploy to, yet another one configures the type of app server I'm building an ear for (glassfish or weblogic), and finally the last profile has some generic project configurations that may vary for different purposes.

Now in Netbeans 6.8 the profiles menu item has been replaced with 'set configuration' which instead of check boxes, has radio buttons and only lets you select one profile (?!). This new 'set configuration' submenu seems like a step backwards, and, with no good alternative, is absolutely a breaking point in NB 6.8 usability (to me).

performance wise it's a definite step forward. It also cleaned up the UI
(we used to have 2 ways of doing the same thing) and aligned it with the
other project types.
the alternative is the Configurations panel, when profiles are included
by default as separate configurations, but you can create your own
descriptive configs with multiple profiles enabled.


Milos
Quote:
How do I activate multiple profiles without having to edit every action in the project's properties (this approach is tedious and error prone)?

Did the NB developers have some better approach in mind which they thought selecting only one profile was good for? What was it? Surely they don't expect me to combine every permutation of all my profiles into dozens of massive profiles all lumped into my pom.xml?




Back to top
mark



Joined: 17 Dec 2009
Posts: 2

PostPosted: Thu Dec 17, 2009 10:22 am    Post subject: Reply with quote

paulm wrote:
In the Set Configuration submenu there is the customize window. At first I thought this was just another window for activating a profile (a bit redundant it seemed), or creating a new profile via 'add' button. The add button actually lets you create grouping of profiles to activate..


Sorry to be so dim but how do I activate multiple profiles, I tried in the Activate profiles field

profile1; profile2; profile3
profile1, profile2, profile3
profile1 profile2 profile3

before resorting to Google and finding this thread

thanks
Mark
Back to top
Trevor Paterson
Posted via mailing list.





PostPosted: Fri Dec 18, 2009 2:46 pm    Post subject: Netbeans 6.8 Maven projects - How to activate multiple profiles? Reply with quote

profile1,profile2,profile3

works for me



mark-500 wrote:
Quote:

Sorry to be so dim but how do I activate multiple profiles, I tried in the
Activate profiles field

profile1; profile2; profile3
profile1, profile2, profile3
profile1 profile2 profile3

before resorting to Google and finding this thread

thanks
Mark







--
View this message in context: http://old.nabble.com/Netbeans-6.8-Maven-projects---How-to-activate-multiple-profiles--tp26746783p26842829.html
Sent from the Netbeans IDE Users mailing list archive at Nabble.com.
Back to top
mark



Joined: 17 Dec 2009
Posts: 2

PostPosted: Mon Dec 21, 2009 9:58 am    Post subject: Reply with quote

Thanks Trevor - yes on removing the spaces works a charm
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> NetBeans 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