1. 程式人生 > >Maven將遠端包拉去到專案指定路徑

Maven將遠端包拉去到專案指定路徑

<build>
        <plugins>
            <plugin>
                <artifactId>maven-dependency-plugin</artifactId>
                <configuration>
                    <excludeTransitive>false</excludeTransitive>
                    <stripVersion>true</stripVersion>
                    <outputDirectory>./WebContent/WEB-INF/lib/</outputDirectory>
                </configuration>

            </plugin>
        </plugins>
</build>
mvn dependency:copy-dependencies