Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [m2e-users] Maven / Eclipse Integration Very Slow

Hi Alex.

In general, Maven project build incrementally in Eclipse faster than from command-line, because Eclipse knows when to skip unnecessary steps.
Not every code generation goal integrates well with Eclipse though.

> calling Maven to do ‘something’ and everything gets stuck for minutes
In the "Console" view there's a small button "Open console" where you can choose "Maven Console". It might be helpful.

The problem is either with your specific Eclipse version or with your project or with your network. Try the following:
- download an older Eclipse (I personally still develop some projects in eclipse-jee-luna-SR2-win32-x86_64 to make sure more people can open the projects).
- Download and open some open source project that is known to build fine in Eclipse. The last one I tried was "maven-scm" It's huge and I recommend you to do `mvn install -Dmaven.test.skip` and after that open only a few modules from it.


On 24.08.2018 11:47, Alex Chatziparaskewas wrote:
> Hi All
> 
>  
> 
> We have a small undertaking with a total of about 10 individual projects currently. The entire thing can be build using Maven (via m2e). Nothing spectacular: some dependencies, protobuffer generation, compilation, etc. Running a full build using Maven takes a total of about 1 minute. All projects imported into Eclipse, Eclipse automatic building activated, m2e activated, full build takes about 10 minutes. While mostly the Eclipse incremental compile works, sometimes the Eclipse build just runs off, calling Maven to do ‘something’ and everything gets stuck for minutes. From the Eclipse progress bar and from the Maven Console logs there is nothing obvious, which points directly to a problem, but it seems like the Eclipse build and the Maven build are having fun together. Maybe Maven triggering some Eclipse build and Eclipse back triggering some Maven build again. We have played around a bit with settings and order of builders, but no success so far.
> 
> 
> So big question: how to use a maven project in Eclipse? Should the automatic build feature be disabled? Should the maven compile be disable? How to salvage as much incremental compiling as possible?
> 
>  
> 
> If the project would get really big, what would happen then?
> 
>  
> 
> Any help, hints or ideas would be greatly appreciated.
> 
>  
> 
> Thanks & Regards,
> 
> Alex
> 
> 
> 
> 
> _______________________________________________
> m2e-users mailing list
> m2e-users@xxxxxxxxxxx
> To change your delivery options, retrieve your password, or unsubscribe from this list, visit
> https://dev.eclipse.org/mailman/listinfo/m2e-users
> 


Back to the top