通过脚本本地下载Jar包

通过脚本本地下载Jar包

1.脚本

download.bat

# !/bin/bash
mvn -f pom.xml dependency:copy-dependencies

方式一:直接执行脚本。

方式二:
通过windows的命令行,执行如下脚本。
download.bat

mvn -f pom.xml dependency:copy-dependencies
2.pom.xml
<?xml version="1.0"?>
<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>temp.download</groupId>
    <artifactId>temp-download</artifactId>
    <version>1.0-SNAPSHOT</version>
	
	<repositories>
        <repository>
            <id>boundless</id>
            <url>https://repo.boundlessgeo.com/main/</url>
        </repository>
		<repository>
            <id>OGC</id>
            <url>	http://maven.geomajas.org/</url>
        </repository>
    </repositories>
    <dependencies>
       <dependency>
            <groupId>mysql</groupId>
            <artifactId>mysql-connector-java</artifactId>
            <version>5.1.47</version>
        </dependency>
        <dependency>
            <groupId>redis.clients</groupId>
            <artifactId>jedis</artifactId>
            <version>2.9.0</version>
        </dependency>
		<dependency>
            <groupId>com.esri.geometry</groupId>
            <artifactId>esri-geometry-api</artifactId>
            <version>2.2.2</version>
        </dependency>
        <dependency>
            <groupId>com.vividsolutions</groupId>
            <artifactId>jts</artifactId>
            <version>1.13</version>
        </dependency>
        <dependency>
            <groupId>org.geotools</groupId>
            <artifactId>gt-api</artifactId>
            <version>14.1</version>
        </dependency>
        <dependency>
            <groupId>org.geotools</groupId>
            <artifactId>gt-epsg-hsql</artifactId>
            <version>14.1</version>
        </dependency>
        <dependency>
            <groupId>org.geotools</groupId>
            <artifactId>gt-geojson</artifactId>
            <version>14.1</version>
        </dependency>
    </dependencies>
</project>
上一篇:DETR:Facebook提出基于Transformer的目标检测新范式,性能媲美Faster RCNN | ECCV 2020 Oral


下一篇:mask rcnn 超详细代码解读(二)