-
Notifications
You must be signed in to change notification settings - Fork 40.4k
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
Switch from Aether to Maven Resolver #7627
Comments
We use some internal Mockito classes and some breaking API changes have been made to them in Mockito 2. This commit introduces a utility class, SpringBootMockUtil, to shield our code from these differences. Mockito 1 is called directly and Mockito 2 is called via reflection. To allow these changes to be tested, FilteredClassPathRunner has been enhanced to also support overriding a dependency on the class path. As a result it has been renamed to ModifiedClassPathRunner. The new ClassPathOverrides annotation can be used to provide the Maven coordinates of one or more dependencies that should be resolved and added to the class path. Such additions are added to the start of the class path so that they override any existing dependency that contains the same classes. Closes gh-6520
Moving from Aether to Maven Resolver also requires moving from Maven's Aether Provider to Maven's Maven Resolver Provider. Unfortunately, the latter depends on Guava which is 2.4MB. This is the biggest contributor to the CLI zip ballooning from 9.77MB to 13MB. I'm not sure what we should do here as we seem to have two options and neither of them is very appealing:
|
On closer inspect Maven's Aether Provider has required Guava since 3.2.3. We're currently using 3.2.1 so we're avoiding Guava more by luck than good measure. |
I've opened https://issues.apache.org/jira/browse/MNG-6306 to see if Maven Resolver Provider can drop its Guava dependency. |
Guava will be dropped by me this day... |
Issue has been fixed. |
@michael-o Thanks! |
Not sure if we'll have a |
New maven-resolver version 1.1.1 released by Maven Team 2017-02-15 |
@slachiewicz That doesn't help us unfortunately. We need a release of |
Looks like 1.1.1 has been released. |
Anyhow I can help? |
@michael-o Thanks for the offer but I think we've got everything we need now. |
There's unfortunately still a Guava dependency, but it appears to be unnecessary. I've raise https://issues.apache.org/jira/browse/MNG-6475 |
See https://projects.eclipse.org/projects/technology.aether/reviews/termination-review
Release tracking here:
https://issues.apache.org/jira/browse/MRESOLVER/fixforversion/12338256/?selectedTab=com.atlassian.jira.jira-projects-plugin:version-summary-panel
The text was updated successfully, but these errors were encountered: