Tags

links:
https://maven.apache.org/plugins/maven-dependency-plugin/
e.g. mvn dependency:tree -Dverbose -Dincludes=org.apache.mina:mina-core
– Turn “enforcer” on and off to enforce compile failure if the latest jar wasn’t used.

<plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-enforcer-plugin</artifactId>
    <version>1.4.1</version>
    <executions>
        <execution>
            <id>enforce</id>
            <configuration>
                <rules>
                    <requireUpperBoundDeps>
                        <!-- 'uniqueVersions' (default:false) can be set to true if you want to compare the timestamped SNAPSHOTs  -->
                        <uniqueVersions>false</uniqueVersions>
                    </requireUpperBoundDeps>
                </rules>
            </configuration>
            <goals>
                <goal>enforce</goal>
            </goals>
        </execution>
    </executions>
</plugin>
Advertisements