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 Dependency convergence error when maven-enforcer-plugin is used #140

Open
shanidak opened this issue Dec 17, 2020 · 0 comments
Open

Comments

@shanidak
Copy link

When maven plugin enforcer is used then getting Dependency convergence error during build. I had to manually exclude maven-checkstyle-plugin, maven-source-plugin, maven-javadoc-plugin, maven-surefire-plugin to get this work.

`Dependency convergence error for org.codehaus.plexus:plexus-component-annotations:1.5.5 paths to dependency are:
+-org.crazycake:shiro-redis-spring-boot-tutorial:3.3.1
+-org.crazycake:shiro-redis-spring-boot-starter:3.3.1
+-org.crazycake:shiro-redis:3.3.1
+-org.apache.maven.plugins:maven-checkstyle-plugin:3.1.0
+-org.apache.maven.doxia:doxia-decoration-model:1.4
+-org.codehaus.plexus:plexus-component-annotations:1.5.5
and
+-org.crazycake:shiro-redis-spring-boot-tutorial:3.3.1
+-org.crazycake:shiro-redis-spring-boot-starter:3.3.1
+-org.crazycake:shiro-redis:3.3.1
+-org.apache.maven.plugins:maven-checkstyle-plugin:3.1.0
+-org.apache.maven.doxia:doxia-integration-tools:1.6
+-org.codehaus.plexus:plexus-component-annotations:1.5.5
and
+-org.crazycake:shiro-redis-spring-boot-tutorial:3.3.1
+-org.crazycake:shiro-redis-spring-boot-starter:3.3.1
+-org.crazycake:shiro-redis:3.3.1
+-org.apache.maven.plugins:maven-checkstyle-plugin:3.1.0
+-org.codehaus.plexus:plexus-component-annotations:1.7.1
and
+-org.crazycake:shiro-redis-spring-boot-tutorial:3.3.1
+-org.crazycake:shiro-redis-spring-boot-starter:3.3.1
+-org.crazycake:shiro-redis:3.3.1
+-org.apache.maven.plugins:maven-javadoc-plugin:3.2.0
+-org.apache.maven.shared:maven-invoker:3.0.0
+-org.codehaus.plexus:plexus-component-annotations:1.7
and
+-org.crazycake:shiro-redis-spring-boot-tutorial:3.3.1
+-org.crazycake:shiro-redis-spring-boot-starter:3.3.1
+-org.crazycake:shiro-redis:3.3.1
+-org.apache.maven.plugins:maven-javadoc-plugin:3.2.0
+-org.apache.maven.shared:maven-artifact-transfer:0.10.1
+-org.codehaus.plexus:plexus-component-annotations:1.7.1

[WARNING]
Dependency convergence error for org.codehaus.plexus:plexus-archiver:4.2.0 paths to dependency are:
+-org.crazycake:shiro-redis-spring-boot-tutorial:3.3.1
+-org.crazycake:shiro-redis-spring-boot-starter:3.3.1
+-org.crazycake:shiro-redis:3.3.1
+-org.apache.maven.plugins:maven-source-plugin:3.2.1
+-org.apache.maven:maven-archiver:3.5.0
+-org.codehaus.plexus:plexus-archiver:4.2.0
and
+-org.crazycake:shiro-redis-spring-boot-tutorial:3.3.1
+-org.crazycake:shiro-redis-spring-boot-starter:3.3.1
+-org.crazycake:shiro-redis:3.3.1
+-org.apache.maven.plugins:maven-source-plugin:3.2.1
+-org.codehaus.plexus:plexus-archiver:4.2.1
and
+-org.crazycake:shiro-redis-spring-boot-tutorial:3.3.1
+-org.crazycake:shiro-redis-spring-boot-starter:3.3.1
+-org.crazycake:shiro-redis:3.3.1
+-org.apache.maven.plugins:maven-javadoc-plugin:3.2.0
+-org.codehaus.plexus:plexus-archiver:4.2.1

[WARNING]
Dependency convergence error for org.ow2.asm:asm:7.2 paths to dependency are:
+-org.crazycake:shiro-redis-spring-boot-tutorial:3.3.1
+-org.crazycake:shiro-redis-spring-boot-starter:3.3.1
+-org.crazycake:shiro-redis:3.3.1
+-org.apache.maven.plugins:maven-javadoc-plugin:3.2.0
+-org.codehaus.plexus:plexus-java:1.0.5
+-org.ow2.asm:asm:7.2
and
+-org.crazycake:shiro-redis-spring-boot-tutorial:3.3.1
+-org.springframework.boot:spring-boot-starter-test:2.3.3.RELEASE
+-com.jayway.jsonpath:json-path:2.4.0
+-net.minidev:json-smart:2.3
+-net.minidev:accessors-smart:1.2
+-org.ow2.asm:asm:5.0.4

[WARNING]
Dependency convergence error for org.codehaus.plexus:plexus-utils:2.0.5 paths to dependency are:
+-org.crazycake:shiro-redis-spring-boot-tutorial:3.3.1
+-org.crazycake:shiro-redis-spring-boot-starter:3.3.1
+-org.crazycake:shiro-redis:3.3.1
+-org.apache.maven.plugins:maven-checkstyle-plugin:3.1.0
+-org.apache.maven.reporting:maven-reporting-impl:2.3
+-org.apache.maven.doxia:doxia-core:1.2
+-org.codehaus.plexus:plexus-utils:2.0.5
and
+-org.crazycake:shiro-redis-spring-boot-tutorial:3.3.1
+-org.crazycake:shiro-redis-spring-boot-starter:3.3.1
+-org.crazycake:shiro-redis:3.3.1
+-org.apache.maven.plugins:maven-checkstyle-plugin:3.1.0
+-org.apache.maven.doxia:doxia-decoration-model:1.4
+-org.codehaus.plexus:plexus-utils:3.0.10
and
+-org.crazycake:shiro-redis-spring-boot-tutorial:3.3.1
+-org.crazycake:shiro-redis-spring-boot-starter:3.3.1
+-org.crazycake:shiro-redis:3.3.1
+-org.apache.maven.plugins:maven-checkstyle-plugin:3.1.0
+-org.apache.maven.doxia:doxia-integration-tools:1.6
+-org.codehaus.plexus:plexus-utils:3.0.15
and
+-org.crazycake:shiro-redis-spring-boot-tutorial:3.3.1
+-org.crazycake:shiro-redis-spring-boot-starter:3.3.1
+-org.crazycake:shiro-redis:3.3.1
+-org.apache.maven.plugins:maven-checkstyle-plugin:3.1.0
+-org.codehaus.plexus:plexus-resources:1.1.0
+-org.codehaus.plexus:plexus-utils:3.0.22
and
+-org.crazycake:shiro-redis-spring-boot-tutorial:3.3.1
+-org.crazycake:shiro-redis-spring-boot-starter:3.3.1
+-org.crazycake:shiro-redis:3.3.1
+-org.apache.maven.plugins:maven-checkstyle-plugin:3.1.0
+-org.codehaus.plexus:plexus-utils:3.0.24
and
+-org.crazycake:shiro-redis-spring-boot-tutorial:3.3.1
+-org.crazycake:shiro-redis-spring-boot-starter:3.3.1
+-org.crazycake:shiro-redis:3.3.1
+-org.apache.maven.plugins:maven-source-plugin:3.2.1
+-org.apache.maven:maven-archiver:3.5.0
+-org.codehaus.plexus:plexus-utils:3.3.0
and
+-org.crazycake:shiro-redis-spring-boot-tutorial:3.3.1
+-org.crazycake:shiro-redis-spring-boot-starter:3.3.1
+-org.crazycake:shiro-redis:3.3.1
+-org.apache.maven.plugins:maven-source-plugin:3.2.1
+-org.codehaus.plexus:plexus-utils:3.3.0
and
+-org.crazycake:shiro-redis-spring-boot-tutorial:3.3.1
+-org.crazycake:shiro-redis-spring-boot-starter:3.3.1
+-org.crazycake:shiro-redis:3.3.1
+-org.apache.maven.plugins:maven-javadoc-plugin:3.2.0
+-org.apache.maven:maven-settings:3.0
+-org.codehaus.plexus:plexus-utils:2.0.4
and
+-org.crazycake:shiro-redis-spring-boot-tutorial:3.3.1
+-org.crazycake:shiro-redis-spring-boot-starter:3.3.1
+-org.crazycake:shiro-redis:3.3.1
+-org.apache.maven.plugins:maven-javadoc-plugin:3.2.0
+-org.apache.maven.shared:maven-invoker:3.0.0
+-org.codehaus.plexus:plexus-utils:3.0.24
and
+-org.crazycake:shiro-redis-spring-boot-tutorial:3.3.1
+-org.crazycake:shiro-redis-spring-boot-starter:3.3.1
+-org.crazycake:shiro-redis:3.3.1
+-org.apache.maven.plugins:maven-javadoc-plugin:3.2.0
+-org.apache.maven.shared:maven-artifact-transfer:0.10.1
+-org.codehaus.plexus:plexus-utils:3.1.0
and
+-org.crazycake:shiro-redis-spring-boot-tutorial:3.3.1
+-org.crazycake:shiro-redis-spring-boot-starter:3.3.1
+-org.crazycake:shiro-redis:3.3.1
+-org.apache.maven.plugins:maven-javadoc-plugin:3.2.0
+-org.apache.maven.wagon:wagon-provider-api:2.4
+-org.codehaus.plexus:plexus-utils:3.0.8
and
+-org.crazycake:shiro-redis-spring-boot-tutorial:3.3.1
+-org.crazycake:shiro-redis-spring-boot-starter:3.3.1
+-org.crazycake:shiro-redis:3.3.1
+-org.apache.maven.plugins:maven-javadoc-plugin:3.2.0
+-org.codehaus.plexus:plexus-io:3.2.0
+-org.codehaus.plexus:plexus-utils:3.3.0
and
+-org.crazycake:shiro-redis-spring-boot-tutorial:3.3.1
+-org.crazycake:shiro-redis-spring-boot-starter:3.3.1
+-org.crazycake:shiro-redis:3.3.1
+-org.apache.maven.plugins:maven-javadoc-plugin:3.2.0
+-org.codehaus.plexus:plexus-utils:3.3.0
and
+-org.crazycake:shiro-redis-spring-boot-tutorial:3.3.1
+-org.crazycake:shiro-redis-spring-boot-starter:3.3.1
+-org.crazycake:shiro-redis:3.3.1
+-org.apache.maven.plugins:maven-javadoc-plugin:3.2.0
+-org.codehaus.plexus:plexus-interactivity-api:1.0-alpha-6
+-org.codehaus.plexus:plexus-utils:1.4
and
+-org.crazycake:shiro-redis-spring-boot-tutorial:3.3.1
+-org.crazycake:shiro-redis-spring-boot-starter:3.3.1
+-org.crazycake:shiro-redis:3.3.1
+-org.apache.maven.plugins:maven-surefire-plugin:2.22.0
+-org.apache.maven.surefire:maven-surefire-common:2.22.0
+-org.apache.maven:maven-project:2.2.1
+-org.apache.maven:maven-profile:2.2.1
+-org.codehaus.plexus:plexus-utils:1.5.15
and
+-org.crazycake:shiro-redis-spring-boot-tutorial:3.3.1
+-org.crazycake:shiro-redis-spring-boot-starter:3.3.1
+-org.crazycake:shiro-redis:3.3.1
+-org.apache.maven.plugins:maven-surefire-plugin:2.22.0
+-org.apache.maven.surefire:maven-surefire-common:2.22.0
+-org.apache.maven:maven-project:2.2.1
+-org.apache.maven:maven-artifact-manager:2.2.1
+-org.codehaus.plexus:plexus-utils:1.5.15
and
+-org.crazycake:shiro-redis-spring-boot-tutorial:3.3.1
+-org.crazycake:shiro-redis-spring-boot-starter:3.3.1
+-org.crazycake:shiro-redis:3.3.1
+-org.apache.maven.plugins:maven-surefire-plugin:2.22.0
+-org.apache.maven.surefire:maven-surefire-common:2.22.0
+-org.apache.maven:maven-project:2.2.1
+-org.apache.maven:maven-plugin-registry:2.2.1
+-org.codehaus.plexus:plexus-utils:1.5.15
and
+-org.crazycake:shiro-redis-spring-boot-tutorial:3.3.1
+-org.crazycake:shiro-redis-spring-boot-starter:3.3.1
+-org.crazycake:shiro-redis:3.3.1
+-org.apache.maven.plugins:maven-surefire-plugin:2.22.0
+-org.apache.maven.surefire:maven-surefire-common:2.22.0
+-org.apache.maven:maven-project:2.2.1
+-org.codehaus.plexus:plexus-utils:1.5.15
and
+-org.crazycake:shiro-redis-spring-boot-tutorial:3.3.1
+-org.springframework.boot:spring-boot-maven-plugin:2.3.3.RELEASE
+-org.sonatype.plexus:plexus-build-api:0.0.7
+-org.codehaus.plexus:plexus-utils:1.5.8

[WARNING]
Dependency convergence error for org.apache.maven.doxia:doxia-decoration-model:1.4 paths to dependency are:
+-org.crazycake:shiro-redis-spring-boot-tutorial:3.3.1
+-org.crazycake:shiro-redis-spring-boot-starter:3.3.1
+-org.crazycake:shiro-redis:3.3.1
+-org.apache.maven.plugins:maven-checkstyle-plugin:3.1.0
+-org.apache.maven.doxia:doxia-decoration-model:1.4
and
+-org.crazycake:shiro-redis-spring-boot-tutorial:3.3.1
+-org.crazycake:shiro-redis-spring-boot-starter:3.3.1
+-org.crazycake:shiro-redis:3.3.1
+-org.apache.maven.plugins:maven-checkstyle-plugin:3.1.0
+-org.apache.maven.doxia:doxia-integration-tools:1.6
+-org.apache.maven.doxia:doxia-decoration-model:1.6
....................
`

Plugin added in POM:

<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-enforcer-plugin</artifactId>
				<version>3.0.0-M2</version>
				<executions>
					<execution>
						<id>enforce-versions</id>
						<goals>
							<goal>enforce</goal>
						</goals>
						<configuration>
							<rules><dependencyConvergence/></rules>
						</configuration>
					</execution>
				</executions>
			</plugin>

Maven version Used:
Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-11T03:41:47+11:00)
Java version: 1.8.0_261, vendor: Oracle Corporation

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

1 participant