我想在依赖项检查之前运行maven-install-plugin。我怎样才能做到这一点? 插件配置:
<artifactId>maven-install-plugin</artifactId>
<executions>
<execution>
<id>install-library</id>
<phase>process-resources</phase>
<goals>
<goal>install-file</goal>
</goals>
<configuration>
<groupId>my.assets</groupId>
<artifactId>myAsset</artifactId>
<version>0.1-SNAPSHOT</version>
<packaging>swc</packaging>
<file>libs/asset.swc</file>
</configuration>
</execution>
</executions>
答案 0 :(得分:5)
我通常在“清洁”阶段这样做。
上行:始终在其他一切之前运行
下行:必须运行“干净”(mvn clean compile,mvn clean install等)