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 240441 - Maven - Add the possibility to choose the profile in which put the new dependencies
Summary: Maven - Add the possibility to choose the profile in which put the new depend...
Status: RESOLVED WONTFIX
Alias: None
Product: projects
Classification: Unclassified
Component: Maven (show other bugs)
Version: 7.4
Hardware: PC Windows 7 x64
: P3 normal (vote)
Assignee: Tomas Stupka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-14 09:55 UTC by -Silver-
Modified: 2016-07-07 08:38 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description -Silver- 2014-01-14 09:55:03 UTC
Currently all the dependencies are added to the whole maven project so each time that a new dependency is added it is needed to manually modify the pom.xml to move the dependency under the correct profile (otherwise all the dependencies of the project(databases connectors, web servers libraries, etc etc)  needed just in the development environment or test environment are also transferred in the distribution package).

I think that should be added a method to choose in which maven profile the new dependency has to be added.
Comment 1 Milos Kleint 2014-01-14 09:57:41 UTC
if you use the Insert Code... feature in the pom.xml editor, the selected dependency will be placed in the location of the cursor (if it makes sense) so when you are inside a profile, the dependency section is added there, if you are inside <dependencyManagement> it's added there etc.
Comment 2 -Silver- 2014-01-14 10:04:08 UTC
Sorry I has not been very clear in the bug report.

I intended only when the dependency is added without opening the pom.xml file by right clicking on the "dependencies" node of the project tree view or by clicking the hint "search dependency in the maven repository" in the Editor during the coding.
Comment 3 -Silver- 2014-01-14 10:07:00 UTC
PS: It is not a bug report, it is an enhancement report. It's just a suggestion.
Comment 4 Martin Balin 2016-07-07 08:38:06 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