Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to run maven plugin before dependency check

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>
like image 375
Kirill Trofimov Avatar asked May 25 '11 06:05

Kirill Trofimov


1 Answers

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)

like image 192
pap Avatar answered Oct 22 '22 15:10

pap