Skip to content

Maven Enforcer Plugin #54

@rtc11

Description

@rtc11

I always use maven-enforcer-plugin in my spring-boot apps, but I seem to get some dependency mismatches:
The plugin:

<build>
        <plugins>
            <plugin>
                <artifactId>maven-enforcer-plugin</artifactId>
                <executions>
                    <execution>
                        <goals>
                            <goal>enforce</goal>
                        </goals>
                        <configuration>
                            <rules>
                                <dependencyConvergence/>
                            </rules>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>

The result:

Dependency convergence error for com.sun.xml.fastinfoset:FastInfoset:1.2.15 paths to dependency are:
  +-de.codecentric:cxf-spring-boot-starter:2.1.7.RELEASE
    +-de.codecentric:cxf-spring-boot-starter-maven-plugin:2.1.7.RELEASE
      +-org.glassfish.jaxb:jaxb-runtime:2.3.1
        +-com.sun.xml.fastinfoset:FastInfoset:1.2.15
and
  +-de.codecentric:cxf-spring-boot-starter:2.1.7.RELEASE
    +-de.codecentric:cxf-spring-boot-starter-maven-plugin:2.1.7.RELEASE
      +-com.sun.xml.ws:jaxws-rt:2.3.2
        +-com.sun.xml.fastinfoset:FastInfoset:1.2.16
Dependency convergence error for org.apache.maven:maven-artifact:3.6.0 paths to dependency are:
  +-de.codecentric:cxf-spring-boot-starter:2.1.7.RELEASE
    +-de.codecentric:cxf-spring-boot-starter-maven-plugin:2.1.7.RELEASE
      +-org.apache.maven:maven-plugin-api:3.6.0
        +-org.apache.maven:maven-artifact:3.6.0
and
  +-de.codecentric:cxf-spring-boot-starter:2.1.7.RELEASE
    +-de.codecentric:cxf-spring-boot-starter-maven-plugin:2.1.7.RELEASE
      +-org.twdata.maven:mojo-executor:2.3.0
        +-org.apache.maven:maven-core:3.0.5
          +-org.apache.maven:maven-artifact:3.0.5
Dependency convergence error for org.apache.maven:maven-artifact:3.6.0 paths to dependency are:
  +-de.codecentric:cxf-spring-boot-starter:2.1.7.RELEASE
    +-de.codecentric:cxf-spring-boot-starter-maven-plugin:2.1.7.RELEASE
      +-org.apache.maven:maven-plugin-api:3.6.0
        +-org.apache.maven:maven-artifact:3.6.0
and
  +-de.codecentric:cxf-spring-boot-starter:2.1.7.RELEASE
    +-de.codecentric:cxf-spring-boot-starter-maven-plugin:2.1.7.RELEASE
      +-org.twdata.maven:mojo-executor:2.3.0
        +-org.apache.maven:maven-core:3.0.5
          +-org.apache.maven:maven-artifact:3.0.5

These are not all of them.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions