Skip to content

Instantly share code, notes, and snippets.

@tony1223
Created May 23, 2011 03:20
Show Gist options
  • Select an option

  • Save tony1223/986162 to your computer and use it in GitHub Desktop.

Select an option

Save tony1223/986162 to your computer and use it in GitHub Desktop.
如果你想把dependency的jar都搬出來,可以用這隻maven plug-in
<build>
<plugins>
<plugin>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>copy-dependencies</id>
<phase>package</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
<resources>
<resource>
<directory>${basedir}/target/dependency</directory>
</resource>
</resources>
</build>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment