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 189429 - Search in Maven Repositories dialog lists "preferred" version of artifacts incorrectly
Summary: Search in Maven Repositories dialog lists "preferred" version of artifacts in...
Status: RESOLVED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Maven (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal (vote)
Assignee: Jesse Glick
URL:
Keywords: USABILITY
Depends on:
Blocks:
 
Reported: 2010-08-12 10:33 UTC by Antonin Nebuzelsky
Modified: 2010-11-24 06:15 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
rome- (19.95 KB, image/png)
2010-08-12 10:34 UTC, Antonin Nebuzelsky
Details
rome:rome artifact (19.95 KB, image/png)
2010-08-12 10:35 UTC, Antonin Nebuzelsky
Details
struts-core (16.60 KB, image/png)
2010-08-12 10:35 UTC, Antonin Nebuzelsky
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Antonin Nebuzelsky 2010-08-12 10:33:24 UTC
Found two cases where the preferred version of an artifact found by the Search in Maven Repositories hint is not the last version of the artifact.

See the two attachments.

1. rome:rome node has 1.0RC2 version attached to it (see the version string for the selected node below the table) and on the expanded node's list you can see also 1.0 - this one would be the last version released IMO

selecting "rome:rome" node and clicking Add will add 1.0RC2 version to project's Dependencies

2. org.apache.struts:struts-core node has 1.3.9 as its version, but 1.3.10 is already available as can be seen in the expanded list

selecting "org.apache.struts:struts-core" node and clicking Add will add 1.3.9 to the Dependencies

I believe the artifact node should always have the latest version attached to it.
Comment 1 Antonin Nebuzelsky 2010-08-12 10:34:14 UTC
Created attachment 101329 [details]
rome-
Comment 2 Antonin Nebuzelsky 2010-08-12 10:35:07 UTC
Created attachment 101330 [details]
rome:rome artifact
Comment 3 Antonin Nebuzelsky 2010-08-12 10:35:33 UTC
Created attachment 101331 [details]
struts-core
Comment 4 Jesse Glick 2010-11-23 16:35:38 UTC
core-main #43b81c0163c2
Comment 5 Quality Engineering 2010-11-24 06:15:46 UTC
Integrated into 'main-golden', will be available in build *201011240001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/43b81c0163c2
User: Jesse Glick <jglick@netbeans.org>
Log: #189429: Search in Maven Repositories dialog lists "preferred" version of artifacts incorrectly
Can take advantage of natural sorting in f7d99f0862c4.