SeaTunnel 换maven源,解决插件下载慢

SeaTunnel 是使用的mvnw命令,可以先执行一下install-plugin.sh然后终止
理论上应该可以直接执行mvnw,他就会去安装下载maven,目录就是下面的目录
然后去服务器目录修改 setting.xml文件,设置镜像源即可

/root/.m2/wrapper/dists/apache-maven-3.8.4-bin/52ccbt68d252mdldqsfsn03jlf/apache-maven-3.8.4/conf

<mirrors>
  <mirror>
    <id>nexus-aliyunid>
    <mirrorOf>*mirrorOf>
    <name>centralname>
    <url>https://maven.aliyun.com/repository/centralurl>
  mirror>
    <mirror>
    <id>aliyunid>
    <mirrorOf>*mirrorOf>
    <name>spring-pluginname>
    <url>https://maven.aliyun.com/repository/spring-pluginurl>
  mirror>
  <mirror>
    <id>aliyunmavenid>
    <mirrorOf>*mirrorOf>
    <name>阿里云公共仓库name>
    <url>https://maven.aliyun.com/repository/publicurl>
  mirror>
mirrors>

你可能感兴趣的:(maven,java)