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 226186 - Cannot cancel "Downloading Sources"
Summary: Cannot cancel "Downloading Sources"
Status: NEW
Alias: None
Product: projects
Classification: Unclassified
Component: Maven (show other bugs)
Version: 7.3.1
Hardware: PC Windows 7
: P3 normal with 2 votes (vote)
Assignee: Tomas Stupka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-15 15:42 UTC by steve.stogner
Modified: 2015-10-13 20:43 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 steve.stogner 2013-02-15 15:42:44 UTC
In a Maven project, expand the Dependencies node.
Right-click a jar and Download Sources.
In my case, it hung at 25% for a while, so I decided to cancel.
"Are you sure you want to cancel Downloading Sources?" -> clicked Yes.
NetBeans did not remove the Downloading Sources task from the status bar... still displaying 25%.
I tried to download sources for commons-validator-1.4.0.jar if that's helpful:
<dependency>
    <groupId>commons-validator</groupId>
    <artifactId>commons-validator</artifactId>
    <version>1.4.0</version>
</dependency>
Comment 1 Milos Kleint 2013-02-21 13:15:18 UTC
the maven library performing the download (maven wagon via apache httpcommons) doesn't allow explicit cancelling of transfer, we only cancel the transport in a transfer listener by throwing exception. That's suboptimal in cases when the  transfer is stuck because then we don't get any listener events.
Comment 2 Lou Dasaro 2015-10-13 20:43:30 UTC
Just updating: Still present in IDE 8.1 RC2 (Build nbms-and-javadoc-3603-on-20151013).