也许这也会有所帮助,我不使用它,但这是用于更改依赖项的配置形式
<plugin>
<artifactId>proguard-maven-plugin</artifactId>
<version>2.0.4</version>
<dependencies>
<dependency>
<groupId>net.sf.proguard</groupId>
<artifactId>proguard</artifactId>
<version>4.6</version>
</dependency>
</dependencies>
</plugin>
也是一个蚂蚁运行的例子
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.7</version>
<dependencies>
<dependency>
<groupId>ant-contrib</groupId>
<artifactId>ant-contrib</artifactId>
<version>1.0b2</version>
<exclusions>
<exclusion>
<groupId>ant</groupId>
<artifactId>ant</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.ant</groupId>
<artifactId>ant-nodeps</artifactId>
<version>1.8.1</version>
</dependency>
</dependencies>
</plugin>
注意也!对于 maven2 -已解决的问题 maven3 http://jira.codehaus.org/browse/MNG-1323
对于多模块反应器构建插件的依赖关系,在首次使用插件时解决。如果您的依赖项没有在 reactor 构建中下载,但在单个模块中工作正常,那么您可能需要将其包含在早期项目中 - 最简单的方法是添加到共享父项的 pluginManagement