alexxiyang/shiro-redis

Maven Dependency convergence error when maven-enforcer-plugin is used

shanidak opened this issue · 0 comments

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