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.
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?
are you requesting sorting in the UI (projects view) or an action that will change the POM?
(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. :)
http://hg.netbeans.org/core-main/rev/d809c243a616
@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
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
Verified with build 201310210001. Thanks!