Posted By

alces on 11/11/13


Tagged

maven mvn maven-dependency-plugin


Versions (?)

Making ant-like flat lib directory in pom.xml


 / Published in: XML
 

URL: copy-dependencies-lib

Copy all runtime dependencies into single flat directory (ant-like lib setup) - maybe useful for trimming too long classpathes.

  1. <project>
  2.  
  3. ...
  4.  
  5.  
  6. <build>
  7. <plugins>
  8. <plugin>
  9. <artifactId>maven-dependency-plugin</artifactId>
  10. <executions>
  11. <execution>
  12. <phase>generate-resources</phase>
  13. <goals>
  14. <goal>copy-dependencies</goal>
  15. </goals>
  16. <configuration>
  17. <includeScope>runtime</includeScope>
  18. <outputDirectory>lib</outputDirectory>
  19. </configuration>
  20. </execution>
  21. </executions>
  22. </plugin>
  23. </plugins>
  24. </build>
  25. </project>

Report this snippet  

You need to login to post a comment.