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

Maven version to 3.6.1 #802

Merged
merged 12 commits into from Jul 31, 2019
Merged

Maven version to 3.6.1 #802

merged 12 commits into from Jul 31, 2019

Conversation

suztomo
Copy link
Contributor

@suztomo suztomo commented Jul 24, 2019

Fixes #803 (ClassNotFoundError due to dependency conflict)

Initially I was thinking to fix it by multiple exclusion elements
(commit), but leveraging Maven's BOM for version 3.6.1 is more straightforward to control the version of plexus-util in the transitive dependency.

@@ -41,7 +41,7 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<guava.version>28.0-jre</guava.version>
<resolver.version>1.4.0</resolver.version>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like this PR would downgrade our resolver version to 1.3.3. If so, I'm not sure we want to do that.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see maven-resolver-api 1.4.0 in its dependency tree https://gist.github.com/suztomo/f3a99fa9c285c00552c751911e342b59.

Both this pom's parent (dependency-parent) and org.apache.maven:maven:3.6.1 try to set maven-resolver-api version. Seems the former wins.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just created #810 to clarify maven-related dependencies should have provided scope, because these dependencies are already there when Maven runs an enforcer rule.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Created #813

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

813 merged.

@suztomo suztomo merged commit 5d43390 into master Jul 31, 2019
@suztomo suztomo deleted the maven_version branch July 31, 2019 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Dependency Conflict in upgrading to Maven 3.6.1
3 participants