linux下执行mvn clean package -Dmaven.test.skip=true报错

[INFO] Scanning for projects...
[INFO]

[INFO] ------------------------------------------------------------------------
[INFO] Building code-review-manage 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:3.1.0:clean (default-clean) @ code-review-manage ---
[INFO] Deleting /var/lib/jenkins/workspace/code-review-manage-CD/code-review-manage/target
[INFO]
[INFO] --- maven-resources-plugin:3.1.0:resources (default-resources) @ code-review-manage ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 29 resources
[INFO] Copying 0 resource
[INFO] skip non existing resourceDirectory /var/lib/jenkins/workspace/code-review-manage-CD/code-review-manage/src/main/view
[INFO]
[INFO] --- maven-compiler-plugin:3.8.0:compile (default-compile) @ code-review-manage ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 172 source files to /var/lib/jenkins/workspace/code-review-manage-CD/code-review-manage/target/classes
[INFO] /var/lib/jenkins/workspace/code-review-manage-CD/code-review-manage/src/main/java/cn/com/ruijie/code/safety/service/EventService.java: Some input files use unchecked or unsafe operations.
[INFO] /var/lib/jenkins/workspace/code-review-manage-CD/code-review-manage/src/main/java/cn/com/ruijie/code/safety/service/EventService.java: Recompile with -Xlint:unchecked for details.
[INFO]
[INFO] --- maven-resources-plugin:3.1.0:testResources (default-testResources) @ code-review-manage ---
[INFO] Not copying test resources
[INFO]
[INFO] --- maven-compiler-plugin:3.8.0:testCompile (default-testCompile) @ code-review-manage ---
[INFO] Not compiling test sources
[INFO]
[INFO] --- maven-surefire-plugin:2.22.1:test (default-test) @ code-review-manage ---
[INFO] Tests are skipped.
[INFO]
[INFO] --- maven-jar-plugin:3.1.0:jar (default-jar) @ code-review-manage ---
[INFO] Building jar: /var/lib/jenkins/workspace/code-review-manage-CD/code-review-manage/target/code-review-manage-1.0-SNAPSHOT.jar
[INFO]
[INFO] --- spring-boot-maven-plugin:2.1.0.RELEASE:repackage (repackage) @ code-review-manage ---
Downloading: https://repo.maven.apache.org/maven2/org/apache/apache/17/apache-17.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 02:14 min
[INFO] Finished at: 2020-08-12T10:59:37+08:00
[INFO] Final Memory: 60M/686M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.1.0.RELEASE:repackage (repackage) on project code-review-manage: Execution repackage of goal org.springframework.boot:spring-boot-maven-plugin:2.1.0.RELEASE:repackage failed: Plugin org.springframework.boot:spring-boot-maven-plugin:2.1.0.RELEASE or one of its dependencies could not be resolved: Failed to collect dependencies at org.springframework.boot:spring-boot-maven-plugin2.1.0.RELEASE -> org.apache.maven:maven-artifact3.3.9: Failed to read artifact descriptor for org.apache.maven:maven-artifact3.3.9: Could not transfer artifact org.apache:apache:pom:17 from/to central (https://repo.maven.apache.org/maven2): Connect to repo.maven.apache.org:443 [repo.maven.apache.org/151.101.24.215] failed: Connection timed out (Connection timed out) -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException

maven库最近连不上,换成阿里的