8

我想在依赖检查之前运行 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>
4

1 回答 1

6

我通常在“干净”阶段进行。

优势:总是在其他一切之前运行

缺点:必须运行“干净”(mvn clean compile、mvn clean install 等)

于 2011-05-25T06:28:51.520 回答