Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Incomplete
-
Affects Version/s: 0.0.11
-
Fix Version/s: None
-
Component/s: Dependency Resolver
-
Labels:None
-
Number of attachments :
Description
I have seen that the M2-Console print out the same message multiple times:
11:37:02 CEST: Downloaded Repositoryfornax.repository/org/openarchitectureware/oaw-core-xpand2/4.1.1/oaw-core-xpand2-4.1.1.jar
09.04.07 11:37:04 CEST: Downloaded Repositoryfornax.repository/org/openarchitectureware/oaw-core-xpand2/4.1.1/oaw-core-xpand2-4.1.1.jar
09.04.07 11:37:06 CEST: Downloaded Repositoryfornax.repository/org/openarchitectureware/oaw-core-xpand2/4.1.1/oaw-core-xpand2-4.1.1.jar
After some debugging I see that the TransferListernerAdapter is created 3 times. I think the problem is the parameter " Maven2Console console" needed by the constructor of the TransferListenerAdapter. There is only one Maven2Console, so if an event occurs that use the TransferListernerAdapter every added Listener is called. As a result the same message will be printed out 3 times.
Another problem with this TransferListenerAdapter is that often the ProgressView shows:
200% downloading ...
This i have fixed with an if (see the patch).
But the StringBuilder in the method transferProgress i have reactivated shows corious results:
11:37:02 CEST: 145/146K
09.04.07 11:37:02 CEST: 73/146K
09.04.07 11:37:02 CEST: 146/146K
09.04.07 11:37:02 CEST: 146/146K
09.04.07 11:37:02 CEST: 75/146K
09.04.07 11:37:02 CEST: 146/146K
09.04.07 11:37:02 CEST: 146/146K
09.04.07 11:37:02 CEST: 76/146K
09.04.07 11:37:02 CEST: 146/146K
09.04.07 11:37:02 CEST: 146/146K
09.04.07 11:37:02 CEST: 77/146K
You see there are really curious results.
Attachments
Issue Links
| This issue duplicates: | ||||
| MNGECLIPSE-302 | Plugin tries to download dependencies N times |
|
|
|
Thorsten, why do you think that the problem is with the Maven2Console? It is used within the TransferListener only to print out some messages. Can you see my comment for
MNGECLIPSE-302where I describe the problem, too?MNGECLIPSE-302where I describe the problem, too?