我在单个pom.xml中有两个对相同依赖项的引用,一个在依赖项部分,另一个在插件的配置中。我可以以某种方式避免这种重复吗?
<project>
...
<dependencies>
...
<dependency>
<groupId>com.example</groupId>
<artifactId>module</artifactId>
<version>1.0</version>
</dependency>
...
</dependencies>
<build>
<plugins>
...
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.10</version>
<executions>
<execution>
...
<configuration>
<artifactItems>
<artifactItem>
<groupId>com.example</groupId>
<artifactId>module</artifactId>
<version>1.0</version>
...