Last active
August 24, 2023 23:21
-
-
Save statico/547434f630d589651afcbe3f132b91d9 to your computer and use it in GitHub Desktop.
minimal maven pom.xml to download JARs in to a lib/ directory
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<project | |
xmlns="http://maven.apache.org/POM/4.0.0" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>com.foo</groupId> | |
<artifactId>bar</artifactId> | |
<version>0.0.1-SNAPSHOT</version> | |
<dependencies> | |
<dependency> | |
<groupId>com.google.collections</groupId> | |
<artifactId>google-collections</artifactId> | |
<version>1.0</version> | |
</dependency> | |
</dependencies> | |
<build> | |
<directory>lib</directory> | |
<plugins> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-dependency-plugin</artifactId> | |
<configuration> | |
<outputDirectory> | |
${project.build.directory} | |
</outputDirectory> | |
</configuration> | |
</plugin> | |
</plugins> | |
</build> | |
</project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Run with
mvn clean dependency:copy-dependencies
Sources: