如何在依赖检查之前运行maven插件 [英] How to run maven plugin before dependency check
本文介绍了如何在依赖检查之前运行maven插件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想在依赖项检查之前运行maven-install-plugin。我怎样才能做到这一点?
插件配置:
I want to run maven-install-plugin before dependency check. How can I do that? The plugin configuration:
<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>
推荐答案
我通常在干净阶段进行。
I usually do it in the "clean" phase.
上涨:总是在其他一切之前运行
Upside: always runs before everything else
下行:必须运行干净(mvn clean compile, mvn clean install etc)
Downside: Have to run "clean" (mvn clean compile, mvn clean install etc)
这篇关于如何在依赖检查之前运行maven插件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文