How to run maven plugin before dependency check

旧时模样 提交于 2019-12-06 23:36:26

问题


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>

回答1:


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)



来源:https://stackoverflow.com/questions/6120227/how-to-run-maven-plugin-before-dependency-check

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!