This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 240692 - Cannot 'install -o' with Dependencies with Custom Goals
Summary: Cannot 'install -o' with Dependencies with Custom Goals
Status: RESOLVED WONTFIX
Alias: None
Product: projects
Classification: Unclassified
Component: Maven (show other bugs)
Version: 7.4
Hardware: PC Linux
: P3 normal (vote)
Assignee: Tomas Stupka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-20 10:40 UTC by tomzi
Modified: 2016-07-07 08:38 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description tomzi 2014-01-20 10:40:03 UTC
If I create a Global Maven Goal (Tools/Options/Java/Maven)
- 'install -o' -> for offline
- Check 'Build with Dependencies'

then NB won't add the '-o' option to the build if I use this Custom Goal

If I don't use 'Build with Dependencies' it works just fine.

Please add the possibility to add options to my build for 'Build with Dependencies'

Product Version = NetBeans IDE 7.4 (Build 201310111528)
Operating System = Linux version 3.8.0-32-generic running on amd64
Java; VM; Vendor = 1.7.0_51
Runtime = Java HotSpot(TM) 64-Bit Server VM 24.51-b03
Comment 1 Milos Kleint 2014-01-20 13:11:44 UTC
adding switches in Goals field has never been officially supported, only works conincidently.
Comment 2 Milos Kleint 2014-01-20 13:15:45 UTC
with "build with dependencies" checkbox, you are effectively executing 2 maven cmd line builds.
1. you run what you have mapped for "build with dependencies" action. do you have the -o option there as well?
2. then the actual defined build for the given action is executed. I suppose in here you should have the -o switch.
Comment 3 tomzi 2014-01-23 09:43:58 UTC
Yeah - I know - I got that from the popup that appeared. But I usually need to switch around between offline and online builds since our CI builds as soon as something changed in SVN, which keeps pulling new snapshots from nexus. But when debugging I don't want that - so I usually need to initially build online and then I try to stay offline. Which is terrible to keep having to switch.

There fore I created Global Goals for some things. However with 'Build with Dependencies' thats not dynamic enough. When I change it to -o and create a goal for online build using 'Build with dependencies' - it will still use the -offline build...

See my problem. I always have to change the 'Build with dependencies' first before I use my custom goal. Which completely contradicts the whole custom goal usecase
Comment 4 Martin Balin 2016-07-07 08:38:11 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss