Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolving dependencies very slow using Aether #54

Open
bwolff opened this issue Apr 1, 2014 · 2 comments
Open

Resolving dependencies very slow using Aether #54

bwolff opened this issue Apr 1, 2014 · 2 comments

Comments

@bwolff
Copy link

bwolff commented Apr 1, 2014

Using GWT 1.0 plugin together with Grails 2.3.7 and the new "maven" dependency resolution, I noticed that running Grails commands like "run-app" or "compile-gwt-modules" take very long to start.

It starts to get really slow after the "COMPILE START" println output and before the single dependencies are added.

Using "ivy" as the dependency resolution manager doesn't cause this long waiting times. I could not trace down what the problem might be, maybe something related to the "extended-dependencies" plugin?

Can anyone confirm this issue and experiences the same?

@donbeave
Copy link
Contributor

donbeave commented Apr 1, 2014

Please check this issue:
#50

@bwolff
Copy link
Author

bwolff commented Apr 1, 2014

Ok, thanks, so it looks like this very slow behaviour is a tribute that was payed to support both, Ivy and Aether dependency resolution?

Unfortunately ever since we use this plugin ~3 years, the dependency resolution and classpath handling was usually a constant pain and cause for many problems. I'm afraid it has grown out of control and was never really cleaned up.

I tried once to dive into the classpath handling in the scripts that come with the plugin, but in the end I failed. There are often implicit variables used in the closures and I often didn't manage to find out where they came from or where they are used. I didn't have the time in the end recreated it from scratch.

Maybe there is hope someday that the dependencies could be resolved properly? Maybe someone who is really into the internal could shed some light on what is required in terms of extra dependency handling or why it is so difficult. The dependencies could be resolved by the default Grails mechanism and simply be put in the classpath of the GWT compiler and hosted mode etc. Why is it necessary to do some custom resolution of the dependencies that causes the mechanism to be so slow?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants