Home » Archived » IAM (Eclipse Integration for Apache Maven) » Extremely slow "Updating classpath" on Eclipse startup
Extremely slow "Updating classpath" on Eclipse startup [message #512336] |
Thu, 04 February 2010 12:21  |
Eclipse User |
|
|
|
In my multi-module application, at each eclipse startup, there is
an "updating classpath" phase launched by IAM for each module. Each phase lasts for 2 to 10 minutes, resulting in an extremely slow startup.
The event view does'nt show any event.
Any idea ? I know there has been a lot of discussions on the subject, but I coul'ndt find a tutorial for getting rid of this.
|
|
| | |
Re: Extremely slow "Updating classpath" on Eclipse startup [message #512653 is a reply to message #512481] |
Fri, 05 February 2010 14:08   |
Eclipse User |
|
|
|
are they jars/wars/...?
the progress view is telling you "updating classpath of project X" ?
what kind of project is that?
do you have all the dependencies in your local repo?
I would need a lot more details, I have projects open, with wars, war
overlays,... and it's not taking that long at all
On 2/5/10 1:32 AM, Marc Ban wrote:
> Hello Carlos,
>
> Thank you for responding,
>
> Yes, I've done a fresh install with the last 0.11.0. ( Eclipse IAM
> 0.11.0.201001181900).
>
> For the moment I only open 7 of my modules in Eclipse. (there
> are 15 modules in the full project, and it's a wtp project). All mdules
> are in a snapshot state.
>
> the full update process take 20-30 mn.
> The maven events view doesn't show any event.
|
|
|
Re: Extremely slow "Updating classpath" on Eclipse startup [message #512767 is a reply to message #512653] |
Sun, 07 February 2010 02:10   |
Eclipse User |
|
|
|
Am 05.02.2010 20:08, schrieb Carlos Sanchez:
> are they jars/wars/...?
> the progress view is telling you "updating classpath of project X" ?
> what kind of project is that?
> do you have all the dependencies in your local repo?
>
> I would need a lot more details, I have projects open, with wars, war
> overlays,... and it's not taking that long at all
>
>
> On 2/5/10 1:32 AM, Marc Ban wrote:
>> Hello Carlos,
>>
>> Thank you for responding,
>>
>> Yes, I've done a fresh install with the last 0.11.0. ( Eclipse IAM
>> 0.11.0.201001181900).
>>
>> For the moment I only open 7 of my modules in Eclipse. (there
>> are 15 modules in the full project, and it's a wtp project). All mdules
>> are in a snapshot state.
>>
>> the full update process take 20-30 mn.
>> The maven events view doesn't show any event.
>
Hello Everyone
I was just about to write about the same problem, so I add it here.
I also have a multi project pom with 4 modules (1 war, 3 jar). Its not
taking 10 Minutes on my setup, but still rather long (maybe one or two
minutes).
I was thinking if it wouldnt make more sense to just skip the whole step
of preparing each project on startup again...usually when you leave the
workspace the setup is correct and if I want IAM to prepare the project
(paren pom changes) I can just call "Project -> Clean".
Anyway, I installed Netbeans 6.8 just to try how this handles Maven and
on the same project the it is setup much faster. Of course, when
libraries need to be downloaded it takes a while, I am asuming that
everything is in the lokal Repo already.
regards
-- Marc
|
|
| | | | |
Re: Extremely slow "Updating classpath" on Eclipse startup [message #513321 is a reply to message #513200] |
Tue, 09 February 2010 08:26   |
Eclipse User |
|
|
|
you dont have internet connectivity from that machine, or use a proxy?
at startup it'll try to download the sources, but if they are not
present it will just take the time it takes to ping a remote server. I
think the issue is that instead your http requests are timing out, which
may mean 30 seconds or more for each missing source
even with "download sources" unchecked you can right click on the
project and in the Maven menu there's a download sources command
On 2/9/10 3:01 AM, Marc Ban wrote:
> Carlos,
>
> I found a solution !
>
> The event view was already open, but I hadn't seen the filter options.
> I set the filter to "debug", and saw a message : maven was stuck in
> trying to download sources for jars in all repositories, and not
> founding them anywhere.
>
> I deactivated the "download sources" option in maven preferences, and
> starting time is now OK .
>
> The only problem remaining is that the option is not very useful, as I
> can't activate it.
> I don't know if it is a bug, but I think there should be at least a
> serious warning on that option.
>
>
> Thanks anyway for your responses. I hope this discussion will help other
> IAM users too.
>
|
|
| | |
Re: Extremely slow "Updating classpath" on Eclipse startup [message #572065 is a reply to message #512380] |
Fri, 05 February 2010 04:32  |
Eclipse User |
|
|
|
Hello Carlos,
Thank you for responding,
Yes, I've done a fresh install with the last 0.11.0. ( Eclipse IAM 0.11.0.201001181900).
For the moment I only open 7 of my modules in Eclipse. (there
are 15 modules in the full project, and it's a wtp project). All mdules are in a snapshot state.
the full update process take 20-30 mn.
The maven events view doesn't show any event.
|
|
|
Re: Extremely slow "Updating classpath" on Eclipse startup [message #572094 is a reply to message #572065] |
Fri, 05 February 2010 14:08  |
Eclipse User |
|
|
|
are they jars/wars/...?
the progress view is telling you "updating classpath of project X" ?
what kind of project is that?
do you have all the dependencies in your local repo?
I would need a lot more details, I have projects open, with wars, war
overlays,... and it's not taking that long at all
On 2/5/10 1:32 AM, Marc Ban wrote:
> Hello Carlos,
>
> Thank you for responding,
>
> Yes, I've done a fresh install with the last 0.11.0. ( Eclipse IAM
> 0.11.0.201001181900).
>
> For the moment I only open 7 of my modules in Eclipse. (there
> are 15 modules in the full project, and it's a wtp project). All mdules
> are in a snapshot state.
>
> the full update process take 20-30 mn.
> The maven events view doesn't show any event.
|
|
|
Re: Extremely slow "Updating classpath" on Eclipse startup [message #572132 is a reply to message #512653] |
Sun, 07 February 2010 07:04  |
Eclipse User |
|
|
|
Am 05.02.2010 20:08, schrieb Carlos Sanchez:
> are they jars/wars/...?
> the progress view is telling you "updating classpath of project X" ?
> what kind of project is that?
> do you have all the dependencies in your local repo?
>
> I would need a lot more details, I have projects open, with wars, war
> overlays,... and it's not taking that long at all
>
>
> On 2/5/10 1:32 AM, Marc Ban wrote:
>> Hello Carlos,
>>
>> Thank you for responding,
>>
>> Yes, I've done a fresh install with the last 0.11.0. ( Eclipse IAM
>> 0.11.0.201001181900).
>>
>> For the moment I only open 7 of my modules in Eclipse. (there
>> are 15 modules in the full project, and it's a wtp project). All mdules
>> are in a snapshot state.
>>
>> the full update process take 20-30 mn.
>> The maven events view doesn't show any event.
>
Hello Everyone
I was just about to write about the same problem, so I add it here.
I also have a multi project pom with 4 modules (1 war, 3 jar). Its not
taking 10 Minutes on my setup, but still rather long (maybe one or two
minutes).
I was thinking if it wouldnt make more sense to just skip the whole step
of preparing each project on startup again...usually when you leave the
workspace the setup is correct and if I want IAM to prepare the project
(paren pom changes) I can just call "Project -> Clean".
Anyway, I installed Netbeans 6.8 just to try how this handles Maven and
on the same project the it is setup much faster. Of course, when
libraries need to be downloaded it takes a while, I am asuming that
everything is in the lokal Repo already.
regards
-- Marc
|
|
|
Re: Extremely slow "Updating classpath" on Eclipse startup [message #572148 is a reply to message #512653] |
Mon, 08 February 2010 06:07  |
Eclipse User |
|
|
|
Hello Carlos,
I have 3 wars, 2 jars, and 1 parent project.
All my dependencies are in the local repository.
"Work off-line" and "download sources" are set in preferences.
All options are set in artifact search preferences.
It's strange,I can't see any message in the log, or in the event view...
Is there any way of activating more logs ?
|
|
|
Re: Extremely slow "Updating classpath" on Eclipse startup [message #572181 is a reply to message #572132] |
Mon, 08 February 2010 13:26  |
Eclipse User |
|
|
|
On 2/7/10 4:04 AM, Marc Schlegel wrote:
> I also have a multi project pom with 4 modules (1 war, 3 jar). Its not
> taking 10 Minutes on my setup, but still rather long (maybe one or two
> minutes).
that's pretty much what we can get, 1-2 minutes for 4 projects is not
too bad. Eclipse is not particularly fast.
>
> I was thinking if it wouldnt make more sense to just skip the whole step
> of preparing each project on startup again...usually when you leave the
> workspace the setup is correct and if I want IAM to prepare the project
> (paren pom changes) I can just call "Project -> Clean".
That is supposed to happen already. If the project has no errors and the
classpath was already computed the startup time is lower
>
> Anyway, I installed Netbeans 6.8 just to try how this handles Maven and
> on the same project the it is setup much faster. Of course, when
> libraries need to be downloaded it takes a while, I am asuming that
> everything is in the lokal Repo already.
>
> regards
> -- Marc
|
|
|
Re: Extremely slow "Updating classpath" on Eclipse startup [message #572208 is a reply to message #572148] |
Mon, 08 February 2010 13:45  |
Eclipse User |
|
|
|
You need to have the event view open in order to capture the events
window - show view - other - apache maven - events
you can filter there the severity of the logs.
Not everything shows up there, but it's a good place to start
On 2/8/10 3:07 AM, Marc Ban wrote:
> Hello Carlos,
> I have 3 wars, 2 jars, and 1 parent project.
> All my dependencies are in the local repository.
>
> "Work off-line" and "download sources" are set in preferences.
> All options are set in artifact search preferences.
>
> It's strange,I can't see any message in the log, or in the event view...
> Is there any way of activating more logs ?
|
|
|
Goto Forum:
Current Time: Wed Jul 23 09:39:41 EDT 2025
Powered by FUDForum. Page generated in 0.16525 seconds
|