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 216434 - Sort dependencies alphabetically in "Add dependencies" dialog
Summary: Sort dependencies alphabetically in "Add dependencies" dialog
Status: VERIFIED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Maven (show other bugs)
Version: 7.3
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Milos Kleint
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-06 09:48 UTC by mienamoo
Modified: 2013-10-22 18:31 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 mienamoo 2012-08-06 09:48:39 UTC
It would be useful to me to be able to sort the dependencies listed in a specific pom.xml file alphabetically, by groupId and then artifactId. This would be particularly useful for my rather large dependency management section in the parent pom.xml of our NetBeans platform application. Would it be possible to add an action or hint that would move the items in the pom.xml file itself around?
Comment 1 Milos Kleint 2013-01-03 10:56:11 UTC
 are you requesting sorting in the UI (projects view) or an action that will change the POM?
Comment 2 mienamoo 2013-01-04 06:07:57 UTC
(In reply to comment #1)
>  are you requesting sorting in the UI (projects view) or an action that will
> change the POM?

My original idea was an action to change the POM. That would then affect the order on the Dependency Management tab of the Add Dependency dialog, making items easier to find.

However, I would be happy if the items on the Dependency Management tab of the Add Dependency dialog is sorted alphabetically instead. :)
Comment 3 Milos Kleint 2013-10-17 06:24:40 UTC
http://hg.netbeans.org/core-main/rev/d809c243a616
Comment 4 markiewb 2013-10-17 14:41:30 UTC
@Milos: FYI changing the order of dependencies in the pom.xml would have changed the dependency resolution, because the order defines the index which is used for version resolution. 

See conflicting cousins (0:15:15 @ Maven puzzlers) http://parleys.com/play/5148922b0364bc17fc56ca05/chapter1/about

But sorting in the UI is OK
Comment 5 Quality Engineering 2013-10-19 04:00:14 UTC
Integrated into 'main-silver', will be available in build *201310190001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/d809c243a616
User: Milos Kleint <mkleint@netbeans.org>
Log: #216434 sort managed dependencies in the add dependencies dialog by groupid+artifactid
Comment 6 mienamoo 2013-10-22 18:31:25 UTC
Verified with build 201310210001. Thanks!