mvntree groupId artifactId version
For example:
mvntree edu.ucar netcdf4 4.6.9
mvntree
#!/usr/bin/env bash
# Usage: mvntree groupId artifactId version
CUR_DIR=$(pwd)
MY_DIR="/tmp/trashme_one"
mkdir -p "$MY_DIR" && \
cat > "$MY_DIR/pom.xml" <<EOL
<?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>DEPENDENCY</groupId>
<artifactId>TREE.FOR</artifactId>
<version>IS</version>
<packaging>jar</packaging>
<name>Maven Quick Start Archetype</name>
<url>http://maven.apache.org</url>
<dependencies>
<dependency>
<groupId>$1</groupId>
<artifactId>$2</artifactId>
<version>$3</version>
</dependency>
<!-- add here other dependencies -->
</dependencies>
<repositories>
<repository>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>bintray-hohonuuli-maven</id>
<name>bintray</name>
<url>http://dl.bintray.com/hohonuuli/maven</url>
</repository>
<repository>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>ucar</id>
<name>ucar</name>
<url>http://artifacts.unidata.ucar.edu/content/repositories/unidata-releases/</url>
</repository>
</repositories>
</project>
EOL
cd "$MY_DIR" && \
mvn -e dependency:tree -U
cd "$CUR_DIR"
rm -rf $MY_DIR
1 comments:
nice blog thank you so much for sharing to us
best python training in chennai
selenium training in chennai
selenium training in omr
selenium training in sholinganallur
best java training in chennai
data Science training in chennai
Post a Comment