You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Grammer <pr...@gmail.com> on 2016/09/05 20:56:49 UTC
About goal analyze-duplicate of maven-dependency-plugin
My bom-project use importing other poms in dependencyManagement section to
accumulate dependency versions in one, and it seems that analyze-duplicate
goal of maven-dependency-plugin is not detect duplication, if same
dependency presence in importing pom and bom pom. For reproduce lets create
two projects: some-framework-bom and my-bom:
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>some.framework</groupId>
<artifactId>bom</artifactId>
<version>1</version>
<packaging>pom</packaging>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>1.7.13</version>
</dependency>
</dependencies>
</dependencyManagement>
</project>
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>my</groupId>
<artifactId>bom</artifactId>
<version>1</version>
<packaging>pom</packaging>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>some.framework</groupId>
<artifactId>bom</artifactId>
<version>1</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>1.7.13</version>
</dependency>
</dependencies>
</dependencyManagement>
</project>
Run "mvn install" for some.framework:bom:1 and then run "mvn
dependency:analyze-duplicate" against my:bom:1. Goal dont show any
duplicates. So if, it is a bug, please help to register it in jira.
--
View this message in context: http://maven.40175.n5.nabble.com/About-goal-analyze-duplicate-of-maven-dependency-plugin-tp5879988.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org