You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

使用IntelliJ IDEA Ultimate 2018.1创建Spring项目,无法下载指定jar包求助

Fixing "Failed to download spring-aop-4.3.18.RELEASE.jar" in IntelliJ IDEA 2018.1

Hey there, I’ve run into similar Maven download headaches before, so let’s walk through some practical fixes to get your Spring project up and running smoothly:

  • Switch to a faster Maven mirror (like Alibaba’s)
    The default Maven Central repo can be slow or blocked in some regions. Here’s how to set up an Alibaba mirror:

    1. Open IntelliJ’s settings: File > Settings (or IntelliJ IDEA > Preferences on Mac)
    2. Navigate to Build, Execution, Deployment > Build Tools > Maven > Repositories
    3. If you don’t have a custom settings.xml, create one in your local Maven repo folder (usually ~/.m2/ on Mac/Linux, C:\Users\[YourName]\.m2\ on Windows)
    4. Add this mirror configuration to settings.xml:
      <mirrors>
          <mirror>
              <id>aliyunmaven</id>
              <mirrorOf>central</mirrorOf>
              <url>https://maven.aliyun.com/repository/public</url>
          </mirror>
      </mirrors>
      
    5. Back in IntelliJ, go to Build, Execution, Deployment > Build Tools > Maven and set the User settings file to point to your newly edited settings.xml
    6. Restart IntelliJ and try creating the project again
  • Manually download and place the jar
    If the mirror still doesn’t work, grab the jar directly:

    1. Search for spring-aop-4.3.18.RELEASE.jar in the Maven Central repository
    2. Download the jar file
    3. Navigate to your local Maven repo path: ~/.m2/repository/org/springframework/spring-aop/4.3.18.RELEASE/ (create the folder if it doesn’t exist)
    4. Place the downloaded jar into this folder, then retry the project creation
  • Clear corrupted Maven cache files
    Sometimes partial downloads leave corrupted .lastUpdated files that block re-downloads:

    1. Find the spring-aop/4.3.18.RELEASE folder in your local Maven repo
    2. Delete all files ending with .lastUpdated (and any incomplete jar files)
    3. Go back to IntelliJ, open the Maven tool window, and click the Reload All Maven Projects button (the circular arrow icon)
  • Try a different Spring version
    If 4.3.18 is giving persistent issues, pick a nearby stable version (like 4.3.19.RELEASE or 4.3.17.RELEASE) when selecting dependencies in the project setup wizard—this might bypass the problematic version’s download issues

  • Check Maven permissions and configuration
    Make sure:

    • IntelliJ has write access to your local Maven repo folder (run IntelliJ as administrator on Windows, or check folder permissions on Mac/Linux)
    • You’re using a valid Maven installation (either IntelliJ’s built-in one or a local version you’ve installed)

Hope one of these gets you past the download error! Let me know if you need more details on any step.

内容的提问来源于stack exchange,提问作者Victory

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.13 07:23:29