依存ライブラリを指定ディレクトリにコピーする方法
外国の方がやってた。
<goal name="copy.dep" description="copy dependencies"> <j:forEach var="dep" items="${pom.dependencies}"> <copy file="${pom.getDependencyPath(dep.getId())}" todir="${basedir}/WEB-INF/lib"/> </j:forEach> </goal>
もうひとつ、プラグインを使う方法もある。
<deploy:copy-deps todir="${maven.build.dir}" excludes="commons-logging" />