如何在依赖检查之前运行 Maven 插件
我想在依赖项检查之前运行 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>
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>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我通常在“干净”阶段进行。
优点:总是先于其他一切运行
缺点:必须运行“clean”(mvn cleancompile、mvncleaninstall 等)
I usually do it in the "clean" phase.
Upside: always runs before everything else
Downside: Have to run "clean" (mvn clean compile, mvn clean install etc)