Announcement Announcement Module
Collapse
No announcement yet.
New to Spring and SpringSTS. Having errors when following the tutorials. Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • New to Spring and SpringSTS. Having errors when following the tutorials.

    I can see 2 of the 3 errors in pom.xml:

    Code:
    ArtifactTransferException: Failure to transfer log4j:log4j:jar:1.2.14 from http://repo1.maven.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact log4j:log4j:jar:1.2.14 from/to central (http://repo1.maven.org/maven2): No response received after 60000
    Code:
    Failure to transfer org.apache.maven.plugins:maven-resources-plugin:pom:2.4.3 from http://repo1.maven.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact org.apache.maven.plugins:maven-resources-plugin:pom:2.4.3 from/to central (http://repo1.maven.org/maven2): The operation was cancelled.
    What happened was I was following along the Getting Started with Spring and SpringSTS video tutorial (the first one). I made a template project and cancelled the download before it completed. I then deleted the project and made a new template project. When it completed download, it had the errors above. I've tried several template projects and they all have the same errors.

    I've tried deleting the workspace and installing fresh from the STS.exe. I've updated STS to the latest version and tried Maven -> Update Dependencies. I've googled the errors above but never really understood what people were saying because I'm haven't got any bearings for STS yet.

    Is there anything else I can do?

  • #2
    It looks like you are behind a firewall and cannot download maven artifacts.

    If so, you will need to update your maven settings. See this page for some instructions: http://maven.apache.org/run-maven/index.html

    And your STS settings can be tweaked: Preferences -> General -> Network Settings

    Comment


    • #3
      Solved it. I never had the jdk/bin folder location added to my PATH variables. I got a popup when I first used STS, I browsed to the location and everything worked fine but for some reason Maven was acting funky because of that. Adding the jdk to my path fixed things.

      Comment

      Working...
      X