https://developer.aliyun.com/mvn/search
setting文件
//修改maven配置 可解决 org.pentaho:pentaho-aggdesigner-algorithm:pom:5.1.5-jhyde的问题
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
| <?xml version="1.0" encoding="UTF-8"?> <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd"> <mirrors> <mirror> <id>nexus-aliyun</id> <name>Nexus aliyun</name> <url>https://maven.aliyun.com/repository/public</url> <mirrorOf>central</mirrorOf> </mirror> </mirrors> <profiles> <profile> <id>spring</id> <repositories> <repository> <id>spring</id> <url>https://maven.aliyun.com/repository/spring</url> <releases> <enabled>true</enabled> </releases> <snapshots> <enabled>true</enabled> </snapshots> </repository> <repository> <id>spring-plugin</id> <url>https://maven.aliyun.com/repository/spring-plugin</url> <releases> <enabled>true</enabled> </releases> <snapshots> <enabled>true</enabled> </snapshots> </repository> <repository> <id>google</id> <url>https://maven.aliyun.com/repository/google</url> <releases> <enabled>true</enabled> </releases> <snapshots> <enabled>true</enabled> </snapshots> </repository> </repositories> </profile> </profiles>
<activeProfiles> <activeProfile>spring</activeProfile> </activeProfiles> </settings>
|
Maven命令行手动添加依赖
mvnw dependency:get
-Dartifact=groupId:artifactId:version[:packaging[:classifier]] (等于是下面的几个参数组合写在一起)
-DgroupId=org.apache.seatunnel
-DartifactId=${line}
-Dversion=${version}
-Dpackaging=packaging
-Dclassifier=classifier (表示在相同版本下针对不同的环境或者jdk使用的jar, 用于进一步限定)
-Dtransitive=true | false (是否下载传递的依赖jar, 默认true)
-DremoteRepositories=id::[layout]::url(或者仅写url, 多个仓库源用逗号分隔, 例如 central::default::https://repo.maven.apache.org/maven2,myrepo::::https://repo.acme.com,https://repo.acme2.com)
-Dskip=false | true (是否跳过插件的执行, 默认false)
-Ddest=${path}
取spring包
1 2 3 4 5 6 7
| version="5.3.35" mvn dependency:get \ -DgroupId=org.springframework \ -DartifactId=spring-web \ -Dversion=${version} \ -Ddest=./
|