Adrian Cole created MDEP-723:
--------------------------------
Summary: Allow copying dependencies via CLI coordinates instead of
pom file
Key: MDEP-723
URL: https://issues.apache.org/jira/browse/MDEP-723
Project: Maven Dependency Plugin
Issue Type: New Feature
Components: copy-dependencies
Reporter: Adrian Cole
It would be nice to get transitive deps into a libs dir without having to
define a pom.xml first. Here's what I'm doing now.
{code:sh}
# Dist includes large dependencies needed by streams and connect: retain only
broker and ZK.
# We can do this because broker is independent from both kafka-streams and
connect modules.
# See https://issues.apache.org/jira/browse/KAFKA-10380
cat > pom.xml <<-EOF
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>io.zipkin.kafka</groupId>
<artifactId>get-kafka</artifactId>
<version>0.1.0-SNAPSHOT</version>
<packaging>pom</packaging>
<dependencies>
<dependency>
<groupId>org.apache.kafka</groupId>
<artifactId>kafka_${SCALA_VERSION}</artifactId>
<version>${KAFKA_VERSION}</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
<version>1.7.30</version>
</dependency>
</dependencies>
</project>
EOF
mvn -q --batch-mode dependency:copy-dependencies -DoutputDirectory=libs && rm
pom.xml
{code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)